Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=93)
-   -   Tiger Login (http://www.bvlist.com/showthread.php?t=4446)

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 = "



Neesi reģistrejies spied

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

after changing this line
Code:

echo "";
i got this error:

http://i48.tinypic.com/rk0nzt.jpg

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

joeroberts 9th February 2010 02:45

please show me your login.php

wMan 9th February 2010 02:53

me ?

joeroberts 9th February 2010 02:54

no his he got redirect working as the page he showed as being messed up is login.php so I need to see it to see Y it is showing like he has short tags disabled
http://i48.tinypic.com/rk0nzt.jpg

wMan 9th February 2010 08:43

replace all code till

PHP Code:

case "nozaudeta_parole": { 

with this

PHP Code:

<?php
if (defined('IN_PMBT'))die ("You can't include this file");
define('IN_PMBT'true);
require_once(
"include/config.php");
echo 
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">';
echo 
"<html>\n";
echo 
"<head>\n";
echo 
'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';
echo 
'<script type="text/javascript" language="JavaScript" src="bbcode.js"></script>';
echo 
'<!--[if lt IE 7]><script defer type="text/javascript" src="pngfix.js"></script><![endif]-->';
echo 
"<title>".$sitename."</title>\n";
if (
is_readable("themes/$theme/favicon.ico")) { 
echo 
'<link REL="shortcut icon" HREF="themes/!!!CHANGE ME!!!/favicon.ico" TYPE="image/x-icon">'
}
$reason "";
if (
is_banned($user$reason)) {
echo 
'<meta http-equiv="refresh" content="0;url=ban.php?reson=';echo".urlencode($reason)."">\n";die();
}
if (
is_readable("themes/$theme/style.css")) {
echo 
'<link rel="StyleSheet" href="themes/!!!CHANGE ME!!!/style.css" type="text/css"><script type="text/javascript" src="global.js"></script>';
}
$logintop '<center><img src="themes/!!!CHANGE ME!!!/pics/logosmall.png"></center>
<table width="100%" cellpadding="0" cellspacing="0"> 
<tr> 
<td class="headerMenuRow1" width="100%" colspan="2" nowrap>Not registred ? <a href="login.php?op=jauns_lietotajs">signup</a><a href="login.php?op=nozaudeta_parole">Lost password ?</a> 
</td> 
</tr> 
</table> 
<table width="100%" cellpadding="0" cellspacing="0"> 
<tr> 
<td width="100%" valign="top"> 
<table width="410" cellpadding="0" cellspacing="0" style="margin:0px auto"><tr><td></td></tr></table> 
<table cellpadding="0" cellspacing="1" width="410" class="gridTable" style="margin:0px auto">'
;
$loginbottom '</table></td></tr><td class="gridFooter2" width="100%"></td></table>';
echo
"</head><body>";
switch (
$op) { 
case 
"ienakt": {
echo 
"$logintop";
echo 
'<form method="POST" action="user.php';
echo 
".$returnto."
echo
' ><input type="hidden" name="op" value="login" />
<tr> 
<td class="gridRow1" nowrap>Nick</td> 
<td width="100%" class="gridRow1"><input class="textarea" type="text" name="username" size="34" /></td> 
</tr>

<tr> 
<td class="gridRow1" nowrap>Pass</td> 
<td width="100%" class="gridRow1"> 
<input class="textarea" type="password" name="password" size="34" /> 
</td> 
</tr>

<tr> 
<td class="gridFooter" colspan="2"> 
<center><input class="button" type="submit" value="Login" /></center> 
</td> 
</tr>
</form>'
;
echo 
"$loginbottom";
break;
}

and report if that works for you

and change all !!!CHANGE ME!!! to name of ur theme


All times are GMT +2. The time now is 01:45.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.