The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Any changes to board variables between
3.0 and 3.5 ? The code below was working fine with 3.0, now the test to see if the current user is the thread author, no longer functions
Code:
if ((! preg_match("/\[RESOLVED\]/i",$thread['title']) && //1 (($thread['open'] && $thread['postuserid'] == $bbuserinfo['userid']) || // this part no longer works (can_moderate($thread['forumid'], 'caneditthreads') && can_moderate($thread['forumid'], 'caneditposts'))))) { //3 |
#2
|
|||
|
|||
its not longer bbuserinfo -> its $vbulletin->userinfo['userid'].
and instead of thread (i dont know exacly where you are adding this) try $threadinfo, if it wont work after you changed $bbuserinfo to $vbulletin->.... Good Luck! |
#3
|
|||
|
|||
Bless you bud, you nailed it right off. That 1st change is what was needed
|
#4
|
|||
|
|||
Glad i could help
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|