PDA

View Full Version : How to connect log in from another page.?


Gamelobby
06-20-2009, 01:03 AM
Im trying to tie in the vB login with my webtemplate.

Here is the form/code that is currently in the html for that part.
<div id="login">
<form name="login" method="post" action="">
<input name="username" type="text" class="login_field" tabindex="1" value="USERNAME" />

<input name="Password" type="password" class="login_field" tabindex="2" value="password" />

<input name="login" type="submit" class="button login" tabindex="3" value="" />
<input name="help" type="button" class="button help" tabindex="4" value="" />
<input name="register" type="button" class="button register" tabindex="5" value="" />
</form>
</div>


Anyone have anything that can help me..?
Or even point me in the right direction.

Thanks

Lynne
06-20-2009, 01:14 AM
Is that the same form from the navbar template? That form has all the necessary items. And are you including global.php in your php page?

Dismounted
06-20-2009, 03:56 AM
You aren't specifying an action for the form - currently, the information when submitted is going nowhere.

Gamelobby
06-20-2009, 05:34 AM
No that is the blank HTML that came with the web template that i got. I am wondering what i need to do/edit to make it work, so we can use it to login to the vB forums from the web template page.?

See here for the login form on the top left. - http://www.clantemplates.com/templates/callofduty4_equality/

FYI. This is not a page built into or from vB.

Gamelobby
06-21-2009, 05:49 AM
Any other thoughts..?

Or can i help explain it better.

Lynne
06-21-2009, 03:00 PM
If you want to login to vbulletin, why don't you just copy the login form from the navbar like I suggested?

Gamelobby
06-24-2009, 04:54 AM
Sorry, i thought you didn't understand what i meant.
My issue is that i dont think it has ALL the correct information to link this front page to my vB.?

I guess i will have to play with it more, but i believe i tried copying the same info & it didn't work, but maybe im missing something. That is why i made this post was to see what i might be missing. :)

--------------- Added 1245908927 at 1245908927 ---------------

Is there a page or thread somewhere that explains this kind of stuff.?
I mean i know there are sites out there that you login from the front page (outside of vB) that logs you into the forums automatically.?

My last resort is to just remove the log in from the main page, but it is just that, a last resort.

Thanks

Gamelobby
06-25-2009, 05:03 AM
This is what i got when i did that..

Once you enter your username & password then hit login:
It goes to a almost blank white page that says this error
The requested method POST is not allowed for the URL /CDS/index.html.

jchamber2010
06-25-2009, 09:19 PM
Simply add the url you are originating from to the following setting, and it should work.
AdminCP -> vBulletin Options -> General Settings -> Post Referrer Whitelist

Gamelobby
06-26-2009, 04:05 AM
That might work to do something, but it definitely wont work for this.. lol

I appreciate the effort though.
Thanks

jchamber2010
06-26-2009, 11:24 PM
your trying to send post commands to vBulletin, by default it blocks them from all hosts except from it's own root. That message says that vbulletin is blocking posts from that url, try adding it. If that doesn't work then I'll try to help you figure it out, but I'm betting you that's what it is.

Gamelobby
06-29-2009, 09:03 PM
OHHHH i see what you mean, it is blocking it because the root is different.
So try the root from the main site.. i'll try it.!!