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 Wed Jul 07, 2010 10:35 pm

Let's start!
(Only for Phpbb2 and phpbb3)
Go to ACP---->Display----->Template editing---->General---->viewforum_body
Find:
Code:
<div id="info_open" style="display:''">
   <table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
      <tr>
         <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:
Code:
<div login="info_open"style/* Set referrer page */
      if(isset($_SESSION['url'])){
        $this->referrer = $_SESSION['url'];
      }else{
        $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;
avatar
Darknight
New Member

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

http://sgaforum.forumsmotions.com

Back to top Go down

Solved Re: Edit your login system

Post by Sanket on Wed Jul 07, 2010 11:28 pm

Locked
avatar
Sanket
ForumGuru

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

http://webartzforum.com

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