View Full Version : Photo view counter?
superchief
5th of October 2006 (Thu), 02:43
I do not see a counter for the number of views on the photo pages. Am I missing something obvious?
Pekka
5th of October 2006 (Thu), 12:19
If you want to see it, you must add $thisphoto_viewed_html into photo page content template.
jimmiec
11th of March 2010 (Thu), 07:08
WOW this was some time ago.
I want the photo count per photo displayed as it was in 1.5. Below is the answer (?) yet I cannot determine exactly where $thisphoto_viewed_html goes and in what script. help appreciated.
Thanks
Jimmie
If you want to see it, you must add $thisphoto_viewed_html into photo page content template.
DLP
13th of March 2010 (Sat), 21:32
You will need to add php print to it:
<?php print $thisphoto_viewed_html; ?>
and put it in the content file for the photo page:
templates/pages/ee_2_default/photo/default_XHTML_content.php
along with appropriate XHTML and CSS classes
jimmiec
15th of March 2010 (Mon), 12:03
Thanks a lot!. Now if I can just figure out how/where thin within the php script. I'm a DOH when it comes to this new version. Can you show where in relationship to the other lines or a line entry location?
You will need to add php print to it:
<?php print $thisphoto_viewed_html; ?>
and put it in the content file for the photo page:
templates/pages/ee_2_default/photo/default_XHTML_content.php
along with appropriate XHTML and CSS classes
DLP
13th of April 2010 (Tue), 15:35
Sorry to take so long, I haven't been following the forum much.
If you search for the following in the file mentioned:
<?php print $description_text_html; ?>
You can see how the photo description text was done. You can paste
<?php print $thisphoto_viewed_html; ?>
just above it. That will put it just above the description text. If that's not where you want it just experiment with different locations.
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.