Creating Custom Login/Logout Messages

I saw a Job posting regarding this and since I use to have this in the Market as free, I figured I would post it here for everyone to see:

 

This will create a custom Welcome text and Logout text when you members visit your site.

**** Always make a backup of any files that you edit ****


For the Login message:

- Edit the member.php

- Find:
    $_page_cont[$_ni]['page_main_code'] = MsgBox( _t( '_Please Wait' ) );
   
- Replace it with:
    $_page_cont[$_ni]['page_main_code'] = $ret ='<br><br><center> <h1 div class="mem_login" id="mem" style="background-color:#3d3d3d;">Welcome Back ' . ' ' . $p_arr['NickName'] . '</div><Br>' . '</h1>' ;
   
** You can change the background color here: background-color:#3d3d3d
** You can modify the message by editing the words Welcome Back



For the Logout message:

- Edit the logout.php

- Find:
    $_page_cont[$_ni]['page_main_code'] = MsgBox(_t('_Please Wait'));
   
- Replace it with
    $_page_cont[$_ni]['page_main_code'] = $ret ='<br><br><center> <h1 div class="mem_login" id="mem" style="background-color:#3d3d3d;">Come Back Soon ' . ' ' . $p_arr['NickName'] . '</div><Br>' . '</h1>' . ' <br> ' . '<h3>Please wait while we log you out... ';
   
** You can change the background color here: background-color:#3d3d3d
** You can modify the message by editing the words Come Back Soon AND Please wait while we log you out...


Code to insert images:


<img src="mypic.jpg" alt="My Picture" width="100" height="100" />

You will need to edit the fields in Red to accommodate your actual image

 

Example Login Message with image insert:

    $_page_cont[$_ni]['page_main_code'] = $ret ='<br><br><center> <img src="mypic.jpg" alt="My Picture" width="100" height="100" /> <h1 div class="mem_login" id="mem" style="background-color:#3d3d3d;">Welcome Back ' . ' ' . $p_arr['NickName'] . '</div><Br>' . '</h1>' ;



Nothing to see here
Quote · 22 Mar 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.