View Full Version : [fixed] No Session Variable in postbit!!
Dioxin
Thu 16th Aug '01, 7:39am
I have no rights to post in Bug Forum, please move it there. Thanx.
No session variable is parsed to the postbit template, i think you have to integrate session as global variable in the new function in function.php.
greets from germany,
Dioxin
JamesUS
Thu 16th Aug '01, 8:15am
Verified on the beta board.
Thanks for letting us know; I will move your thread over now :)
DVD Plaza
Thu 16th Aug '01, 8:56pm
Actualy postbit has lost more than that - when I upgraded to 2.0.3 the variables I set up in phpinclude suddenly no longer worked, had to change them (as with several of the other templates that don't carry variables through) to $GLOBALS[variablename] to work.
Wayne Luke
Thu 16th Aug '01, 9:13pm
That is because the postbit templates are now parsed in a function instead of global code.
DVD Plaza
Fri 17th Aug '01, 12:12am
Yeah I noticed, took me a while to work out where to reapply some of my custom hacks. :)
Kier
Fri 17th Aug '01, 2:40pm
THE FIX
Open admin/functions.php and find
function getpostbit($post) {then look down a couple of lines and find this
global $bbuserinfo,$ignore;and replace it with this
global $bbuserinfo,$session,$ignore;
Powered by vBulletin™ Version 4.0.0 Beta 4 Copyright © 2009 vBulletin Solutions, Inc. All rights