PDA

View Full Version : Login through my main screen


I-web
04-30-2003, 03:16 PM
Hey all...

I want to be able to allow my clients to login to the members area through my main screen......

Its in html............

Anyone able to point me in the right direction??????

Thanks in advance.


Also i would like to add my PHPLive icon to the Trouble Ticket page.... how can i go about doing this????
Edit : Having looked at it a bit more, i would like to add the PHPLive links in the right hnd column that has the Accounts Summary in it.... I think that would be the most ideal place.

Alberto
04-30-2003, 07:37 PM
All you need to do is pass the same variables you see in the login page to index.php

I-web
04-30-2003, 07:38 PM
sorry i should of updated that again.... i found that.... thanks anyways man....

But still dont know how to add my phpLive image (link) to the Accounts summary column on the right hand side :blink:

Alberto
04-30-2003, 09:08 PM
You can't at the moment, but you can modify the templates and add it to the top menu.. check out templates/Raleigh/

I-web
05-01-2003, 08:52 AM
OK.... i think that will work for now...

OK.. for my next item... lol.... :rolleyes:

I want to be able to have a popup window for forgotten password (i.e. on my main page underneath the login section there will be a link that says 'Forgotten Password?') When they click this i want it to open in a small popup window asking for the users e-mail address....

I have the page setup, but cant get it to work correctly.... I have looked through the login template, and i cant seem to find the form action for it to make it parse.

I am able to do it this way arent i? or will it not work :(

Alberto
05-01-2003, 09:10 AM
Good question, It should work just fine. The issue will be redirecting your input to the parent window not the popup window.

I-web
05-02-2003, 03:17 AM
hmmm.... i cant find out how to send the information to wherever it needs to go from the form,

On the login fields i used

<form method="post" action="system/index.php">

What would i need to use for the forgotten password?

I-web
05-04-2003, 07:30 AM
Originally posted by I-web@May 2 2003, 02:17 AM
hmmm.... i cant find out how to send the information to wherever it needs to go from the form,

On the login fields i used

<form method="post" action="system/index.php">

What would i need to use for the forgotten password?
Anybody know what details i need to put into the form to make the Forgotten password option available on another page other than the login one??

As you can see ive tried the same as the login method, but it doesnt seem to work.......

Any assistance would be helpful

bear
05-04-2003, 10:42 AM
I'm guessing that you should look over the hidden fields in the form submit. There are several including an ID that are likely needed for it to run...

I-web
05-04-2003, 12:04 PM
Originally posted by bear@May 4 2003, 09:42 AM
I'm guessing that you should look over the hidden fields in the form submit. There are several including an ID that are likely needed for it to run...
but the form in the login.tpl has no action.... so i cant work out how to make it work from a different page... :S

bear
05-04-2003, 02:21 PM
Looks to me to be on about line 67 in that file, and the action is passed as a hidden field just below the line with the opening <form> tag. If you were to snatch everything from there to the closing </form> tag, you might have some success.
I'm guessing, as I haven't tried it personally.

I-web
05-04-2003, 02:41 PM
My testing file is a direct copy of all of that coding........

The problem is obviously getting the new forgotpassword.htm to redirect the form to the CE system......

i see where it says about action, but it isnt telling it to use a file like the logon part does... Thus making it a nightmare.........

hmmmmmm any other ideas?? keep em coming :D

bear
05-04-2003, 03:54 PM
I'm sorry to say that I'm out of ideas. Too many encoded files where these functions are likely located, so it's not possible to see what it's doing. If I had more time I'd fool with this, but business has been good lately, and time is short. Sorry...I'm sure someone will pop in and have an idea for you.

I-web
05-04-2003, 04:22 PM
Hey no probs......

Thanks for the time you could spare ;)

Anyone else out there?? hey Alberto?? you must know whats going on with this form??? lol :D

Alberto
05-05-2003, 04:12 PM
I haven't tested it out yet. I was assuming it would work without a problem, but it might not.

I-web
05-09-2003, 03:34 AM
Anybody managed to get the forgotten password function to work from a different page yet???? if so whats your form details? (method etc...)

Placer14
05-09-2003, 08:31 AM
http://www.higherhost.com/support.html

Worked fine for me. :) I literally just copied the form from the main page and included the javascript files in my header and I was good to go. :)

I-web
05-09-2003, 10:04 AM
I had a look at your source code for that section, and its slightly different from the template one....

So i copied and pasted yours (obviously changing the necessaries) and hey presto it works....

But...... lol... always a but huh?

My forgotten password opens a popup window asking for the e-mail address, then what happens is it obviously forwards them to the index.php page say password has been sent....

I dont want that index.php page to open in the popup window, is there a way to get that to open in the original window? (where the link to the popup window is)?

Placer14
05-09-2003, 07:38 PM
There is a hierarchy in javascript where you can make the results show in the "parent" window. I did this very thing you are referring to back when IE4 was out but that was back in the DAY and i'd have to dig up really old code. If I find the code, i'll show you what I did and let you copy.

Or maybe I should just let you search the Javascript Reference on your own like I did. :P

I-web
05-10-2003, 03:04 AM
lol....

Someone over at RS forums suggested using window.opener, ive had a look at it and cant seem to implement the way that i would like.....

So as my work around this is what i have done so far.....

The popup appears in its own small window....

When they submit their e-mail address... the screen resizes to full screen and moves to the very top left.... thus making it a standard web browsing page.... Not the idealist of ways to do it, but until i can work out this window.opener properly.... its the only way i can see it working :(

If your on about that same bit of code, and you know how to use it, would love to know :D

Placer14
05-10-2003, 03:23 PM
Well, I found my script. Though it's REALLY bad. The way I accessed the parent window is through the "opener" id. For example:

If I wanted to access form field's "price" value i was call it within javascript by
var newPrice = opener.price.value;

I would imagine you could change the location similarly by
function redirparent(url)
{ opener.window.location = url; }

Now this is HORRIBLE psuedo code. I'd still have to do some research to make sure the hierarchy is the same. But play around with that some, maybe that'll help. :)

I-web
05-10-2003, 03:27 PM
thats gone straigth over my head :(

Ive not really used javascript much.... let alone psuedo code... lol...

Maybe someone will do this and get it working, then paste there code here for all to share??? (heres hoping anywayz)

Placer14
05-11-2003, 12:19 AM
When the user enters the email address in the popup window, do you want it to close and then direct the main page to the index.php page showing the email was sent?

Still a little unclear.

I-web
05-11-2003, 05:07 AM
yeah!!!!

Thats the one...

So basically, after their email address is entered, the popup window closes..... and the index.php page to load in the parent window, with the information that either the user doesnt exist or that the e-mail was sent sucessfully.........

Placer14
05-11-2003, 08:56 PM
Well...you can use javascript to open the new window with just a text field in it. with a button (or link) with a property onClick. When the link/button is clicked, it will pass the email address to the parent windows into a hidden field, close the popup window, and submit that info to index.php.

That's probably the easiest way to do it. I can't actually code it out because my Javscript is horrible. Maybe after I finish customizing my site, I'll see if I can whip something up for you. :)

I-web
05-12-2003, 02:44 AM
Sweet..... i await your results :)