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 |
#82
|
||||
|
||||
Quote:
From here I would recommend adding back that code one section at a time till we find the bit that breaks it. As for the Avatars, are your avatars stored in the database or in the filesystem? There is a problem if they are stored in the filesystem. |
#83
|
|||
|
|||
This may sound petty: but any way to get the form's code to validate? I'm not a javascript guy so I don't know all the tricks to get the code to validate.
|
#84
|
|||
|
|||
I use this script on an secound server. It works very find.
But I have one Problem. The Script opens this connection to the firs (forum) server.It opens many many from this connection. But it dount close it. Code:
| 13745 | web1 | MySecoundServer.com:53717 | usr_web1_2 | Query | 43 | Writing to net | SELECT * FROM datastore WHERE title IN ('','options','bitfields','attachmentcache','forumcache | | 27382 | web1 | localhost | usr_web1_2 | Query | 34 | Locked | SELECT * FROM datastore WHERE title IN ('','options','bitfields') | Any ideas ? GreeTz Snatch |
#85
|
|||
|
|||
See Post Below
|
#86
|
|||
|
|||
Is there anyway for this hack to work where the forums on a different physical server, though they are a subdomain of the other site in question.
For example: mysite.com on server IP 192.168.0.100 forums.mysite.com on server IP 192.168.0.101 Possible? |
#87
|
|||
|
|||
See Post Below
|
#88
|
|||
|
|||
see post below
|
#89
|
||||
|
||||
Quite possibly.
Subdomains are a knowen problem. One thing I would suggest is to clear your cookies (tools -> Internet Options -> Delete cookies) then force a page refresh (CTRL + F5) and see if that helps. |
#90
|
||||
|
||||
|
#91
|
|||
|
|||
Hi Bill,
I have been literally working on this for 5 hours. I moved the forum from the subdomain of forums.supermandatabase.com to supermandatabase.com/forums to run this script. I am running vb 3.6.4. After no success of getting the Welcome 'user' to work once logged in I created a test.php with no other code bu the code supplied in the zip file. Here is what I have: Code:
<?php $curdir = getcwd (); chdir('/home/superman/public_html/forums/'); require_once('/home/superman/public_html/forums/global.php'); chdir ($curdir); ?> <?php require_once('login_inc.php'); ?> <?php if ($vbulletin->userinfo['usergroupid'] == '6' ) { echo "This is only visible to people in usergroup 6";} ?> So I go to supermandatabase.com/forums/test.php and I login. It takes me to the vBulletin login and process me and redirects me back to test.php and I see Welcome Superman! and "This is only visible to people in usergroup 6" But when I click log out, it takes me to vBulletin and says cookies cleared, but when I go back to test.php I see the Welcome Superman I can't logoff via the test.php SOLVED!!! In EXPLORER: Exact opposite happens. I go to test.php, enter information, and I am processed and redirected back expect I don't see Welcome Superman! I see the login information without the "This is only visible to people in usergroup 6" being echoed. I am also getting a warning message that says "Problems with this web page might prevent it from being displayed properly. Line : 9 Char: 1 Error: Expected '(' Code: 0 I have no clue what to do. The cookies are set to "/" and not '/forums/" Any suggestions or anyone else had this issue? Thanks in advance for the help. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|