Thanks a lot, I think something must be messed up then because threads of private forums are seen by everyone in the latest threads column. Not the threads themselves but the titles and it can reveal some sensitive content so...
Where should I look to try finxing this out?
BTW thanks a lot for your fast response, very kind from you
For the code above, I've tried it without success. I forget something maybe?
Code:
$forumid=6;
$limit=5;
$query = $DB_site->query("SELECT threadid,title FROM thread WHERE visible=1 AND forumid='$forumid' order by lastpost desc limit $limit");
while ($last5array = $DB_site->fetch_array($query)) {
$threadid=$last5array[threadid];
$threadtitle=$last5array[title];
$last5.='<a href=\"showthread.php?s=$session[sessionhash]&threadid=$threadid\">$threadtitle</a><br>';
}
I put this in my index file right bellow the variables settings then I've put $last5. I have the link displayed as it it in the code, showing me this: $threadtitle with the code in the link! ("showthread.php?s=$session[sessionhash]&threadid=$threadid\")
Grrr, I'm not a coder sorry! lol