TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 488
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 462
  • Total: 462

Lost my logout button :)

Started by hsdk, October 25, 2006, 09:34:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hsdk

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? :)

G6Cad

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.

hsdk

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

IchBin

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!

hsdk

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

hsdk

Anyone?  I would also like to add some links in my adminbox(from TP)

knat

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  ::)

knat

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  ;)

This website is proudly hosted on Crocweb Cloud Website Hosting.