Access registered content

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
13 years 3 months ago #24270

something like that:
$user =& JFactory::getUser();
if(!empty($user->id)){
...do the redirect....
}

Please Log in or Create an account to join the conversation.

  • Posts: 137
  • Thank you received: 2
13 years 2 months ago #25343

When accessing the URL http://....com/mybio/product/ we now get the message "Please login first" and a logout button, because we are already logged in. Is there a way to handle this situation better?

Please Log in or Create an account to join the conversation.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
13 years 2 months ago #25346

Not easily.

Please Log in or Create an account to join the conversation.

  • Posts: 137
  • Thank you received: 2
12 years 10 months ago #36104

When a user enters a wrong UID, password combination the "your login failed" message appears. But additionally the "Please login first" message appears. Is it possible to hide the second message in this case?

Please Log in or Create an account to join the conversation.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #36153

No it's not.

Please Log in or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum