View Full Version : Most popular
July 27th, 2004, 09:58 AM
would you pls tell me the variable name for the "Most popular" photos, for example :
$q_switch = "?"; ? = what should be instead?
July 27th, 2004, 10:22 AM
In which file are you referring to?
July 27th, 2004, 10:33 AM
most_views would be the case
July 27th, 2004, 10:38 AM
I have this code withen php file to display a photo in the home page:
//Display Setting (Changes to fit your page)
$q_switch = "popular"; // "random" or "most_views" or "latest"
$limit = 1; //number of image to show
$table_width = "100%"; //width of the table generated
$column = 1; //number of columns of the table generated
$photo_cell_align = "center"; //alignment of those cells
and as you see the variable $q_switch takes different values, I want to know the proper value for the popular photo.
July 27th, 2004, 10:41 AM
sorry Michael, didnt see your post.
is most_views same as popular( this with more ratings)?
July 27th, 2004, 11:00 AM
What code are you referring to? This looks like a mod you are working on and not the actual PhotoPost product.
July 27th, 2004, 11:04 AM
im not asking to modify this code, I just want to know what the "most popular" value should I put for this variable $q_switch.
July 27th, 2004, 11:30 AM
most_views dose not work
July 27th, 2004, 11:50 AM
What Michael is saying is your working with a modification and not Photopost code
Your best bet would be to post on Photopostdev.com in the thread where you obtained this modification.
The $q_switch in our program most definately works with most_views and latest and everything is defined in the switch for that variable.
So you are indeed asking about a modification since your either using a hack or designing one yourself.
July 27th, 2004, 12:01 PM
okay omegatron I will, thanks alot:).
July 27th, 2004, 12:07 PM
Yeah if you developing a custom thumbnail include make sure you post your code their as well. Most likely your not defining the most_views case.
July 27th, 2004, 03:34 PM
well omegatron, I got the code from their, but didn't work for "popular" case. so I told myself maybe its better if I post here and get the correct value for Most popular case.
most_views case shows the most view photo, not the most popular, the rating is different.
July 27th, 2004, 04:14 PM
That is how we judge most popular in that case (most_views); if you want to do it differently, you'd need to modify your code and that's not covered here.
You want "Highest Rated" which isn't an option in the features previews.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.