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...

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: a new ajax login forum. need help!!!!!!!!!!!!!!!!!!!!!!!!!!

Err... try making your own form and have it submit smile

3 (edited by quaker 2006-06-14 14:32)

Re: a new ajax login forum. need help!!!!!!!!!!!!!!!!!!!!!!!!!!

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?

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: a new ajax login forum. need help!!!!!!!!!!!!!!!!!!!!!!!!!!

Just copy the form from login.php and make it submit to login.php. It should work smile

Re: a new ajax login forum. need help!!!!!!!!!!!!!!!!!!!!!!!!!!

well i tried that...lol...
hold on let me show you the output!

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: a new ajax login forum. need help!!!!!!!!!!!!!!!!!!!!!!!!!!

login2a--------- it looks weird!

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: a new ajax login forum. need help!!!!!!!!!!!!!!!!!!!!!!!!!!

That works fine if you'd load all the needed language files too tongue

Re: a new ajax login forum. need help!!!!!!!!!!!!!!!!!!!!!!!!!!

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>

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: a new ajax login forum. need help!!!!!!!!!!!!!!!!!!!!!!!!!!

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

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: a new ajax login forum. need help!!!!!!!!!!!!!!!!!!!!!!!!!!

Look in functions.php, generate_navlinks() smile

11

Re: a new ajax login forum. need help!!!!!!!!!!!!!!!!!!!!!!!!!!

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?

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

12

Re: a new ajax login forum. need help!!!!!!!!!!!!!!!!!!!!!!!!!!

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>';

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: a new ajax login forum. need help!!!!!!!!!!!!!!!!!!!!!!!!!!

$links[] = '<li id="navlogin"><a href="login1.php?height=350&width=700" title="ajax" class="thickbox">Login</a>';

Something like that smile

14

Re: a new ajax login forum. need help!!!!!!!!!!!!!!!!!!!!!!!!!!

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!

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

15

Re: a new ajax login forum. need help!!!!!!!!!!!!!!!!!!!!!!!!!!

elb, you think this is a kewl mod to release?

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: a new ajax login forum. need help!!!!!!!!!!!!!!!!!!!!!!!!!!

looks nice, yeah smile

17

Re: a new ajax login forum. need help!!!!!!!!!!!!!!!!!!!!!!!!!!

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

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: a new ajax login forum. need help!!!!!!!!!!!!!!!!!!!!!!!!!!

Well, you made it so it's no use that I release it eh tongue You have your own punres account... ^^

19

Re: a new ajax login forum. need help!!!!!!!!!!!!!!!!!!!!!!!!!!

for some reason im not good at that stuff..lol... writing install readme file. ...lol..

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: a new ajax login forum. need help!!!!!!!!!!!!!!!!!!!!!!!!!!

Just say "replace that by that in file that" tongue Not too hard =/

21

Re: a new ajax login forum. need help!!!!!!!!!!!!!!!!!!!!!!!!!!

ok ok im going to try... gesss...
next time dont cuss me like that! with my ex-wife name...... lmao.

j/k..

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

22

Re: a new ajax login forum. need help!!!!!!!!!!!!!!!!!!!!!!!!!!

lol.. i made the register.php now into a lightbox...haha

evil giggles......

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!