Quote:
Originally Posted by Lionel
sorry, did not see your stickies question. Simply remove stickies in the order by if you don't want them.
|
no worries, and sorry as well...another n00b question.
I'm not a coder so I'm completely guessing here:
so, take this part:
PHP Code:
$getnews = $db->query_read("SELECT threadid from " . TABLE_PREFIX . "thread WHERE attach !='0' AND forumid in($forumid) ORDER by sticky DESC, threadid DESC LIMIT $limit");
while ($news = $db->fetch_array($getnews)) { $myid[]=$news['threadid']; }
$div_id = 1;
foreach ($myid as $threadid) {
and delete the "ORDER by sticky DESC,"
so I get:
PHP Code:
$getnews = $db->query_read("SELECT threadid from " . TABLE_PREFIX . "thread WHERE attach !='0' AND forumid in($forumid) threadid DESC LIMIT $limit");
while ($news = $db->fetch_array($getnews)) { $myid[]=$news['threadid']; }
$div_id = 1;
foreach ($myid as $threadid) {
would that solve the sticky problem?