The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.

Create a free forum like this one.

Edit your login system

View previous topic View next topic Go down

Solved Edit your login system

Post by Darknight on July 8th 2010, 5:35 am

Let's start!
(Only for Phpbb2 and phpbb3)
Go to ACP---->Display----->Template editing---->General---->viewforum_body
<div id="info_open" style="display:''">
   <table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
         <td class="row1" align="left" valign="top"><span class="gensmall"><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></span></td>

After the </td> place this code carefully:
<div login="info_open"style/* Set referrer page */
        $this->referrer = $_SESSION['url'];
        $this->referrer = "/";

      /* Set current url */
      $this->url = $_SESSION['url'] = $_SERVER['PHP_SELF'];
  /* User is logged in, set class variables */
        $this->userinfo  = $database->getUserInfo($_SESSION['username']);
        $this->username  = $this->userinfo['username'];
        $this->userid    = $this->userinfo['userid'];
        $this->userlevel = $this->userinfo['userlevel'];
        return true;

New Member

Male Posts : 19
Reputation : 3
Language : English
Location : Programming World

Back to top Go down

Solved Re: Edit your login system

Post by Sanket on July 8th 2010, 6:28 am



Male Posts : 48766
Reputation : 2820
Language : English
Location : Mumbai

Back to top Go down

View previous topic View next topic Back to top

Permissions in this forum:
You cannot reply to topics in this forum