Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[RELEASE v2] Homepage Login on non-vB page Details »»
[RELEASE v2] Homepage Login on non-vB page
Mod Version: 1.00, by RobAC (Contributor) RobAC is offline
Developer Last Online: Apr 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: Rating: (0 vote - 0 average) Installs: 15
Released: 24 Jul 2001 Last Update: Never Downloads: 6
Not Supported  

Ok....this is my first hack. It's small and should be very straight forward.

The source of this hack is a thread that started in the main Code Hacks forum by a user looking for a hack that would allow their members to log in from the main home page of their site. Once logged in, it would display a Welcome message when the logged in member returned to the home page.

The original source was provided by Demolition, but members were having problems with getting the hack to run.

Warning/Disclaimer: I am not a well seasoned PHP programmer. I get by as best I can, but usually learn from example and tinkering. I have changed the PHP coding around slightly, and added much more HTML in order to format the input fields etc. This hack was tested using Internet Explorer 5.5 and Netscat 4.7. I have verified that it works in both OS's several times. I am also running the latest version of PHP on my server, so I'm not sure how to help those of you that are running PHP3, but I'll do the best I can. I won't make any promises though. I plan on continuing to work on this as well as add a few more features to it as time permits.

Download the attached file and edit it using a text editor of your choice. Add the pathway to your forums directory where noted. Save the file as a PHP file to your main forums directory. If your site's home page is an HTML document you will have to call the PHP file using a server side include. If you're not sure how to do this, you should search the forums here as this topic has already been covered several times.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
[Release] Avatar on Homepage. Brad vBulletin 2.x Template Modifications 9 01 Apr 2004 01:12
[RELEASE-addon] Homepage Login on Non-VB Page -- Addon badmeetsevil- vBulletin 2.x Full Releases 24 28 Jun 2003 18:45
[Release] Avatar Link to homepage Faction vBulletin 2.x Template Modifications 7 02 Nov 2002 13:47

  #16  
Old 24 Jul 2001, 18:49
Ruth Ruth is offline
 
Join Date: Oct 2001
smachol, is there a way by putting the script in the same path as global.php and just call it by one line like this code

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

maybe something like require or include ("path-to/forums/login.php");
in every protected page.

i'm not experienced in this.

thanks
Reply With Quote
  #17  
Old 24 Jul 2001, 19:04
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Ruth,

I'm just beginning to learn PHP myself. All I know is that the code I posted above works on my site when global.php and the script using it ('last.php') are in the same directory. I haven't yet tested any other variations.
__________________
Steve Machol, vBulletin Moderator

Please do not email or PM me for vBulletin support. I will try to answer all questions on the vB Forums. Thank you for respecting this request!
Reply With Quote
  #18  
Old 25 Jul 2001, 02:50
BradC
Guest
 
How about putting in there the direct link to the global.php


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

foldername being whatever folder(s) lead to your vb folder..

then you can put the script anywhere.


update:

I use this for mine... my vb folder is "main" and I have an "about" folder in the same root as the main folder and I use this in all my pages to get the global.php


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #19  
Old 26 Jul 2001, 02:20
mferrell
Guest
 
Anyone know how I can solve this error message when I require the global.php file on a non-vb page?

Warning: Failed opening './admin/config.php3' for inclusion (include_path='') in ./bulletinboard/global.php3 on line 66


Thanks.
Reply With Quote
  #20  
Old 26 Jul 2001, 02:31
Ruth Ruth is offline
 
Join Date: Oct 2001
BradC thanks i'll try that...


Warning: Failed opening './admin/config.php3' for inclusion (include_path='') in ./bulletinboard/global.php3 on line 66
mferrell, make a duplicate file of global.php, change the path of config.php to the full path...and refer in your script to the duplicated global.php..and try...not sure if it works though.
Reply With Quote
  #21  
Old 26 Jul 2001, 14:25
mferrell
Guest
 
Thanks ... I'll give that a shot!
Reply With Quote
  #22  
Old 28 Jul 2001, 21:55
badmeetsevil-'s Avatar
badmeetsevil- badmeetsevil- is offline
 
Join Date: Oct 2001
Works fine for me, is there anyway for the login to bring you back to the page you used to login, or go to a specific page rather than the Forums? What I'm planning on doing, is having this in a pop-up, so you can sign in through the pop-up, and all it says after you sign in is something like, "Thanks for signing in, user." Is that possible, or will it always have to go to the BBS?
Reply With Quote
  #23  
Old 29 Jul 2001, 00:01
mferrell
Guest
 
I too have the login working fine on non-vb pages, but it takes you to the forum homepage. Does anyone know if it's possible to control what page gets loaded after login?
Reply With Quote
  #24  
Old 29 Jul 2001, 00:33
RobAC RobAC is offline
 
Join Date: Oct 2001
I'll see what I can do about being able to specify a different page to go to after logging in.
Reply With Quote
  #25  
Old 29 Jul 2001, 17:08
badmeetsevil-'s Avatar
badmeetsevil- badmeetsevil- is offline
 
Join Date: Oct 2001
Thanks, that'd rule.
Reply With Quote
  #26  
Old 02 Aug 2001, 18:47
Nicholas Brown's Avatar
Nicholas Brown Nicholas Brown is offline
 
Join Date: Oct 2001
how about


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

?
Reply With Quote
  #27  
Old 02 Aug 2001, 20:15
mferrell
Guest
 
huh?
Reply With Quote
  #28  
Old 04 Aug 2001, 06:20
\/ash
Guest
 
ok could sumone post a WORKING script! All complete with deatiled instructions... Thank you!
Reply With Quote
  #29  
Old 16 Aug 2001, 07:38
certify's Avatar
certify certify is offline
 
Join Date: Nov 2001
Will this work on .SHTML page?

it would be nice if I can directly call it via SSI e.g

<!-- include virtual="/something/something.php -->

Just like my site http://www.certifyexpress.com which it currently using UBB but I've just purchase VB license and will migrate to VB once I got the core hack on VB.
Reply With Quote
  #30  
Old 16 Aug 2001, 11:21
RobAC RobAC is offline
 
Join Date: Oct 2001
certify,

yes it should.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 15:38.

Layout Options | Width: Wide Color: