>>  Site Map >>  Forums >>  Post Installation Help

Forum module - topics in forum:



Post Installation Help - Help with problems after installation.



The Login at the bottom of the forums!

Ever since I have been using PHP-Nuke I have been bugged by the non working Login at the bottom of the forums, it does it here too cause I just logged out and tried using it and got the predictable results, a 404 error.

My fix was kind of a redneck fix I took it off but there should be a way to fix it, but I have yet to see it work and since it isn't really necessary I just got rid of it, it is not like you can't login in in several places within PHP-Nuke.






The fix I am about to give you isn't a sure fire fix but it will help as long as your site doesn't have the security code turned on. Open your themes/forum/index_body.tpl and find:
Code: :
<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">
  <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
   <tr>
     <td class="catHead" height="28"><a name="login"></a><span class="cattitle">{L_LOGIN_LOGOUT}</span></td>
   </tr>
   <tr>
     <td class="row1" align="center" valign="middle" height="28"><span class="gensmall">{L_USERNAME}:
      <input class="post" type="text" name="username" size="10" />
      &nbsp;&nbsp;&nbsp;{L_PASSWORD}:
      <input class="post" type="password" name="password" size="10" />
      &nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN}
      <input class="text" type="checkbox" name="autologin" />
      &nbsp;&nbsp;&nbsp;
      <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
      </span> </td>
   </tr>
  </table>
</form>
<!-- END switch_user_logged_out -->

and then change the {S_LOGIN} to "modules.php?=Your_Account" then add the next 2 lines below that line:
Code: :
<input type="hidden" name="op" value="login">
<input type="hidden" name="redirect" value="index">


In the password box change the variable name="password" to name="user_password"

So the whole thing looks like this:

Code: :
<form method="post" action="modules.php?name=Your_Account">
<input type="hidden" name="op" value="login">
<input type="hidden" name="redirect" value="index">
  <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
   <tr>
     <td class="catHead" height="28"><a name="login"></a><span class="cattitle">{L_LOGIN_LOGOUT}</span></td>
   </tr>
   <tr>
     <td class="row1" align="center" valign="middle" height="28"><span class="gensmall">{L_USERNAME}:
      <input class="post" type="text" name="username" size="10" />
      &nbsp;&nbsp;&nbsp;{L_PASSWORD}:
      <input class="post" type="password" name="user_password" size="10" />
      &nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN}
      <input class="text" type="checkbox" name="autologin" />
      <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
      </span> </td>
   </tr>
  </table>
</form>

As I said it won't work if the site has the security code turned on however it will stop the page cannot be found errors. The ideal thing to do according to both Jae_9 and SevenofNine (our theme designers) would be to drop that section of code completely. It's a carry over from the original phpbb and has no function in nuke. Hence the page cannot be found errors.






I opted to just remove the thing, cause I really didn't see any reason for having it in addition to all the other areas you can login with PHP-Nuke.

Thank you Nuke Code!




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS