Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2016-07-04 11:01:31

happylag
Member
Registered: 2016-04-05
Posts: 182

Meta descriptions

Hello,

Those pages have default meta descriptions:

http://www.domain.com/photo/6/anissa-kate-eva-parcker/
http://www.domain.com/photo/recent/
http://www.domain.com/pornstar/

I can't find anything in language module manager for those pages. How to get custom meta desc for those pages?

Thank you.

Offline

#2 2016-07-05 06:47:53

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Meta descriptions

http://www.domain.com/photo/6/anissa-kate-eva-parcker/ - edit modules/photo/components/photo and edit this line:

$this->tpl->meta_desc   = $photo['title'].' '.$photo['photo_id'].' - '.$this->tpl->cfg['site_name'];

http://www.domain.com/photo/recent/ - edit modules/photo/components/albums.php and add this line:

$this->tpl->meta_desc      = __('albums-meta-desc', array($time_name.$order_name, $page, $this->tpl->cfg['site_name']));

and in Admin -> Extend -> Language Manager -> LANG -> photo add albums-meta-desc (should be similar to albums-meta-title)

http://www.domain.com/pornstar/ - edit modules/pornstar/components/browse.php and add this line:

$this->tpl->meta_desc  = __('browse-meta-desc', array($order_name, $letter_name, $page));

and in Admin -> Extend -> Language Manager -> LANG -> pornstar add browse-meta-desc (should be similar to browse-meta-title)

I will also add these in 2.2.3.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#3 2016-07-05 11:45:36

happylag
Member
Registered: 2016-04-05
Posts: 182

Re: Meta descriptions

It only works for photo/recent/ and /pornstar/

About /photo/6/anissa-kate-eva-parcker/ I still get default meta desc. What should i change in the line to get "Anissa Kate Eva Parker, Sitename" in the meta desc?

Thank you.

Last edited by happylag (2016-07-05 11:48:10)

Offline

#4 2016-07-07 06:48:52

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Meta descriptions

Edit modules/photo/components/photo.php and add a line with $this->tpl->meta_desc = 'put whatever you want here!';


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#5 2016-07-07 10:57:51

happylag
Member
Registered: 2016-04-05
Posts: 182

Re: Meta descriptions

Yes but i would like to put the photo title in meta desc: For example: http://www.domain.com/photo/6/anissa-kate-eva-parcker/ meta desc would be "Anissa Kate Eva Parcker".

What would be the code?

Offline

#6 2016-07-08 07:29:14

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Meta descriptions

That is the photo album url, the photo does not have a title, it has caption, however its not mandatory, so basically not all photos have a caption. For the photo album page you could use $this->tpl->meta_desc = $album['title'];


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB