1. How to implement efficient random calls in Empire CMS
$randnum=10; //Random number
$randids='';
$randdh='';
for($i=1;$ i<=$randnum;$i++)
{
$randids.=$randdh.rand(1,100000); //1 is the minimum ID, 100000 is the maximum ID
$randdh=',';
}
?> ;
[e:loop={column ID, display number, operation type, only display pictures with titles, "id in ($randids)"}]
//Template code content
[/e:loop]
2 , Column page parent column link address:
$cr['classid']=$class_r[$GLOBALS[navclassid]][bclassid];
$bclassurl=sys_ReturnBqClassname($cr,9);
echo $bclassurl;
?>