![]() |
Update: Works for 2.2.2
This hack will allow you to put a login for your vB anywhere on your site, and then once the user logs in, they are returned to where they were. Requirements: Your entire site must be php, it determines its location (to return user) via php. If there is demand enough, I'll make it work with plain jane HTML. |
Hi,
I do not want to have a login on non-vB pages ... but I want to have the login thing on the forumdisplay template. So what do I have to change and tu put in when I want to do this? I would be really happy if you could do this with this hack .. |
I'm surprised you don't have more feedback on this yet. This is exactly what I have been looking to implement on my site. Worked like a charm - thanks!
Chris |
yup looks nice ill install in a bit :D
|
Very nice "Snoozy", thnx
|
what should i set the names for the "ogin, pass, and submit fileds to? :confused:
|
They should be username and password.
|
Can't find that in my member.php file
|
This is what you can use for a HTML page, if your not phpized.
Code:
<br> |
-
|
This is exactly what I was looking for! Thanks so much for your efforts! I'll post more feedback when I get it installed and working. Thanks snoozy!
|
Kineda, it does the same for me. Darn it...I want SOME sort of integration with other pages. :(
|
Did anyone get that working?
|
Does it have to be from the same domain as the forum?
|
I cannot get this working. Which is a shame. It keeps saying there is an error on line 134 with my member.php file.
|
Kinedo, Bad Bunny: It does the same thing to me. Do yall know how to fix it?
|
how can i get it work on another server than the vb? .....the cookies donĀ“t work........
|
I got this working fine.
However how can I add some handling so if a user that has already changed his usergroup via this method gets an error template if he click on it again. Currently there is no handling for this so the user gets a blank page. |
Anybody ever get this thing working?
|
I would love it to work plain jane HTML - would this be tough to do?
|
Quote:
.me.com where me.com is your domain. BE SURE TO PUT THE DOT (.) AT THE BEGINNING. You also have to delete your existing vB cookies after doing this. |
didnt wanna work for me so I changed to things..
first in the form I added the following line above the username input: Code:
<input type="hidden" name="action" value="login"> Code:
action="forums/member.php?location=<?=$PHP_SELF ?>?<?=$QUERY_STRING ?>" Now I still got one prob.. when Im logged in it still shows the login form on my none-vb page (duh).. any idea how I can solve that one? |
Quote:
if ( ! $vb_login_cookie_is_set ) { display login form } Just pseudo-code, sorry, I don't have any actual code to do this. This also assumes that your non-vB pages are PHP or some other scripting language where you can chech cookies and do conditional logic. |
I used another way thanks to Mist, including global.php and asking for $bbuserinfo['userid'] :)
thanks for that part though :) |
Does anyone know of a way to get a remote login in vB3 without having to modify any of the vBulletin source code?
Note: I am using global.php to integrate my forum login onto other pages (in case this detail helps.) |
Hey! I couldn't get this to work on my site?
I get an error message. Im using 2.2.8 and nothig happens except when i click the 'Submit Query button' the page remains and i just get taken to http://www.indeathwefall.co.uk/not_l...1=Submit+Query how can i fix this? thanks :) |
To get it working, make sure you add the line:
<input type="hidden" name="action" value="login"> To the form as Sc0rp suggests above. |
When I Try To Use This, It Goes To The Password Recovery Form Help!
|
what the vb3 code?
|
Here is the code I am using in my non-VB3 page that does not require any changes to the VB code:
<form method="post" class="login" action="/forum/login.php" onsubmit="md5hash(vb_login_password,vb_login_md5pa ssword)"> <label>Username:<input type="text" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="1" onfocus="if (this.value == 'User Name') this.value = '';" /></label> <label>Password:<input type="password" name="vb_login_password" size="10" accesskey="p" tabindex="2" /></label> <input type="hidden" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" /> <input type="hidden" name="s" value="" /> <input type="hidden" name="do" value="login" /> <input type="hidden" name="forceredirect" value="1" /> <input type="hidden" name="vb_login_md5password" /> <input type="submit" value="Login" class="submit" /> </form> |
I want to use this on a seprate Website.How?
i have a site say www.vbforumXYZ.conm running vb3. Now have anotherr site www.example.com (NOT running vb3 but can access vb3 database on dirst site) I want to users be able to login on second website. Any Luck? |
This hack is for vB2, and it will not work on vB3.
What you are trying to do will be very difficult since you can not set a cookie for another domain. |
All times are GMT. The time now is 04:47 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|