PDA

View Full Version : 'Welcome Username' And 'Log Out' Options in Admin CP


TECK
07-07-2002, 10:00 PM
This hack will allow you to add a welcome user and logout option to your Admin CP.

TECK
07-08-2002, 06:22 PM
A screenshot...

Velocd
07-08-2002, 08:26 PM
Well it's defiantly useful for those forums with more than one admin ;)

I usually just log out by the forum. Good job though :)

Admin
07-09-2002, 06:43 AM
Why not use the regular logout routine? What's the point in being logged out and then taken to the Admin CP again?

And when was the last time you forgot who you are... ;)

TECK
07-09-2002, 01:37 PM
true. i simply wanted to have the logout redirect it to the admin page. if you want to use firefly's idea (wich makes alot of sense) and have the regular forum logout, use this code instead:
<td align="right"><a href="../index.php?s=<?php echo $session[sessionhash]; ?>" target="_blank">HOME</a> | <a href="../member.php?s=<?php echo $session[sessionhash]; ?>&action=logout" target="_top">LOG OUT</a></td>
</tr>no other mods are needed.
also about the welcome name? i did it on my admin cp because i use it while i was testing the 'Selected Users Only Can Edit Admin Options' hack... i was getting confused who i was when i was... ;)
i think i logged out and in about 1zillion times... so the name helped me. :)

Chris M
09-07-2002, 10:36 AM
I like it:)

Satan

Hobbes
12-20-2002, 04:52 AM
One question

where do I put the code TECK provided for being logged out to the forums? <td align="right"><a href="../index.php?s=<?php echo $session[sessionhash]; ?>" target="_blank">HOME</a> | <a href="../member.php?s=<?php echo $session[sessionhash]; ?>&action=logout" target="_top">LOG OUT</a></td>
</tr> ???? Where do I put that in members.php ?

Silenced Soul
12-20-2002, 08:14 PM
I added this back on the vB 2.2.1... i don't see the big point of it... other than to test security of hacks when your updating your admin cp.

Oblivion Knight
04-11-2003, 09:21 PM
Interesting TECK, I like it :). Thankyou!

* Oblivion Knight clicks install.

Crank
01-28-2004, 12:49 AM
installed