Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Simple login page/box/code for external pages Details »»
Simple login page/box/code for external pages
Version: 1.00, by gusfune gusfune is offline
Developer Last Online: Mar 2012 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.7.x Rating:
Released: 03-24-2008 Last Update: Never Installs: 106
Re-useable Code Translations  
No support by the author.

Ever wondered how you could add your own login box or fully customized login page outside your VB forums?
Ever had problems with other solutions that require a lot of files, PHP coding that in the end need a lot of tweaks or can give you a big headache?

Well, the problem is now solved.
100% Reliable
100% Bug Free*
No Uneeded codes running

No PHP knowledge required



*if you use the code properly

By just using the same piece of code used in every Vbulletin pages I've managed to create login pages, boxes in any page I wanted outside my forums. Works 100% and by just following the instructions (2 simple steps) you'll be able to add and customize your login page wherever you want.

There is a screenshot of an example page built with this code that it's fully customized and logins to the forums on another domain. Just an example of what you can do.

The ZIP file contain the code instructions and 2 HTML pages with the code inside.
There are two versions of the code: With or Without "Remember me?" checkbox.

Hope it helps.
If you've found this useful, had problems with other methods of external login, etc, consider donating a small amount, I'd appreciate

Show Your Support

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

Comments
  #22  
Old 09-14-2008, 07:29 AM
Darked_Hax Darked_Hax is offline
 
Join Date: Feb 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

syntax error...

:S
Reply With Quote
  #23  
Old 09-21-2008, 12:08 PM
Gursimran Gursimran is offline
 
Join Date: Jun 2008
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What do you think about adding a feature in which logged in user see Welcome $username in the place of the form again?
Reply With Quote
  #24  
Old 09-21-2008, 01:16 PM
tunistunis tunistunis is offline
 
Join Date: Jun 2007
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<form action="path-to-your-forum/forums/login.php?do=login" method="post">
<input type="hidden" name="do" value="login" />
<input type="hidden" name="url" value="path-back-to-your-original-page" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
<input type="hidden" name="s" value="" />
<input type="hidden" name="cookieuser" value="1" id="cb_cookieuser" tabindex="1" />
<label>Username:<input name="vb_login_username" type="text" id="login" tabindex="1" class="bginput" accesskey="u"/></label>
<label>Password<input name="vb_login_password" type="password" id="password" tabindex="1" class="bginput" /></label>
<input name="submit" type="submit" id="submit" tabindex="1" value="Login" accesskey="s" class="button" />
</form>
Reply With Quote
  #25  
Old 02-05-2009, 07:15 AM
hydn hydn is offline
 
Join Date: Oct 2005
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In IE 6 and 7 (70% of traffic) we get a pager error after clicking to login.

Users are logged in correctly and there are no issues as far as "function" however there is a page error on Internet Explorer browsers:

Code:
ROW: 274
LINE: 2
Error: 'Null' is null or not an object
Code: 0
Page: login.php?do=login
Here is the code used:
Code:
<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
  	  <input type="hidden" name="do" value="login" />
  	  <input type="hidden" name="url" value="/index.php" />
  	  <input type="hidden" name="vb_login_md5password" />
  	  <input type="hidden" name="vb_login_md5password_utf" />
  	  <input type="hidden" name="s" value="$session[sessionhash]" />
  	  <label>Username:<input name="vb_login_username" type="text" id="login" tabindex="1" class="bginput" accesskey="u"/></label>
  <label>Password:<input name="vb_login_password" type="password" id="password" tabindex="1" class="bginput" /></label>
<label>Remember me?<input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser" tabindex="1" /></label>
  	  <input name="submit" type="submit" id="submit" tabindex="1" value="Login" accesskey="s" class="button" />
</form>
I'm on vb 3.7.4. How can this be fixed?

Thanks
Reply With Quote
  #26  
Old 02-15-2009, 05:46 AM
metalguy639 metalguy639 is offline
 
Join Date: Dec 2008
Posts: 501
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to limit the size of the login boxes? I need them smaller? Thanks.
Reply With Quote
  #27  
Old 03-19-2009, 07:46 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent Job, Works fine for me

See my Demo:http://www.ukbusinesslive.co.uk/

to the right half way down, I added a picture and enclosed it withing a frame, looks well smart.



Thanks for this

Reply With Quote
  #28  
Old 04-29-2009, 08:57 AM
Shaven_LTS Shaven_LTS is offline
 
Join Date: Jun 2008
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there anyway you can set it up so that when I go to the page i want my members to go to it will ask me to login and Ill have to... what i am getting at is once the login script sends them off to the page i want them to see I dont want them to be able to just copy the address in the address bar and pass it own to buddies and them not have to login... since the page i am directing them to is a paid member only page.

email me shvnem@yahoo.com if anyone has any idea on how to help me
Reply With Quote
  #29  
Old 05-29-2009, 09:37 AM
yaworski yaworski is offline
 
Join Date: Feb 2006
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add this before or inside the <form> tag or in the <head> tag
Code:
<script type="text/javascript" src="vbpath/clientscript/vbulletin_md5.js?v=373"></script>
to load md5hash javascript function referenced by onsubmit attribute. With this passwords are sent in the form of md5 hash like in built-in login form.

You also need to set proper vb version in the url (v=373 is for vb 3.7.3).
Reply With Quote
  #30  
Old 06-14-2009, 01:58 AM
profanitytalker profanitytalker is offline
 
Join Date: Nov 2006
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

reserved
Reply With Quote
  #31  
Old 07-10-2009, 02:03 AM
ahmer ahmer is offline
 
Join Date: Jan 2008
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is gr8 thanks
Reply With Quote
Reply


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 02:35 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.12269 seconds
  • Memory Usage 2,306KB
  • 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
  • (3)bbcode_code
  • (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
  • (4)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