PDA

View Full Version : [fixed] No Session Variable in postbit!!


Dioxin
Thu 16th Aug '01, 6: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, 7:15am
Verified on the beta board.

Thanks for letting us know; I will move your thread over now :)

DVD Plaza
Thu 16th Aug '01, 7: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, 8:13pm
That is because the postbit templates are now parsed in a function instead of global code.

DVD Plaza
Thu 16th Aug '01, 11:12pm
Yeah I noticed, took me a while to work out where to reapply some of my custom hacks. :)

Kier
Fri 17th Aug '01, 1: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 thisglobal $bbuserinfo,$session,$ignore;