Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Zorac - joulukuu 29, 2005, 02:00:49 IP

Otsikko: ssi wont work in index.template.php??
Kirjoitti: Zorac - joulukuu 29, 2005, 02:00:49 IP
i have menu that i put the top of the forum with the following code:

    include_once ("http://miniunit.com/php/menu.php");

i have since started to add ssi function to the menu for certain member groups, the functions work great on all the pages ive created, but dont work correctly on the main forum page, the variable $user_info['groupls'] holds -1 instead of the correct user groups.

all my own pages/code resides in http://miniunit.com/php whild the forum resides in http://miniunit.com/smf

any ideas?

thanks.
Otsikko: Re: ssi wont work in index.template.php??
Kirjoitti: Zorac - joulukuu 29, 2005, 07:18:22 IP
nm, took a couple hours of reading, and trial and error, but it turns out i need to declare $user_info as global in index.template.php