Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Details »»

Version: , by Snoozy Snoozy is offline
Developer Last Online: Feb 2014 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 10-29-2001 Last Update: Never Installs: 77
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 05-15-2003, 09:45 PM
VICOS VICOS is offline
 
Join Date: Mar 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
08-09-02 at 04:06 AM dwh said this in Post #16
Does it have to be from the same domain as the forum?
If you want cookies to work across subdomains, i.e. www.me.com and forums.me.com, go to the vB control panel main settings. Set the cookie domain to:

.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.
Reply With Quote
  #23  
Old 06-06-2003, 06:53 AM
Sc0rp Sc0rp is offline
 
Join Date: Jul 2002
Location: Netherlands
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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">
then I removed the first '/' from the forum action as it redirected me to the wrong page, like this:

Code:
action="forums/member.php?location=<?=$PHP_SELF ?>?<?=$QUERY_STRING ?>"
and then it worked fine for me..

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?
Reply With Quote
  #24  
Old 06-06-2003, 12:59 PM
VICOS VICOS is offline
 
Join Date: Mar 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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?
You'll have to write a conditional statement to check if the vB login cookie is set, i.e.:

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.
Reply With Quote
  #25  
Old 06-06-2003, 02:21 PM
Sc0rp Sc0rp is offline
 
Join Date: Jul 2002
Location: Netherlands
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I used another way thanks to Mist, including global.php and asking for $bbuserinfo['userid']

thanks for that part though
Reply With Quote
  #26  
Old 06-19-2003, 03:14 AM
inthezone inthezone is offline
 
Join Date: Feb 2003
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.)
Reply With Quote
  #27  
Old 06-28-2003, 09:37 PM
M4g!k M4g!k is offline
 
Join Date: Jun 2003
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #28  
Old 09-17-2003, 12:50 PM
discussfitness discussfitness is offline
 
Join Date: Jan 2002
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To get it working, make sure you add the line:
<input type="hidden" name="action" value="login">

To the form as Sc0rp suggests above.
Reply With Quote
  #29  
Old 09-30-2003, 04:42 PM
Spyke1 Spyke1 is offline
 
Join Date: Aug 2003
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I Try To Use This, It Goes To The Password Recovery Form Help!
Reply With Quote
  #30  
Old 06-13-2004, 09:22 PM
defy're defy're is offline
 
Join Date: Jun 2004
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what the vb3 code?
Reply With Quote
  #31  
Old 07-08-2004, 01:22 AM
CNibbana CNibbana is offline
 
Join Date: Apr 2003
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:27 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04374 seconds
  • Memory Usage 2,295KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete