![]() |
|
|
Mod Options |
[RELEASE v2] Homepage Login on non-vB page Details »»
|
|||||||||||
|
[RELEASE v2] Homepage Login on non-vB page
Developer Last Online: Apr 2013
This modification is in the archives.
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
No members have liked this post.
|
|||||||||||
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
|
||||
|
||||
|
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
maybe something like require or include ("path-to/forums/login.php"); in every protected page. i'm not experienced in this. thanks No members have liked this post.
|
||||
|
#17
|
||||
|
||||
|
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! No members have liked this post.
|
|
#18
|
||||||||
|
||||||||
|
How about putting in there the direct link to the global.php
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
No members have liked this post.
|
||||||||
|
#19
|
|||
|
|||
|
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. No members have liked this post.
|
|
#20
|
|||
|
|||
|
BradC thanks i'll try that...
No members have liked this post.
|
|
#21
|
|||
|
|||
|
Thanks ... I'll give that a shot!
No members have liked this post.
|
|
#22
|
||||
|
||||
|
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?
No members have liked this post.
|
|
#23
|
|||
|
|||
|
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?
No members have liked this post.
|
|
#24
|
|||
|
|||
|
I'll see what I can do about being able to specify a different page to go to after logging in.
No members have liked this post.
|
|
#25
|
||||
|
||||
|
Thanks, that'd rule.
No members have liked this post.
|
|
#26
|
||||
|
||||
|
how about
? No members have liked this post.
|
||||
|
#27
|
|||
|
|||
|
huh?
No members have liked this post.
|
|
#28
|
|||
|
|||
|
ok could sumone post a WORKING script! All complete with deatiled instructions... Thank you!
No members have liked this post.
|
|
#29
|
||||
|
||||
|
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. No members have liked this post.
|
|
#30
|
|||
|
|||
|
certify,
yes it should. No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Mod Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 15:38.




