| Pass phpbb variables through templates...
My site is coded around the phpbb forum system and in my site header is code that runs phpbb sessions so that even my static pages have access to phpbb variables.
Unfortunately, because PP starts a session itself I cannot run my standard header code as it causes an error... can't start a second session inside of my header. SOOO..... here is what I have and maybe you can tell me how to deal with it...
1. I have commented out the lines in pp-inc.php that create and print the header (the header variable creation, opening html tags through the end of the if/else statement that prints the header) so that the standard HTML will not print.
2. I have added an include statement to menubar.tmpl that opens my php file containing the header code for the site (and edited that code so that any calls from the gallery won't start a phpbb session)
Now I need to use some phpbb variables in my header.php file... and they SHOULD be available somehow, but I am not sure how. I tried $username[0], etc... but they come up blank.
Q1: Is the phpbb session started BEFORE the menubar.tmpl template is loaded?
Q2: How can I call the following variables from phpbb within the menubar.tmpl template:
- user_id
- username
- session_logged_in
- user_new_privmsg
Thanks,
Darren
Scion Life
|