The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Simple vB User login and access control on non vB pages Details »» | |||||||||||||||||||||||||||
Simple vB User login and access control on non vB pages
Developer Last Online: Nov 2011
Hack Description
This is a cutdown version of the user authentication and access control system I use on the non vB pages on my website. This uses the vB 3.6 login system to log you in and out. It allows you to move between your forums and other pages on your site while remaining logged in. It allows you to do things such as restrict pages by usergroup, display different content depending on a user being logged in or not. For example, you can have banner Adds displying to non members only, and/or let members access to specific content. Ive cut it down to the bare minimum that it needs to work, no fancy stuff such as avatars, PM's, or even formating. I will try and offer support, but work and family commitments mean I dont have much free time. This code is a mix of my own, and pieces I have used from other hacks that are floating around. This script has been confirmed as working on
Changelog Version 1.10 (24th April 2007)
Version 1.0 (2nd December 2006)
Click on Install If you have this script installed then please click on the install link because;
Donations First of all, to be clear. This script is 100% free. However if you feel an urge to donate I'm not going to say no. Donations can be made at http://www.billspaintball.com/vb3/bd_donate.php Show Your Support
|
Comments |
#172
|
|||
|
|||
Hey,
The script seems to be working just fine, although I am having a problem with it. Apperantly a session string is needed in the URL and if you remove that, you're not logged in anymore. Problem is, whenever someone clicks an internal link on my site, the session string has to go, since the links lead to index.php?example=example and I can't change that into anything else, since my site wouldn't function properly anymore if I did. Is there any solution to this? Thanks. |
#173
|
||||
|
||||
I just finished reading this whole thread but don't see a solution to my problem, so I'll describe it.
I am using this add-on to put a login form on a Wordpress powered page. I can't get it to show properly when a person is logged in, it just shows the form and treats me as if I am still logged out. I made a test page and it works, so it's not a subdomain issue. http://blogfeeds.webtalkforums.com/test.php I've tried placing the following code at the top of wp-blog-header.php but it causes the blog to not work, it simply displays a "not found" error: Code:
$curdir = getcwd (); chdir('/home/myname/public_html'); require_once('/home/myname/public_html/global.php'); chdir ($curdir); Code:
<?php $curdir = getcwd (); chdir('/home/myname/public_html'); require_once('/home/myname/public_html/global.php'); chdir ($curdir); if (! isset($wp_did_header)): if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) { if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false) $path = ''; else $path = 'wp-admin/'; require_once( dirname(__FILE__) . '/wp-includes/classes.php'); require_once( dirname(__FILE__) . '/wp-includes/functions.php'); require_once( dirname(__FILE__) . '/wp-includes/plugin.php'); wp_die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>. You can <a href='{$path}setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.", "WordPress › Error"); } $wp_did_header = true; require_once( dirname(__FILE__) . '/wp-config.php'); wp(); gzip_compression(); require_once(ABSPATH . WPINC . '/template-loader.php'); endif; ?> |
#174
|
|||
|
|||
So does anyone successfully have this running on 3.6.8? Seems like a lot of people are having problems with this.
SVT |
#175
|
||||
|
||||
I would like to use this, but it has a lot of problems.
|
#176
|
|||
|
|||
Quote:
Thanks, Jim |
#177
|
|||
|
|||
Anyone knows if its possible to show a POLL outside the forum using this mod ?
|
#178
|
|||
|
|||
Is it working with vb 3.6.8?
|
#179
|
||||
|
||||
Quote:
It MUST be the first thing on the page. Even a single space will cause this error. See item one in the troubleshooting guide. It did when I tested it on beta 1. There is s dedicated version for 3.7 in the 3.7 mods section. Quote:
Perhaps they user the same variable names or something similar. As I don't use word press I have not been able to check on a cause or solution. It should run on 3.6.8 (it still works with 3.7) but I haven't tested it. |
#180
|
|||
|
|||
Can you also let member who`re logged in, posting on a non vb page?
|
#181
|
|||
|
|||
I had a version of this working succesfully on my site. However, I recently had to move hosting company and now I'm having some problems with this mod. Even when I'm logged in at the forum, the page on my site doesn't recognise that, and treats me as being unregistered/not logged in.
I haven't changed the code in any way so I presume I need to tweak it (the code) or the vbulletin settings to get it to work with whatever settings on this new server (could it be a problem related to the move from PHP4 to PHP5?), but I don't know where to begin! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|