PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old February 27th, 2006, 11:44 AM   #1 (permalink)
Member
 
Join Date: Jun 2003
Posts: 117
Top Posters and Highest rated

I would like to change the Top Posters listing on my site to display only the results from the past month or current month - rather than over all time.

Also - I would like for the Highest Rated to be changed - to show the most viewed for the month.

Are either of these possible?

Patti
stmpspaz is offline   Reply With Quote
Old February 27th, 2006, 01:56 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Hello look at the queries and you would need to add something like this to the highest rated and top posters queries

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old March 5th, 2006, 10:23 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Location: techarena.in
Posts: 421
Hey Chuck,
Can you give the correct/complete statement to be searched and replaced with in the required filename as well ?

thanks this should be quite handy
SaN-DeeP is offline   Reply With Quote
Old March 7th, 2006, 10:10 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Location: techarena.in
Posts: 421
bumping back, chuck sorry to bother ya, but can you look forward for a possible solution here ?

thanks.
SaN-DeeP is offline   Reply With Quote
Old March 8th, 2006, 09:31 AM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Sandeep what are you looking for I posted what needs to be added to a query above.

Simple add the AND clause anywhere right after the WHERE clause in any specific query you are trying to do. For specific ways to see how it would look simply look at other queries within our files. Many examples of the use of an AND clause in queries. The queries you want to modify are in index.php
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old March 8th, 2006, 08:00 PM   #6 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Location: techarena.in
Posts: 421
I tried to change
Quote:
// Lets get the Top Posters
$queryz = ppmysql_query("SELECT user,userid,COUNT(*) AS pcount FROM {$Globals['pp_db_prefix']}photos GROUP BY user ORDER BY pcount DESC LIMIT
to

Quote:
// Lets get the Top Posters
$queryz = ppmysql_query("SELECT user,userid,COUNT(*) AS pcount FROM {$Globals['pp_db_prefix']}photos GROUP BY user ORDER BY pcount AND date > UNIX_TIMESTAMP( DATE_SUB(NOW(), INTERVAL 1 MONTH) ) DESC LIMIT
but this wont work.

cannot find toprated query..
SaN-DeeP is offline   Reply With Quote
Old March 8th, 2006, 08:13 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Thats because there is no WHERE CLAUSE and you have it in the wrong spot

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old March 8th, 2006, 08:45 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Location: techarena.in
Posts: 421
this works fine now for both top posters and highest rated images pal.
thanks chuck.
SaN-DeeP is offline   Reply With Quote
Old March 29th, 2006, 10:35 PM   #9 (permalink)
Member
 
Join Date: Jun 2003
Posts: 117
File name?

I apologize if this seems obvious, but I am unable to find the location of the queries to change to make this work. Can you tell me if they are in a specific directory or the main directory - and what the file name would be.

Thank you
Patti
stmpspaz is offline   Reply With Quote
Old March 29th, 2006, 10:49 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
index.php is the file being discussed
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old March 30th, 2006, 10:42 AM   #11 (permalink)
Member
 
Join Date: Jun 2003
Posts: 117
What file would I go to, to change the "title" of each category - for instance to Top Posters for Month instead of just Top Posters.

Also - is there a simple way to change the Top Rated - to most viewed? I tried a couple of changes - but not knowing PHP very well - it didn't work!
stmpspaz is offline   Reply With Quote
Old March 30th, 2006, 11:22 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
You post is not making sense to me here

category titles and a top posters pal box have no correlation so your loosing me here. The top rated pal already pulls photos highest rated secondary sorted by most views
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old March 30th, 2006, 11:55 AM   #13 (permalink)
Member
 
Join Date: Jun 2003
Posts: 117
Each "pal" box has a title on it. One says "Top Posters" at the top, and under it the results of the query. I want to change that "title".
stmpspaz is offline   Reply With Quote
Old March 30th, 2006, 12:09 PM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Okay yeah saying edit the category titles threw me off. Just edit your language file english.php and change the language string.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 17th, 2006, 09:49 AM   #15 (permalink)
Member
 
Join Date: Jun 2003
Posts: 117
I have had thumbincluder running fine for quite some time. I recently moved to a new server and my hosting company transferred everything over for me. My gallery is working fine - no problems.

But - my thumbincluder wont show the most recent images. It will show only the last 5 images that were uploaded before the server move.

Any ideas??
stmpspaz is offline   Reply With Quote
Old October 17th, 2006, 10:44 AM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
I would suggest you look at your thumbnailer to see your looking for the proper database and other info
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 24th, 2006, 10:30 PM   #17 (permalink)
Member
 
Join Date: Jun 2003
Posts: 117
top posters and highest rated

I made the modifications in this thread and all was working great until I upgraded to the newest version (5.5). Now the index.php refers to a "topposterspal" and doesn't have anywhere to make the changes to make this work again.

Any ideas on how I can go back to showing the top posters for the month and higest rated for the month?

Patti
stmpspaz is offline   Reply With Quote
Old October 25th, 2006, 07:32 AM   #18 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
the query is now within a function in pp-inc.php
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 19th, 2008, 05:35 PM   #19 (permalink)
Member
 
Join Date: Jun 2003
Posts: 117
Top Poster

I have the following information in my pp-inc.php file. However, the numbers *never* change. The same people are always listed, and it just seems to stay static.

Quote:
// Lets get the Top Posters
$queryz = ppmysql_query("SELECT user,userid,COUNT(*) AS pcount FROM {$Globals['pp_db_prefix']}photos WHERE date < UNIX_TIMESTAMP( DATE_SUB(NOW(), INTERVAL 1 MONTH) ) GROUP BY user ORDER BY pcount DESC LIMIT {$Globals['numtoppal']}", $link);

$numfound = 1;

while ( list($cache['top']['topposters'][$numfound], $uid, $cache['top']['topposts'][$numfound]) = mysql_fetch_row($queryz))
{
if ( $Globals['spider'] == "yes" )
{
$cache['top']['toplink'][$numfound] = "{$Globals['maindir']}/showgallery.php/ppuser/$uid/cat/500";
}
else
{
$cache['top']['toplink'][$numfound] = "{$Globals['maindir']}/showgallery.php?ppuser=$uid&amp;cat=500";
}
$numfound++;
}

return;
}
stmpspaz is offline   Reply With Quote
Old January 19th, 2008, 07:29 PM   #20 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
But I would ask are the results accurate though because based on the query they would be. You can try turning off the category cache in admin global options and see if they change.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Statistics / Highest Rated / Comments Not showing. sfm_aceman Photopost Pro Installation & Upgrades 1 November 10th, 2005 05:07 PM
Top Rated Bar and Highest Ratings PAL Tom1234 ReviewPost Bug Reports 3 April 15th, 2005 10:51 AM
Highest Rated/Most Popular ghinton General Discussion 3 August 13th, 2004 12:44 PM
Photopost 4.8d - Highest Rated Accuracy mitchjaz2 Photopost Pro Installation & Upgrades 5 July 17th, 2004 09:35 AM


All times are GMT -5. The time now is 08:19 PM.

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