wMan |
8th February 2010 01:27 |
Tiger Login
2 Attachment(s)
preview attached
setup
1.open up admin panel
. go to setings
. set private tracker as "on"
2. open themes/pmbt/main.php
. look for
PHP Code:
if($pivate_mode AND !$user->user AND !newuserpage($_SERVER["PHP_SELF"])){ loginrequired("user", false); include'footer.php'; }
.replace with
PHP Code:
if($pivate_mode AND !$user->user AND !newuserpage($_SERVER["PHP_SELF"])) { echo "<meta http-equiv=\"refresh\" content=\";url=login.php?op=ienakt\">"; die(); }
3. open themes/pmbt/style.css
. add
Code:
/* ********** [ LOGIN ] ********** */
.gridRow1 {
padding:8px 24px 8px 20px;
}
.headerMenuRow1 {
background:url(pics/login1.png) no-repeat top center;
height:50px;
font: bold 14px Trebuchet MS, tahoma, arial, sans-serif;
color: #333333;
text-align:center;
}
.gridTable {
background:url(pics/login2.png) repeat-y;
}
.headerMenuRow1 a:link, .headerMenuRow1 a:active, .headerMenuRow1 a:visited {
font: bold 14px Trebuchet MS, tahoma, arial, sans-serif;
color: #444444;
text-decoration: underline;
}
.gridFooter {
position:absolute;
margin-top:8px;
}
.gridFooter2 {
height:43px;
background:url(pics/login3.png) no-repeat bottom center;
}
/* ********** [ ENDS ] ********** */
4. create file called login.php
. copy falowing in it
[php]
if (defined('IN_PMBT'))die ("You can't include this file");
define('IN_PMBT', true);
require_once("include/config.php");
echo "\n";
echo "\n";
echo "\n";
echo " \n";
echo"";
echo "";
echo " ".$sitename."\n";
if (is_readable("themes/$theme/favicon.ico")) {
echo " \n";
}
$reason = "";
if (is_banned($user, $reason)) {
echo " "; die();
}
if (is_readable("themes/$theme/style.css")) {
echo " \n\n";
}
$logintop = "
joeroberts |
8th February 2010 01:29 |
that looks good you going to create a theme to match?:drink:
looks Like I well need to edit hard coded words to use language files Maybe l8tr :lol:
|
wMan |
8th February 2010 01:31 |
Quote:
Originally Posted by joeroberts
(Post 20621)
that looks good you going to create a theme to match?:drink:
|
themes is mostly done but will req some moding so i'm optimizing it
|
chanserv |
9th February 2010 02:10 |
Having done all these steps index.php display only the banner!.
|
joeroberts |
9th February 2010 02:11 |
change
PHP Code:
echo "<meta http-equiv=\"refresh\" content=\";url=login.php?op=ienakt\">";
to
PHP Code:
echo "<meta http-equiv=\"refresh\" content=\"0;url=login.php?op=ienakt\">";
|
chanserv |
9th February 2010 02:22 |
|
wMan |
9th February 2010 02:27 |
lol
change call from orginal to header location sincu ur using chrome what is like IE :smack:
|
joeroberts |
9th February 2010 02:28 |
turn on allow short tags in wamp/xamp php settings
|
chanserv |
9th February 2010 02:40 |
Quote:
Originally Posted by joeroberts
(Post 20720)
turn on allow short tags in wamp/xamp php settings
|
the problem still exists even with IE and FireFox
|
wMan |
9th February 2010 02:44 |
try this
PHP Code:
if($pivate_mode AND !$user->user AND !newuserpage($_SERVER["PHP_SELF"]))
{
echo "<meta http-equiv=\"refresh\" content=\";url=login.php?op=ienakt\">";
die();
}
if don't work deleate these line and look for
PHP Code:
function newuserpage($page)
{
if(preg_match("/user.php/",$page))return true;
if(preg_match("/takeconfirminvite.php/",$page))return true;
if(preg_match("/confirminvite.php/",$page))return true;
return false;
}
and add lines again right UNDER these lines
|
All times are GMT +2. The time now is 12:21. |
|
Powered by vBulletin® Version 3.8.11 Beta 3 Copyright ©2000 - 2024, vBulletin Solutions Inc.
|