Hehe, during heavy modifying my theme i seem to have "lost" my logout button :2funny:
How do i re-implement my logout button?
index.php?action=logout dosent seem to work..
Help? :)
I dont know what theme you have alter the code in, but in the index.template.php file you have the actions for the buttons.
Look at the bottom of the file and see if you are missing the code and the array for the logout button.
Compare the file with a fresh one and see whats missing out.
I managed to create this:
if($context['user']['is_logged'])
echo '
<span class="smalltext"><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">(' , $txt[108] , ')</a><br /> </span><br />';
How could i add this to my userbox?
Best Regards
Andreas
There is no possible way to add that code to your file....
JUST KIDDING! :D
You need to be more specific if you want us to help you. What theme are you using, and exactly where would you like it placed? What userbox are you talking about? If you're talking about the TinyPortal User box, then where would you like it placed? Buttom, top? NEED more details!
Hehe, okey. sorry for sitting back on the info :)
im using the smfox theme, and i use the Tinyportal userbox, and i would like to add the this logout function to the bottom of my userbox. Just below the date and time line in the userbox. :)
reg.
Andreas
Anyone? I would also like to add some links in my adminbox(from TP)
you will find the code for the userbox in TPortalblocks.template.php
Just search for userbox.. i added a link to my userCP.. its no big deal ;)
And in my userCP i have my logoff button ::)
By the way.. i had some problems getting my logoff button to work.. then i found out that i had the settings for cookies wrong in the admin panel.. so if your logoff dont work.. check your SMF cookie settings ;)