Topic: a new ajax login forum. need help!!!!!!!!!!!!!!!!!!!!!!!!!!
guy i need help !
http://modelcrowd.com
click on login2 on menu bar..
i just want the login box to open up...
Don't be stupid and help ! We are the stupid one's !!!
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → a new ajax login forum. need help!!!!!!!!!!!!!!!!!!!!!!!!!!
guy i need help !
http://modelcrowd.com
click on login2 on menu bar..
i just want the login box to open up...
Err... try making your own form and have it submit
that why i need help i have tried other login scripts... some showup as blank other get parser errors.
this on atleast it let you login...
this is the code that i user to create the link..
in options i added this link
5 = <a href="login.php?height=450&width=450" title="ajax" class="thickbox"> login2</a>
ok now i got it working.. but how do i remove the nav bar?
can i just copy the login.php and remove it from the file?
Just copy the form from login.php and make it submit to login.php. It should work
well i tried that...lol...
hold on let me show you the output!
login2a--------- it looks weird!
That works fine if you'd load all the needed language files too
this is my code for the login1.php
<?php
if (isset($_GET['action']))
define('PUN_QUIET_VISIT', 1);
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
// Load the login.php language file
require PUN_ROOT.'lang/'.$pun_user['language'].'/login.php';
?>
<div class="blockform">
<h2><span><?php echo $lang_common['Login'] ?></span></h2>
<div class="box">
<form id="login" method="post" action="login.php?action=in" onsubmit="return process_form(this)">
<div class="inform">
<fieldset>
<legend><?php echo $lang_login['Login legend'] ?></legend>
<div class="infldset">
<input type="hidden" name="form_sent" value="1" />
<input type="hidden" name="redirect_url" value="<?php echo $redirect_url ?>" />
<label class="conl"><strong><?php echo $lang_common['Username'] ?></strong>Username <br />
<input type="text" name="req_username" size="25" maxlength="25" tabindex="1" /><br /></label>
<label class="conl"><strong><?php echo $lang_common['Password'] ?></strong>Password<br />
<input type="password" name="req_password" size="16" maxlength="16" tabindex="2" /><br /></label>
<p class="clearb"><?php echo $lang_login['Login info'] ?></p>
<p><a href="register.php" tabindex="4"><?php echo $lang_login['Not registered'] ?></a>
<a href="login.php?action=forget" tabindex="5"><?php echo $lang_login['Forgotten pass'] ?></a>submit</p>
</div>
</fieldset>
</div>
<p><input type="submit" name="login" value="<?php echo $lang_common['Login'] ?>" tabindex="3" /></p>
</form>
</div>
</div>
ok got it working now.
how do i replaces the login in the menu bar with it..
and how can i get it to display logout when someone is logged in...
hehehe
Look in functions.php, generate_navlinks()
i didnt include all the login.php script in my login1.php
so if i replaces
$links[] = '<li id="navlogin"><a href="login.php">'.$lang_common['Login'].'</a>';
with
$links[] = '<li id="navlogin"><a href="login1.php">'.$lang_common['Login'].'</a>';
will that mess things up?
so it will not display the login1.php if someone is loged in?
this is the url that need to be added to that line
<a href="login1.php?height=350&width=700" title="ajax" class="thickbox"> login2a</a>
how can i convert it to
$links[] = '<li id="navlogin"><a href="login.php">'.$lang_common['Login'].'</a>';
$links[] = '<li id="navlogin"><a href="login1.php?height=350&width=700" title="ajax" class="thickbox">Login</a>';
Something like that
i got it.. wooohoooo...
$links[] = '<li id="navlogin"><a href="login1.php?height=350&width=700" title="ajax" class="thickbox"> '.$lang_common['Login'].'</a>';
that what i needed!
elb, you think this is a kewl mod to release?
looks nice, yeah
do u want to release it?
lol.
just give me a few lines of credit?
i can zip all the files....
there not that much extra files.
add a few lines to the main.tpl
javascript lines
add the code to the style.css
and mode the functions.php
and drop in the login1.php.. that it
Well, you made it so it's no use that I release it eh You have your own punres account... ^^
for some reason im not good at that stuff..lol... writing install readme file. ...lol..
Just say "replace that by that in file that" Not too hard =/
ok ok im going to try... gesss...
next time dont cuss me like that! with my ex-wife name...... lmao.
j/k..
lol.. i made the register.php now into a lightbox...haha
evil giggles......
PunBB Forums → PunBB 1.2 troubleshooting → a new ajax login forum. need help!!!!!!!!!!!!!!!!!!!!!!!!!!
Powered by PunBB, supported by Informer Technologies, Inc.