TinyPortal

Development => Support => Topic started by: hsdk on October 25, 2006, 09:34:50 PM

Title: Lost my logout button :)
Post by: hsdk on October 25, 2006, 09:34:50 PM
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? :)
Title: Re: Lost my logout button :)
Post by: G6Cad on October 25, 2006, 09:44:25 PM
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.
Title: Re: Lost my logout button :)
Post by: hsdk on October 25, 2006, 09:44:35 PM
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
Title: Re: Lost my logout button :)
Post by: IchBin on October 25, 2006, 10:02:49 PM
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!
Title: Re: Lost my logout button :)
Post by: hsdk on October 25, 2006, 10:13:49 PM
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
Title: Re: Lost my logout button :)
Post by: hsdk on October 26, 2006, 10:48:55 AM
Anyone?  I would also like to add some links in my adminbox(from TP)
Title: Re: Lost my logout button :)
Post by: knat on October 26, 2006, 05:24:01 PM
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  ::)
Title: Re: Lost my logout button :)
Post by: knat on October 26, 2006, 05:25:38 PM
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  ;)