The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Edit your login system

2 posters

Go down

Solved Edit your login system

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

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;
Darknight
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 July 8th 2010, 6:28 am

Locked
Sanket
Sanket
ForumGuru

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

Back to top Go down

Back to top

- Similar topics

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