PDA

View Full Version : Show guests newest post first by default


gopherhockey
09-12-2008, 08:59 PM
By default I can set how new user registrations are set (i.e. linear - newest post first) but for guests this isn't an option.

I saw someone suggest this, but it does not seem to work (older post) - anyone know how to do this in 3.7x?

global_start

$vbulletin->userinfo['postorder'] = ($vbulletin->userinfo['postorder'] OR $show['guest']);


Basically I want guests browsing our forums to use linear - newest first.

--------------- Added 1221257253 at 1221257253 ---------------

Answering my own - appears this works (change showthread.php)

// ************************************************** *******************************
// set post order
if ($vbulletin->userinfo['postorder'] == 0)
{
$postorder = '';
}
else
{
$postorder = 'DESC';
}
// set default post order for guests
if ($bbuserinfo['userid'] == 0)
{
$postorder = 'DESC';
}

zero477
01-21-2013, 05:08 PM
Thanks very much for your help!!!