HomeUnityBlogs
 
 
noman

how to display top photos in photo gallery

Am running 6.0.0005

Right now the photo gallery block displays the latest photos in the photo gallery, but I would like to display the top photos. Ive tried editing this section of code in the PageCompTopPhotosContent function in ~/templates/tmpl_uni/scripts/index.php:

if ( $_GET['Mode_p'] == 'rand' or
$_GET['Mode_p'] == 'last' or
$_GET['Mode_p'] == 'top' )
$mode = $_GET['Mode_p'];
else
$mode = 'top';

But that change is not being reflected on the site (http://play.grovepinesconnect.com/index.php). Is this the right code to change?

bad
0
good
 
 

Comments

okweb
okweb 108 days agocomment permalink
 
Look a bit down in your code and you will have a line like this I think
if( $page < 1 or $mode == 'last' )
you have to change this to..
 
bad
0
good
 
 
noman
noman 86 days agocomment permalink
 
Tried this but still no dice though from the code, it should work. Any other suggestions?
 
bad
0
good
 
 


Post a Comment

Please login to post a comment.

This Post
 
 
noman Blog
All Blogs
Found a bug? Have a suggestion? We really value your feedback!
 
© 2008 BoonEx Ltd
ABN 27 127 966 581
 
PET:0.398030996323