i need to know how i can take the topic id.
I need to work in the template news_item.html
for eg: <{ if $topic_id == 3 }> do this <{ /if }>
thanks a lot
m0nty wrote:
i don't think it's that important these days for search engines at least.. most if not all the major search engines, do NOT penalise you now and can read url's like xoops's.
as for user friendly that's a different story ;)
[b]// code for MODEL ORDER BY RANDOM[/b]
$sql = "SELECT imgurl ";
$sql.= " FROM ".$xoopsDB->prefix('myalbum3_cat');
$sql.= " ORDER BY rand()";
$sql.= " LIMIT 0 , 1 ";
$rs = $xoopsDB->query($sql) or die($xoopsDB->error());
$xoopsTpl->assign('rs_rand', $xoopsDB->getRowsNum($rs));
[b]// end code for MODEL ORDER BY RANDOM[/b]
[b]// code for LAST MODEL JOINED[/b]
$sql = "SELECT imgurl ";
$sql.= " FROM ".$xoopsDB->prefix('myalbum3_cat');
$sql.= " ORDER BY cid DESC";
$sql.= " LIMIT 0 , 1 ";
$rs1 = $xoopsDB->query($sql) or die($xoopsDB->error());
$xoopsTpl->assign('rs_last', $xoopsDB->getRowsNum($rs1));
[b]// end code for LAST MODEL JOINED[/b]
<img src="<{$rs_rand}>" border="0">
<img src="<{$rs_last}>" border="0">
markoh wrote:
Hi i've got one website where the registred users use the image manager a lot.
The problem is that the sorting is done by the oldest images first.
The users have to navigate all te way to the back to see their added image.
how can i reverse this. so that the newest images are on the first page?