The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Yet Another vB Login on non-vB Page Details »» | |||||||||||||||||||||||||
This is not a plugin, nor is it a code modification. It is a separate script, so just configure the attached script, FTP it to wherever, and then call it from your browser. Once you test it out, you can edit the script to show whatever content you desire. Look at the code to see where to set your content. If you don't like this script, try mcahill's vB login on a non-vB page here.
If you use this script, click the install button. This allows you to receive update notices, should any be sent. It is also a nice way to say thanks! Fine Print: Obviously, use at your own risk. Support is not guaranteed. This script may not be redistributed! 25 Jul 2005: added $session to make_page_content global list Show Your Support
|
Comments |
#32
|
|||
|
|||
@Disi: Does this happen when you upload example.php and try to login?
|
#33
|
|||
|
|||
Quote:
|
#34
|
|||
|
|||
@Disi: Okay, as example.php works, it seems that whatever edits you made to the file are causing the issue, but without knowing the edits, I cannot say why you have an issue, so just recheck your edits.
|
#35
|
||||
|
||||
Quote:
|
#36
|
|||
|
|||
This is great, I'm still kind of new to the whole world of vbulletin and php so I have a question and I'm not sure if it can be done with your script or not.
On my website, i have an members images area that you must login to view the images. I'm also running vbulletin as well. What I'm wondering, is it possible to use this script as a login page to the images area and have it authenticate the users in the vbulletin database? Basically, a user registers for an account on my site, the registration process is actually the vbulletin registration process, so the username/password gets added to the vbulletin database tables, I want to be able to use that login to access either the images gallery or the forum, but there will be a seperate login page for the images and then the standard vbulletin forum login. Thanks |
#37
|
|||
|
|||
@mattfl: It is possible to 'wrap' other PHP scripts in vB authentication, it may or may not take some time and energy, and you might still need to block direct requests to images.
|
#38
|
|||
|
|||
Quote:
|
#39
|
|||
|
|||
Try out the example script, stick it somewhere outside your forum directory, and see if it does like you want, as that is probably the best way for you to evaluate it. If you like it, then you'll need to wrap the PHP gallery files some way like username is wrapped in the example script, assuming you want to protect PHP files outside of your forum directory while having the look of a vB page. If you are just looking to determine whether someone is logged in, nothing fancy, then you can stick the following atop the gallery files, and this will work fine for those users who accept cookies:
Code:
define('FWD','/full/path/to/forum'); // <-- set this !!! define('BWD', (($getcwd = getcwd()) ? $getcwd : '.')); chdir(FWD); require_once('./global.php'); chdir(BWD); if (!$vbulletin->userinfo['userid']) { echo "Not logged in!"; exit(); } |
#40
|
||||
|
||||
This is a fine script, however it doesn't replace replacement-variables. Could this be please included too? It's just that we have a lot replacement-variables in our forum.
|
#41
|
|||
|
|||
I cannot get this working properly on vb3.5
even if I remove header, footer and navbar from the code below - they still show up. I want to create a small login box like the one used in myvbindex to display on a non vb page via an Iframe... any ideas? $src_output = <<<END $stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude <title>$vboptions[bbtitle]</title> </head> <body onload="$onload"> </body> </html> END; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|