I'm trying to tweak this script to just call one user's photo(s) and use that over in each member's profile... here's what I edited in thumbnailer, but it's not working right. It calls user 1's thumbnails.
Code:
//Display Setting (Changes to fit your page)
$q_switch = "theuser"; // "random" or "most_views" or "latest" or "theuser"
$limit = 10; //number of image to show
$table_width = "80%"; //width of the table generated
$column = 2; //number of columns of the table generated
$photo_cell_align = "center"; //alignment of those cells
and then this further down:
Code:
//added by themonarch
case "theuser":
if ( !IsSet($cat) ) {
$group_title = "Individual Users Photo";
$query = "SELECT id,user,userid,cat,date,title,description,keywords,bigimage,width,height,filesize,views,medwidth,medheight,medsize,approved,rating FROM photos WHERE bigimage!='' AND userid='$bbuserid'";
}
else {
$query = "SELECT id,user,userid,cat,date,title,description,keywords,bigimage,width,height,filesize,views,medwidth,medheight,medsize,approved,rating FROM photos WHERE bigimage!='' AND userid='Sbbuserid'";
$group_title = "Individual Users Photos";
}
break;
//themonarch
You can see it here:
http://www.allartistaccess.com/media...2.php?userid=1
If you change the userid to userid=43, it still pulls user 1's images.