[ALPHA] Logout link in ACP

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

[ALPHA] Logout link in ACP

Postby -jm- » Sun Aug 20, 2006 7:38 pm

It should add a nice logout link at the top of each ACP page.
Useful if you want to exit without returning to forum index

Version: 0.0.2
Download

Please note:
People with admin session logout by evil<3 should explain to their secondary admins the difference between the logout link into ACP left frame and this one.
It should work (if not please let me know something)

upgrade from 0.0.1 available into the pack

(edit: link updated due to script migration - no content change :P )
Last edited by -jm- on Thu Oct 11, 2007 8:34 am, edited 3 times in total.
Reason: download link updated
-jm- (a.k.a. juanm) - moderator team member = *NO* private support
phpBB.com links: **Rulez** :: Knowledge Base :: Bugtracker :: Hacked?
With so many beautiful colors in the world it’s a shame to make everything black and white - Dennis R. Little
my links: tips&stuff :: stuff only
User avatar
-jm-
Former Team Member
 
Posts: 2025
Joined: Fri Jul 16, 2004 10:56 am
Location: Inside the mind of the machine

Postby eviL<3 » Sun Aug 20, 2006 8:11 pm

Hehe, i was just wondering if this does the same as my MOD. I have a few notes:

First of all:
Code: Select all
$lang['you_admin']

I'd chose something a little more descriptive than "you_admin". Good idea?

Also:
Is "$lang['Logout']" needed in lang_admin.php? I thought items from lang_main.php also worked for admin pages...

I'm not sure about this one, so its very well possible that it's needed ;)

Also a suggestion to avoid confusion...
On my board, i made the admin logout look like this:
Image

The arrow is a link for logging out of the ACP. I could release it as an addon for this MOD...

I'd only use .zip if it's needed (picky me)...


Good luck with this MOD. It's really simple and nice!

Screenshots please :D
Igor Wiedler, former MOD Team Leader
Become a junior validator | MODX Creator | Submit your MOD
User avatar
eviL<3
Former Team Member
 
Posts: 7479
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}

Postby -jm- » Sun Aug 20, 2006 8:42 pm

Two errors :evil: ...
Of course it's not lamg_admin but lang_admin (little typo, but it should be enough for easyMOD to become crazy)
Then.
In admin/page_header_admin.php
(this is a partial find ... not the full line)
Code: Select all
append_sid('../login.

should be
Code: Select all
append_sid('./../login.

so nobody could try to hurt.

in
templates/{yourtemplate}/admin/page_header.tpl
FIND
Code: Select all
{U_ACP_LOGOUT}

IN LINE AFTER ADD
Code: Select all
target="_top"

(note the white space before target)
this edit can be an overkill but it will avoid some wierd things :)
The little MOD will be repackaged tomorrow :(

hope it could help and sorry for possible troubles.
-jm- (a.k.a. juanm) - moderator team member = *NO* private support
phpBB.com links: **Rulez** :: Knowledge Base :: Bugtracker :: Hacked?
With so many beautiful colors in the world it’s a shame to make everything black and white - Dennis R. Little
my links: tips&stuff :: stuff only
User avatar
-jm-
Former Team Member
 
Posts: 2025
Joined: Fri Jul 16, 2004 10:56 am
Location: Inside the mind of the machine

Postby tunafish » Mon Aug 21, 2006 5:58 am

Actualy,

Code: Select all
append_sid('../login.


should be

Code: Select all
append_sid($phpbb_root_path . 'login.
phpBB Problems? PM ME :)
tunafish
Registered User
 
Posts: 152
Joined: Sat Jul 23, 2005 1:29 pm

Postby -jm- » Mon Aug 21, 2006 7:05 pm

pack updated ...
-jm- (a.k.a. juanm) - moderator team member = *NO* private support
phpBB.com links: **Rulez** :: Knowledge Base :: Bugtracker :: Hacked?
With so many beautiful colors in the world it’s a shame to make everything black and white - Dennis R. Little
my links: tips&stuff :: stuff only
User avatar
-jm-
Former Team Member
 
Posts: 2025
Joined: Fri Jul 16, 2004 10:56 am
Location: Inside the mind of the machine


Return to [2.0.x] MODs in Development

Who is online

Users browsing this forum: No registered users and 8 guests