last photos to random photos

Sola posted 21st of March 2008 in Community Voice. 3 comments.
Hello again! Can anyone tell me how to set the photos on the front page to always appear as Random and not as Last? I'd like that everytime someone opens the page there would be different photos, not always the last uploaded photos. How can I change that? 
 
Comments
·Oldest
·Top
Please login to post a comment.
okweb
Not sure about you mean Profile Photo or Photo Gallery, so...

Change Profile Photo to Random:

Go to /templates/tmpl_uni/scripts/index.php

And find what is bellow here inside function:
function PageCompTopPhotosContent( $sCaption )

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


Chang $mode = 'last';
To $mode = 'rand';



Change Photo Gallery to Random:

Go see more to inc/sharing.inc.php

And find what is bellow here inside function:
function PageCompSharePhotosContent($sCaption, $iID = 0)

$mode = $_GET['shPhotosMode'];
if( $mode != 'rand' && $mode != 'top' && $mode != 'last')
$mode = 'last';


Chang $mode = 'last';
To $mode = 'rand';
Sola
I did and works!!

thanks thanks!!

now only I need put pictures on backgroud in profiles.
yzisano
http://www.boonex.com/forums/topic/Random-Photos-Videos-Sound.htm
 
 
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.049095153808594