HomeUnityBlogs
 
 
Sola

last photos to random photos

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? 
bad
0
good
 
 

Comments

okweb
okweb 105 days agocomment permalink
 
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 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';
 
bad
1
good
 
 
Sola
Sola 104 days agocomment permalink
 
I did and works!!

thanks thanks!!

now only I need put pictures on backgroud in profiles.
 
bad
0
good
 
 


Post a Comment

Please login to post a comment.

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