2
Hi , I think that you have to inform your script you use random sorting :
le="color: #000000"><?php $rand = isset($HTTP_GET_VARS['rand']) ? intval($HTTP_GET_VARS['rand']) : 1; if ( (isset($HTTP_GET_VARS['orderby'])) && ($rand == 0)) { $orderby = convertorderbyin($HTTP_GET_VARS['orderby']); } else { $orderby = "rand()"; }
and then you have to modify several links by adding variable rand to the url, e.g. ( add
&rand=$rand )
le="color: #000000"><?php $page_nav .= "<a href='viewcat.php?cid=$cid&min=$prev&orderby=$orderby&show=$show&rand=$rand'><b><u>«</u></b></a> ";
next step:
change urls responsible for sorting in template :
mylinks_viewcat.html (add
&rand=0)
le="color: #000000"><?php <a href="viewcat.php?cid=<{$category_id}>&orderby=titleA&rand=0">
third step: I think adding url for random ordering will be useful (becouse after choosing normal sorting you can't use random sorting, except clicking on main links to viewcat.php will bring random links)
le="color: #000000"><?php <a href="viewcat.php?cid=<{$category_id}>"><img src="images/(some image, maybe question mark, which describes random sorting)" border="0" align="middle" alt="" />
I don't know if there above is a mistake. I didn't test it. I took it from head :)