how to display top photos in photo gallery

noman posted 18th of August 2008 in Community Voice. 2 comments.

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?

 
Comments
·Oldest
·Top
Please login to post a comment.
okweb
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..
noman
Tried this but still no dice though from the code, it should work. Any other suggestions?
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.
PET:0.052511930465698