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 |
#32
|
|||
|
|||
I like the user authentication system that PhotoPost and ReviewPost utilize from Techimo.
I don't care about showing avatars and have no desire to do so. I just want the same functionality as PhotoPost has. Does this hack do the same thing? |
#33
|
||||
|
||||
Sorry, Im not familiar whith how they work.
|
#34
|
|||
|
|||
Mine isnt working
Code:
<? $curdir = getcwd (); chdir("htdocs/vb"); require_once("htdocs/vb/global.php"); chdir ($curdir); ?> <html> <head> <title>TRS Compatability Charts</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <p><font size="+2" face="Verdana, Arial, Helvetica, sans-serif">TRS Compatability Chart </font></p> <p><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">This information has been gathered from a number of resources including books, websites, and personal experiences. This in no way can account for the exact creature that you are purchasing and should be used as a reference only. Tidewater Reefers Society, its members, and users are not liable for this information. We try to ensure all the information is accurate and up to date, however, we make no claims that it is 100% correct.</font></p> <? require_once("login_inc.php"); ?> <? If ($vbulletin->userinfo['userid']!=0) { echo "<a href=\"compatabilityResults.php\"><font face=\"Verdana, Arial, Helvetica, sans-serif\">View Compatability Chart</font></a><br>"; } else { echo "<p><font size=\"-1\" face=\"Verdana, Arial, Helvetica, sans-serif\">You are required to be logged on prior to viewing the chart. Please login now using your Forum Username and Password:</font></p>"; } ?> <p><br> <br> <!-- <<MODERATOR/ADMIN ONLY>><br> <a href="compatabilityInput.php">Add a New Creature</a></font></p> <p><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><<MODS/ADMIN and ALL OTHERS>><br> </font> --> <!-- Export Entire Compatability Chart to CSV</font></p> --> </p> <p> </p> </body> </html> |
#35
|
|||
|
|||
OK, even with non-moron-2AM code it still doesnt work:
Code:
<? $curdir = getcwd (); chdir('/htdocs/vb'); require_once('/htdocs/vb/global.php'); chdir ($curdir); ?> <html> <head> <title>TRS Compatability Charts</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <p><font size="+2" face="Verdana, Arial, Helvetica, sans-serif">TRS Compatability Chart </font></p> <p><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">This information has been gathered from a number of resources including books, websites, and personal experiences. This in no way can account for the exact creature that you are purchasing and should be used as a reference only. Tidewater Reefers Society, its members, and users are not liable for this information. We try to ensure all the information is accurate and up to date, however, we make no claims that it is 100% correct.</font></p> <? require_once('login_inc.php'); if($vbulletin->userinfo['userid']!=0) { echo "<a href=\"compatabilityResults.php\"><font face=\"Verdana, Arial, Helvetica, sans-serif\">View Compatability Chart</font></a><br>"; } else { echo "<p><font size=\"-1\" face=\"Verdana, Arial, Helvetica, sans-serif\">You are required to be logged on prior to viewing the chart. Please login now using your Forum Username and Password:</font></p>"; } ?> <p><br> <br> <!-- <<MODERATOR/ADMIN ONLY>><br> <a href="compatabilityInput.php">Add a New Creature</a></font></p> <p><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><<MODS/ADMIN and ALL OTHERS>><br> </font> --> <!-- Export Entire Compatability Chart to CSV</font></p> --> </p> <p> </p> </body> </html> |
#36
|
||||
|
||||
What exactly is it doing or not doing?
Any error messages? A little more info please. Edit: Your path statement up the top is wrong. I suspect that your path statement may not be correct. Do the 2nd step of the troubleshooting guide (post 2) and see what you get. |
#37
|
|||
|
|||
Thanks, looking back i realized that 2AM coding is a bad idea I feel ashamed now.
|
#38
|
||||
|
||||
I've just come back to using my vb and i was wondering if this still works, if not..can someone link me? thanks
|
#39
|
||||
|
||||
Yes, still working with all versions of 3.6.x to date.
|
#40
|
||||
|
||||
Quote:
https://vborg.vbsupport.ru/showpost....&postcount=399 |
#41
|
||||
|
||||
How to get this to work wid vbseo?
Code:
Unable to add cookies, header already sent. File: /home/XXXXX/public_html/index.php Line: 1 Search Engine Optimization by vBSEO 3 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|