Logout link in a welcome block
 
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_tinies
View previous topic :: View next topic  
Author Message
Woodstock
Apprentice
Apprentice


Joined: 09 Aug 2004
Posts: 9
Location: Italy

PostPosted: Tue Aug 10, 2004 7:33 pm    Post subject: Logout link in a welcome block Reply with quote

Is possible put a logout link in the welcome block? 
Back to top
View user's profile Send private message Visit poster's website
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Tue Aug 10, 2004 8:24 pm    Post subject: Re: Logout link in a welcome block Reply with quote

Well, it can be done by changing a bit the code...

1) backup the following files:
modules/mx_tinies/welcome.php
modules/mx_tinies/templates/welcome_body.tpl

2) Apply the following MOD:
Code:
#
#---[ OPEN ]----------
#
modules/mx_tinies/welcome.php
#
#---[ FIND ]----------
#
   'L_REGISTER_MSG'      => $register_msg,
#
#---[ AFTER, ADD ]----------
#
   'L_LOGOUT' => $lang['Logout'],
   'U_LOGOUT' => PORTAL_URL."login.$phpEx?logout=true&sid=".$userdata['session_id'],
#
#---[ OPEN ]----------
#
modules/mx_tinies/templates/welcome_body.tpl
#
#---[ FIND ]----------
#
href="{U_PRIVATE_MSGS}" class="gensmall">{L_PRIVATE_MSGS}</a>
#
#---[ AFTER, ADD ]----------
#
<br /><img src="{IMG_ICON_DOT}" border="0" width="5" height="5" />&nbsp;<a href="{U_LOGOUT}" class="gensmall">{L_LOGOUT}</a>
#
#---[ SAVE/CLOSE ALL FILES ]----------
#

Works?

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
Woodstock
Apprentice
Apprentice


Joined: 09 Aug 2004
Posts: 9
Location: Italy

PostPosted: Tue Aug 10, 2004 8:35 pm    Post subject: Re: Logout link in a welcome block Reply with quote

Perfect, thanks again! Wink 
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_tinies All times are GMT + 1 Hour
 
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum