HomeNoteslast photos to random photos
1527 days ago in 
Tags: page, on, change, index
Reactions: 2 comments 0 points0 reports
 
 

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? 

Plussed by

 
 
 
 

Comments

Oldest First
|
Threaded
 
 
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.
 
 
 
PET:0.054319143295288