PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   Most popular (http://www.photopost.com/forum/photopost-pro-installation-upgrades/109351-most-popular.html)

fatma July 27th, 2004 09:58 AM

Most popular
 
would you pls tell me the variable name for the "Most popular" photos, for example :

$q_switch = "?"; ? = what should be instead?

thank you

donb July 27th, 2004 10:22 AM

eh?

In which file are you referring to?

Michael P July 27th, 2004 10:33 AM

most_views would be the case

fatma July 27th, 2004 10:38 AM

:o

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.

fatma July 27th, 2004 10:41 AM

sorry Michael, didnt see your post.

is most_views same as popular( this with more ratings)?

thank you

Michael P 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.

fatma 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.

thank you

fatma July 27th, 2004 11:30 AM

most_views dose not work

thank you

Chuck S 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.

fatma July 27th, 2004 12:01 PM

okay omegatron I will, thanks alot:).

Chuck S 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.

fatma 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.

thank you:)

Michael P 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.


All times are GMT -5. The time now is 02:21 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97