Members   Search      Help    Register    Login    Home
Home » Support Forums for PMBT 2.X » PMBT 2.X Themes » login required fix
login required fix [message #2539] Sat, 18 April 2009 04:24 Go to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
sorry About this most of the themes have a login required for Privates site setting and it is not allowing for invite system here is the fix

Open themes/youtheme/main.php

and if it has it find
if($pivate_mode AND !$user->user AND !eregi("user.php",$_SERVER["PHP_SELF"])) loginrequired("user", true);

and replace it with
function newuserpage($page)
{
if(eregi("user.php",$page))return true;
if(eregi("takeconfirminvite.php",$page))return true;
if(eregi("confirminvite.php",$page))return true;
return false;
}
if($pivate_mode AND !$user->user AND !newuserpage($_SERVER["PHP_SELF"])){
 loginrequired("user", false);
include'footer.php';
}


http://a.imageshack.us/img831/5562/mybikes.png
Re: login required fix [message #2540 is a reply to message #2539] Sat, 18 April 2009 13:31 Go to previous messageGo to next message
god1 is currently offline god1  United Kingdom
Messages: 5
Registered: April 2009
Leecher
</table>
<?php
if($pivate_mode AND !$user->user AND !eregi("user.php",$_SERVER["PHP_SELF"])) loginrequired("user", true);

echo "<table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n";
echo "<tr>\n";
if($pivate_mode AND !$user->user AND !eregi("user.php",$_SERVER["PHP_SELF"])) loginrequired("user", true);
echo "<td width=\"180\" align=\"center\" valign=\"top\" bgcolor=\"#c2d8e1\">\n";



as you can see i,ve found this line in 2 places in the NB-Teal theme, do i need to change both these lines
Re: login required fix [message #2541 is a reply to message #2540] Sat, 18 April 2009 15:03 Go to previous messageGo to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
remove second one as it should only be there one time


http://a.imageshack.us/img831/5562/mybikes.png
Re: login required fix [message #2542 is a reply to message #2541] Sat, 18 April 2009 17:27 Go to previous messageGo to next message
god1 is currently offline god1  United Kingdom
Messages: 5
Registered: April 2009
Leecher
tyvm works great Cool Cool Cool
Re: login required fix [message #2983 is a reply to message #2539] Wed, 14 October 2009 19:22 Go to previous messageGo to next message
Voreios is currently offline Voreios  Finland
Messages: 75
Registered: October 2009
Seeder
Thanks for the fix but why Archer theme login looks like that ?

http://imagefruity.com/images/xidyvr1df3vgvkuumyd9.jpg
Re: login required fix [message #2984 is a reply to message #2983] Wed, 14 October 2009 19:25 Go to previous messageGo to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
try working with the placement of it depending on where it is located is how it well look.

http://a.imageshack.us/img831/5562/mybikes.png
Re: login required fix [message #2986 is a reply to message #2984] Wed, 14 October 2009 20:01 Go to previous messageGo to next message
Voreios is currently offline Voreios  Finland
Messages: 75
Registered: October 2009
Seeder
What about the white background ?
Re: login required fix [message #2988 is a reply to message #2986] Thu, 15 October 2009 01:25 Go to previous message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
open theme main.php and find
</td><td><img src="themes/Archer/pics/pixel.gif" width="5" height="1" border="0" alt=""></td>

<!-- End Page Head -->
<?php

and add this
function newuserpage($page)
{
if(eregi("user.php",$page))return true;
if(eregi("takeconfirminvite.php",$page))return true;
if(eregi("confirminvite.php",$page))return true;
return false;
}
if($pivate_mode AND !$user->user AND !newuserpage($_SERVER["PHP_SELF"])){
 loginrequired("user", false);
 echo "</tr></table>";
 die;

}


http://a.imageshack.us/img831/5562/mybikes.png
Previous Topic:1Thank theme error under Admin
Next Topic:NB-Teal
Goto Forum:
  


Current Time: Wed Feb 08 21:58:02 GMT 2012

Total time taken to generate the page: 0.00756 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software