sailjapan wrote:
Quote:It would nice to be able choose a default user-group to display.
Or just have it stay where you'd set it before clicking on submit would make even more sense...
i second this one
sailjapan wrote:
Quote:It would nice to be able choose a default user-group to display.
Or just have it stay where you'd set it before clicking on submit would make even more sense...
<img src="<{php}> echo getRndImgURL('random'); <{/php}>" alt="" width="158" height="116" />
<{php}>
function getRndImgURL($path) { // Display Random Image from File Path
$i = 0;
$dir = @opendir(XOOPS_ROOT_PATH.'/themes/random/'.$GLOBALS['xoopsConfig']['theme_set'].'/'.$path);
while ( false !== ($filename = readdir($dir)) ) {
if ( preg_match("/(.gif|.jpg|.png)$/", $filename) ) { // image filter
$images[$i] = $filename;
$i++;
}
}
closedir($dir);
mt_srand( (double)microtime() * 1000000 );
$choice = array_rand($images);
return XOOPS_URL.'/themes/random/'.$GLOBALS['xoopsConfig']['theme_set'].'/'.$path.'/'.$images[$choice];
}
<{/php}>
mboyden wrote:
clear as mud?
clear as mud?
<img src="<{php}> echo getRndImgURL('headimages'); <{/php}>" alt="" width="730" height="150" /><br />
<img src="<{php}> echo getRndImgURL('headimages'); <{/php}>" alt="" width="730" height="150" />