View Full Version : threadview problem
azerty
05-30-2001, 10:34 AM
You know, the page where you see all the threads from the users are listed ?
Wel on that page when somebody replies to a thread, that thread automatically moves to the top, well I don't want that, I know you can disable this in the code somewhere so that they just stay in there place. I did it before but on a way older version, and honestly don't know anymore how to do it.
please help me out
thanks alot
Wayne Luke
05-30-2001, 03:05 PM
This is the normal behaviour of vBulletin. You will have to alter the code in the forumdisplay.php file.
azerty
05-30-2001, 04:54 PM
But where and what should I change ...
azerty
05-30-2001, 05:28 PM
$threads=$DB_site->query("
SELECT $dotuserid $votequery ".iif($foruminfo[allowicons],'icon.title as icontitle,icon.iconpath,','')."
thread.threadid,thread.title,lastpost, forumid,pollid,open,replycount,postusername,postus erid,
lastposter,thread.dateline,views,thread.iconid,not es,thread.visible,sticky,votet otal,attach
FROM thread
".iif($foruminfo[allowicons],'LEFT JOIN icon ON (icon.iconid = thread.iconid)','')."
$dotjoin
WHERE $threadids
ORDER BY sticky DESC, $sortfield $sqlsortorder
");
It's something in ORDER (last line) that has to be changed, anybody knows what exactly ?
Wayne Luke
05-30-2001, 06:46 PM
You will have to change the default value for $sortfield unless you want to remove all sorting capabilities from your members.
azerty
05-30-2001, 07:17 PM
christ, could you say that in non-expert language ? In vb 1.13 I had simply to channge "laspost" to "threadID", so what you think I should do here ?
Mike Sullivan
05-30-2001, 08:11 PM
I wouldn't use threadid. Use dateline instead:
You just have to change the default case to "dateline" instead of "lastpost"
default:
$sortfield='lastpost';
azerty
06-02-2001, 10:15 AM
Could you perhaps the code the way it should be , because I can't quiet understand what I have to change , sorry but I'm a newbie :D
Thanks !
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.