Quote:
Originally Posted by Mystics
Take a look at the Prefix plugins...you don't need to edit the files.
(and only the last method is correct: '(' . $threadinfo['threadprefix'] . ') ' . )
|
Thanks ..... i made my wanted changes :squareeyed:
Still ... dunno how to get the prefix in front of the url in the last post on forumhome ....
Maybe a little help from you?
PHP Code:
if ($vbulletin->options['prefixinlastpost'])
{
if ($vbulletin->userinfo['userid'] AND in_coventry($vbulletin->userinfo['userid'], true))
{
$counter_select = str_replace('forum.lastthread, tachyforumpost.lastthread', 'IF(forum.lastthreadprefix <> \'\' AND forum.allowprefix != 0, CONCAT(\'(\', forum.lastthreadprefix, \') \', forum.lastthread), forum.lastthread) AS lastthread, IF(tachyforumpost.lastthreadprefix <> \'\' AND forum.allowprefix != 0, CONCAT(\'(\', tachyforumpost.lastthreadprefix, \') \', tachyforumpost.lastthread) AS lastthread, tachyforumpost.lastthread)', $counter_select);
}
else
{
$counter_select = str_replace('lastthread,', 'IF(lastthreadprefix <> \'\' AND allowprefix != 0, CONCAT(\'(\', lastthreadprefix, \') \', lastthread), lastthread) AS lastthread,', $counter_select);
}
}