Simple Machines Community Forum

General Community => Scripting Help => Aiheen aloitti: dee_jay123 - syyskuu 26, 2007, 01:16:44 IP

Otsikko: Main Menu -- Added menu item and need redirects
Kirjoitti: dee_jay123 - syyskuu 26, 2007, 01:16:44 IP
I've added a new menu item "Joomla Home" to the SMF main menu.

I have linked "Joomla Home" to go to the main Joomla homepage.

I would like to keep this for guests (not logged in), but for Members (logged in) I want to send them to a different Joomla page.

Can some scripting test for a user being logged in (or not), and then redirect to the proper Joomal page.

How would I do this    (BTW, I'm not a programmer)

Thanks
Otsikko: Re: Main Menu -- Added menu item and need redirects
Kirjoitti: Kindred - syyskuu 26, 2007, 01:29:41 IP
   if($context['user']['is_logged'])

or

   if ($context['user']['is_guest'])