Page 1 of 1

Logged in check Joomla

Posted: Thu Feb 28, 2008 7:16 pm
by ozenbas
Hi Everybody,

I am using joomla for so many years but the problem i have is as it described below hope someone can help me about it.

i have a php link that i created by php editor, i used this php file as a wrapper in a menu item, but i want this link to be seen only for everyone even not the one logged in unless they click, i want this php file checked by joomla login session, if user not logged in i want to warn them to go and register.

i knew there is an option in Joomla to make the links or menu items resctricted to users and visitors but it only shows the link or the menu item once they login, i want them to show the link only if they did not login and php needs to check if a user logged in or not. if logged in the page will appear if not will go to the registration page.

How can i do that? is there any trick or way? i try to find out the code that joomle uses but could not.

Thanks

Re: Logged in check Joomla

Posted: Mon Mar 03, 2008 4:39 pm
by ozenbas
ozenbas wrote:Hi Everybody,

I am using joomla for so many years but the problem i have is as it described below hope someone can help me about it.

i have a php link that i created by php editor, i used this php file as a wrapper in a menu item, but i want this link to be seen only for everyone even not the one logged in unless they click, i want this php file checked by joomla login session, if user not logged in i want to warn them to go and register.

i knew there is an option in Joomla to make the links or menu items resctricted to users and visitors but it only shows the link or the menu item once they login, i want them to show the link only if they did not login and php needs to check if a user logged in or not. if logged in the page will appear if not will go to the registration page.

How can i do that? is there any trick or way? i try to find out the code that joomle uses but could not.

Thanks
SOLVED _ CLOSED