Zen Cart Logo
Forums / General Questions / Really annoying problem with customized Login script!!

Really annoying problem with customized Login script!!

Locked

Views: 983

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
21 Dec 2008, 9:55 PM
#1
xblight avatar

xblight

New Zenner

Join Date:
Nov 2008
Posts:
11
Plugin Contributions:
0

Really annoying problem with customized Login script!!

http://www.xblight.com

Hey everyone.
Ok so if you go on my site and click music on the top, ull see that i set it up so it takes you to a new popup window that tells you to logon before accessing the music player (assuming your not logged in).

I put two options, either Log In or Create an Account.

Youll notice that if you click create an account it takes you to a separate page (still in the popup) where I setup a mini version of the user registration page. I got that part working perfectly and i've tried it numerous times.

If they click log in however it closes the popup and opens a new window that takes you to the normal index.php login page. Which works fine but im a perfectionist.

What I want to do is make log in take you to a new login page within the popup, just like the create an account one. I just cant seem to get it working though, and would really appreciate help.

TIA! :D

21 Dec 2008, 10:37 PM
#2
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Really annoying problem with customized Login script!!

well, im not javascript guru nor i know much about it , but your button is calling two function .. open_win() and self.close()

both are doing their job right i guess,

maybe you want to pass the url of login page to self.open() ? or something similar in javascript ???

22 Dec 2008, 1:18 AM
#3
xblight avatar

xblight

New Zenner

Join Date:
Nov 2008
Posts:
11
Plugin Contributions:
0

Re: Really annoying problem with customized Login script!!

Yeah but then it would be stuck in popup mode which would be really bothersome for users.

The only possibility I see is making a form similar to the create account one, I just cant seem to get it right though.

22 Dec 2008, 1:22 AM
#4
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Really annoying problem with customized Login script!!

never mind my first post..

remove your javascript function you don't need it .

Use this ..

<input type="button" name="_blank" value="Login" onclick="javascript:window.location='http://xblight.com/store/index.php?main_page=login';"/>

this will open the login page in same window.

hope this helps .

22 Dec 2008, 4:21 AM
#5
xblight avatar

xblight

New Zenner

Join Date:
Nov 2008
Posts:
11
Plugin Contributions:
0

Re: Really annoying problem with customized Login script!!

yes, i know.
the idea is that I want the login box alone.
not all the other stuff that comes with login.php..
I want the actual form for the login boxes.