Forum

Questions and discussions

Show Title below thumbnails

Discuss template's customization

Show Title below thumbnails

Postby serge » Sat Dec 08, 2012 11:03 am

Hello,

Since you can sort by Title, showing the title below each thumbnail would make a lot of sense.

So in v12.10 I'm looking for a way to show photo title below each thumbnail along with the ID, Add-to-Cart, # of Views and # of Downloads.
Obviously files content_list.php and item_list.tpl are involved but I can't find the way to do it. I may use the wrong Smarty code (Apparently TITLE refers to the ID and not to the image title).

Can anyone help?
Thanks!
serge
 
Posts: 80
Joined: Wed May 05, 2010 9:10 pm

Re: Show Title below thumbnails

Postby admin » Sat Dec 08, 2012 3:09 pm

Youn should edit the files:
/members/content_list.php

and replace the string:
Code: Select all
$itembox=str_replace("{ITEM_TITLE}","#".$rs->row["id"],$itembox);


with:
Code: Select all
$itembox=str_replace("{ITEM_TITLE}",$rs->row["atitle"],$itembox);
admin
Site Admin
 
Posts: 1458
Joined: Sun Mar 07, 2010 5:55 pm

Re: Show Title below thumbnails

Postby serge » Sat Dec 08, 2012 4:11 pm

Thank you. I could never figure this out by my myself!
serge
 
Posts: 80
Joined: Wed May 05, 2010 9:10 pm

Re: Show Title below thumbnails

Postby erikger » Thu May 02, 2013 1:01 am

where can i change this in new version ?
erikger
 

Re: Show Title below thumbnails

Postby admin » Thu May 02, 2013 8:11 am

in /members/content_list_items.php file.
admin
Site Admin
 
Posts: 1458
Joined: Sun Mar 07, 2010 5:55 pm

Re: Show Title below thumbnails

Postby erikger » Thu May 02, 2013 8:15 am

thank you
erikger
 

Re: Show Title below thumbnails

Postby erikger » Tue Jun 03, 2014 5:26 pm

hi

tried it in the new version 14.05 (mean i changed the two lines of code) but now nothing is shown ?

do i have to change something else ?
erikger
 

Re: Show Title below thumbnails

Postby admin » Wed Jun 04, 2014 3:00 pm

You could use the code {ITEM_TITLE_FULL} instead of {ITEM_TITLE}
admin
Site Admin
 
Posts: 1458
Joined: Sun Mar 07, 2010 5:55 pm

Re: Show Title below thumbnails

Postby erikger » Wed Jun 04, 2014 4:37 pm

Hi

Tried it. Did not work also.

Dont have any idea how i can change this.

Any other idea anton ?
erikger
 

Re: Show Title below thumbnails

Postby admin » Fri Jun 06, 2014 7:48 am

Now the correct code is:
Code: Select all
$itembox=str_replace("{ITEM_TITLE}",$dd->row["title"],$itembox);
admin
Site Admin
 
Posts: 1458
Joined: Sun Mar 07, 2010 5:55 pm

Next

Return to Design & Templates

Who is online

Users browsing this forum: No registered users and 2 guests

cron
  Photo Store Script

Professional php photo stock script and WordPress plug-in for photographers and video producers.

  Support
  CMSaccount Inc.