PDA

View Full Version : Any changes to board variables between


JPnyc
01-12-2007, 02:57 PM
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


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

Tuk4
01-12-2007, 03:14 PM
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!

JPnyc
01-12-2007, 03:57 PM
Bless you bud, you nailed it right off. That 1st change is what was needed

Tuk4
01-13-2007, 12:12 AM
Glad i could help :)