The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Create links on my menu for register/login/logout

View previous topic View next topic Go down

Solved Create links on my menu for register/login/logout

Post by lisa1302 on May 17th 2011, 7:10 pm

Hi All

So I have a custom menu, but I currently use the default buttons for Register/LogIn/Logout because I don't know how to make the buttons react correctly, as in show Login when the user isn't already logged in, and vice versa to show Log out..and also to show the register button only when the user is not signed in.

I am using a css/html menu and hoped someone would know how to do this?

TIA

flower


Last edited by lisa1302 on May 18th 2011, 12:14 am; edited 1 time in total

lisa1302
Forumember

Female Posts : 305
Reputation : 40
Language : Enlish
Location : UK

http://www.babiesandall.com

Back to top Go down

Solved Re: Create links on my menu for register/login/logout

Post by *Mare-SBK™* on May 17th 2011, 11:25 pm

Put this code to overall_header template.
Code:
<!-- BEGIN switch_user_logged_out -->
<YOUR  CODES FOR REGISTER & LOGIN BUTTON>
<!-- END switch_user_logged_out -->
Code:
<!-- BEGIN switch_user_logged_in -->
<YOUR  CODES FOR LOGOUT BUTTON>
<!-- END switch_user_logged_in -->

*Mare-SBK™*
Forumember

Male Posts : 181
Reputation : 16
Language : Serbian, English, German

http://design4u.forumsr.com/

Back to top Go down

Solved Re: Create links on my menu for register/login/logout

Post by lisa1302 on May 17th 2011, 11:39 pm

@*Mare-SBK™* wrote:Put this code to overall_header template.
Code:
<!-- BEGIN switch_user_logged_out -->
<YOUR  CODES FOR REGISTER & LOGIN BUTTON>
<!-- END switch_user_logged_out -->
Code:
<!-- BEGIN switch_user_logged_in -->
<YOUR  CODES FOR LOGOUT BUTTON>
<!-- END switch_user_logged_in -->

Thanks but what codes do you mean, and how?! And how does that get added to a css/html menu?

EDIT, I made a mix of my code and your code and its worked!

Thanks!!!

lisa1302
Forumember

Female Posts : 305
Reputation : 40
Language : Enlish
Location : UK

http://www.babiesandall.com

Back to top Go down

Solved Re: Create links on my menu for register/login/logout

Post by Sanket on May 18th 2011, 11:10 am

Since this thread is marked solved, I will lock this thread.


Sanket Smile


Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum