hey i searched a bit and couldnt seem to find anything. i know theres a login portal, but i was wondering if you had like a logout portal, something just like a login portal, but only a button that said logout. no textboxes, just the button, and the portal would go hidden when you logout, being the exact opposite of the login portal. or maybe if you knew a way the login portal could instead of going hidden, transform into the logout portal. thanks!
Easy enough to do, will make the existing login portal mutate able, so while logged out you see it as it currently is and once logged in it will change it's contents to show a logout button.
Go into your admin panel, option 3 styles, then edit templates/logos and pick the template your going to work on, now from the bottom drop down list pick cms_login.tpl open it up and add the following below whats already inside the file:
This should now should the login portals as normal, but instead off just hiding, the contents change and now logged in you should see a button titled logout, that when clicked does just that.
this time i changed the name="Logout" to name="logout" and it gave me an error Invalid_session. im trying a few things here, i just dont know all the values/code that are usable
Last edited by k on Fri Aug 17, 2007 6:35 pm; edited 1 time in total
To obtain a border similar to how the buttons appear normally, then the following needs to be followed:
#logoutbtn a would need it's border set to:
Code:
border: 2px outset #FF0000;
#logoutbtn a:hover would need it's border set to:
Code:
border: 2px inset #990000;
Changing the border color, background color and font color will allow you to heavily customise the appearance of the button as you can see and test here on template 1.
Go into your admin panel, option 3 styles, then edit templates/logos and pick the template your going to work on, now from the bottom drop down list pick cms_login.tpl open it up and add the following below whats already inside the file:
actually, not to be mean er dis your work, but im a bit of a perfectionist and didnt like the fact that the button was slightly different than normal other buttons (like search and login) so i messed with the code a bit and got one that works beautifully and you dont need the css! its so short too!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum