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.
Pages: 1
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
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
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
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
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
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
Pages: 1