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 January 29th, 2010, 11:32 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Dec 2008
Posts: 123
Highest Rated Pal SEO Link Wrong

I've just noticed on my newest gallery that the link in the highest rated pal is wrong...it's missing the category name between the // and so leading to page not found errors. This is when SEO links are activated, the link works fine when I turn it off...and all the other linkages on the page are fine lol

Gallery Home - A Moment In Scrap Gallery

Where would I look to try and fix this? To note...the undercat section of the gallery has been customised but the highest rating pal template hasn't been touched in any way

Using Photopost Pro 7.01 integrated with vBulletin 3.8.4
LissaE is offline   Reply With Quote
Old January 30th, 2010, 09:57 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
This line in pp-inc.php in the get_ratingcache function make sure it is this. The variable should be $popcat not $cat

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 January 30th, 2010, 12:08 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Dec 2008
Posts: 123
You are da bomb Chuck LOL thanx so much! That took care of it
LissaE is offline   Reply With Quote
Old January 30th, 2010, 12:36 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: Dec 2008
Posts: 123
Now that that's sorted, I have another question for you lol

The one image it's showing in the highest rated pal hasn't actually been rated so it's showing 0.0 ... it has 2 comments on it though so I am guessing that's why it's showing as the top.

There are a few others that actually have been rated but they only have one comment and they aren't showing at all...is there a way to have the highest rated pal show the photos that actually have ratings, even if it's only one?

Otherwise the pal should be called Most Commented and show the comment count instead LOL
LissaE is offline   Reply With Quote
Old January 30th, 2010, 12:49 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
yes the ratings pal is based rating then number of comments descending.
__________________
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 30th, 2010, 01:17 PM   #6 (permalink)
Member
Verified Customer
 
Join Date: Dec 2008
Posts: 123
lolis there any way I can change that then? It looks a bit silly showing only a photo that has no rating lol
LissaE is offline   Reply With Quote
Old January 30th, 2010, 01:50 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
well you would have to change your code to suit your needs in the ratingcache 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 30th, 2010, 01:57 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Dec 2008
Posts: 123
Hmm...I'll have a look lol and see what I can do...and hopefully not kill the gallery LOL thanx
LissaE is offline   Reply With Quote
Old January 30th, 2010, 02:02 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Dec 2008
Posts: 123
K so the easy part was having it display rated photos regardless of post count...what in the following would I need to remove/change to have it not show photos with no ratings?

Code:
Content visible to verified customers only.
I'm thinking it has something to do with vcount?
Thanx Chuck
LissaE is offline   Reply With Quote
Old January 30th, 2010, 02:05 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
How about maybe changing this

Code:
Content visible to verified customers only.
to maybe

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 January 30th, 2010, 02:16 PM   #11 (permalink)
Member
Verified Customer
 
Join Date: Dec 2008
Posts: 123
Perfect! Thanx so much Chuck...have a wonderful day
LissaE is offline   Reply With Quote
Old January 30th, 2010, 02:28 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
You too.
__________________
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 June 6th, 2012, 02:35 PM   #13 (permalink)
Member
Verified Customer
 
Join Date: Dec 2008
Posts: 123
Hi Chuck, since the upgrade this entire section has changed and nothing displays in the Highest Rated Pal, how can I change that in this code?

Quote:

function get_ratingcache( $cat = 0, $ppuser = 0 )
{
global $Globals, $pplang, $link, $cache;

$catquery = null;
if ( $cat == 500 && $ppuser > 0 )
{
// We want to see all their images
$catquery = "userid=$ppuser";
}
elseif ( $cat > 0 )
{
$catname = $CatPerms['catname'][$cat];
$cattype = $CatPerms['cattype'][$cat];
$catchildren = $CatPerms['children'][$cat];

$catquery = $cat;
if ( $catchildren )
{
$catquery .= ",$catchildren";
}

$catquery = "cat IN ($catquery)";
}
else
{
$catquery = "cat=500";
}

$catquery = " WHERE $catquery $userq";

// Lets get the Most Popular Photos
$queryz = ppmysql_query("SELECT numcom,rating,cat,id,title FROM {$Globals['pp_db_prefix']}photos $catquery ORDER BY rating DESC LIMIT {$Globals['mostpoppal']}", $link);

$tpfound = 1;

while ( list(, $avgrate, $cat, $popid, $poptitle, $popviews ) = mysql_fetch_row($queryz) )
{
$tmptitle = ( strlen($poptitle) > 20 ? substr($poptitle,0,20)."..." : $poptitle );
$tmptitle = htmlspecialchars( $tmptitle );
$poptitle = htmlspecialchars( $poptitle );

$cache['popular']['views'][$tpfound] = number_format($popviews,1);
$avgrate = number_format( $avgrate, 2 );

$tmpurl = construct_newppurl( "showphoto.php", array( 'photo' => $popid ) );
$cache['popular']['link'][$tpfound] = "<a href=\"$tmpurl\" title=\"$poptitle\">&raquo; $tmptitle</a>";


$tpfound++;
}

return;
}
LissaE is offline   Reply With Quote
Old June 6th, 2012, 03:02 PM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
You would need to make sure you have uploaded ALL the new files and templates as everything has changed in the program.
__________________
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 June 6th, 2012, 03:27 PM   #15 (permalink)
Member
Verified Customer
 
Join Date: Dec 2008
Posts: 123
I have, the upgrade was completed nicely, just there is nothing showing in the Highest Rated box and there are rated photos and photos with comments.

In previous posts in this thread you gave me help on how to show the most rated photos rather than the most commented photos, but the section of code the change was made in has changed and I don't know what to change there now to get anything to show lol
LissaE is offline   Reply With Quote
Old June 6th, 2012, 03:36 PM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
A community photo gallery - PhotoPost Photo Gallery

well I know the highest rated works in the default code if everything is uploaded. You might need to actually turn off your category cache to dump that.

Basically all the most popular photos does is gets photos out of the photos table based on highest rating to low and shows them.
__________________
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 June 7th, 2012, 05:16 AM   #17 (permalink)
Member
Verified Customer
 
Join Date: Dec 2008
Posts: 123
Not sure why it shows nothing then as I overwrote all the files. I don't like the way it looks in the demo now that I can see it so I have just disabled it LOL

I have another question though, in the Top Posters Pal there are two blank cells at the bottom, this also shows on your demo. Can I remove them?

topposters.jpg
LissaE is offline   Reply With Quote
Old June 7th, 2012, 08:50 AM   #18 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
I am not really sure I see nothing in the code that should be printing out an extra row and if I run the query in phpmyadmin I only get x number of results.

I will see what I can find.
__________________
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 June 18th, 2012, 04:42 AM   #19 (permalink)
Member
Verified Customer
 
Join Date: Dec 2008
Posts: 123
Could have sworn I replied to this lol thanx Chuck....did you have a chance to look into this yet?
LissaE is offline   Reply With Quote
Old June 18th, 2012, 09:01 AM   #20 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
I have no resolution yet no.
__________________
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
Highest Rated Bug? helkoryo Photopost Pro Bug Reports 7 January 20th, 2009 08:48 AM
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 07:48 PM.

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