The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Deluxe vB User login and access control on non vB pages Details »» | |||||||||||||||||||||||||||
Deluxe vB User login and access control on non vB pages
Developer Last Online: Nov 2011
Hack Description
This is the deluxe version of the user authentication and access control system I use on the non vB pages on my website. For the simple no frills version look here. This uses the vB 3.5 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. It also displays the logged in users Avatar, number of unread PM's, New posts since last visit, total posts and total threads. It also allows you to specify a maximum Avatar size, and resize any avatars larger than that, while keeping their height/width ratios in proportion! Its very handy if you allow large avatars, but want a small format display on your non forum pages. If the user is not logged in, a login box is displayed, along with total posts and total threads in the forums. 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 is a work in progress and currently a beta version. It was a little rushed as a few people were pushing for it Its missing a couple of planned things like newest member etc, but they will be added in a later version. This script has been confirmed as working on
Known Bugs Will not display Avatars correctly if they are kept in the file system (database avatars are fine) Changelog Version 2.20 (24th April 2007)
Version 2.10 (4th June 2006)
Version 2.00 (16th April 2006)
You will need to re-edit the path on line 3 and also redo any formatting changes you may have done for the last version. Version 1.0 (15th Feb 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 |
#302
|
|||
|
|||
hey
i get this error =================================== Warning: main(): open_basedir restriction in effect. File(/var/www/virtual/devilsmania.com/www/forum/global.php) is not within the allowed path(s): (/var/www/virtual/devilsmania.com/www/www/:/var/www/virtual/devilsmania.com/_data/:/var/www/virtual/devilsmania.com/errors/:/usr/share/php/:/tmp/) in /var/www/virtual/devilsmania.com/www/www/index.php on line 3 Warning: main(/var/www/virtual/devilsmania.com/www/forum/global.php): failed to open stream: Operation not permitted in /var/www/virtual/devilsmania.com/www/www/index.php on line 3 Fatal error: main(): Failed opening required '/var/www/virtual/devilsmania.com/www/forum/global.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/virtual/devilsmania.com/www/www/index.php on line 3 =================================== i have vb 3.6.5 forums : forum.devilsmania.com login for non VB page : www.devilsmania.com what to do ? sorry/thanks... |
#303
|
||||
|
||||
Do step two of the troubleshooting guide to ensure that your using the correct paths.
https://vborg.vbsupport.ru/showpost....49&postcount=2 If the path is fine then try the sample login in step five to rule out anything on your page causing a conflict. |
#304
|
||||
|
||||
Quote:
I have finally had enougth time to play around with this and find the cause and solution. Cause - When redirected for expired password you are redirected to the directory that your login script is located in, not your forums root. Fix - Edit phrase called Code:
passwordexpired Code:
Your password is {1} days old, and has therefore expired.<br /> <br /> Please change your password using <a href="profile.php?{2}do=editpassword">this page</a>. Code:
Your password is {1} days old, and has therefore expired.<br /> <br /> Please change your password using <a href="../forums/profile.php?{2}do=editpassword">this page</a>. Ive only tested this for expired passwords, not for expired vbplaza, but I would think you would have to edit the expiring vbplaza phrases in the same manner. |
#305
|
|||
|
|||
ok fixed thanks
|
#306
|
||||
|
||||
Updated
Download the update from the first post, and see the 2nd post for additional workarounds for the 404 on Expired passwords and cross domain login issues. |
#307
|
|||
|
|||
I'm kinda lost(which isnt hard hehe) I'm trying to make it so when loged out menu a appears but when loged in menu b appears...
I have used the conditionals in the web page its self is that right? if so I take it you can insert code/image/links etc? Please could someone clear things up abit here/help me out abit Carl |
#308
|
||||
|
||||
Quote:
Quote:
The 2nd post in this thread shows various usage examples on how to do this. See https://vborg.vbsupport.ru/showpost....49&postcount=2 A brief example that shows one lot of text if your logged in and different text if your not is PHP Code:
Hope this helps. |
#309
|
|||
|
|||
Thanks for clearing that up, I must be doing somthing wrong(probably somthing stupid) as I keep getting errors.
Thanks again, Carl |
#310
|
|||
|
|||
Ok I get this error 'Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/*****/public_html/homepage.php on line 928'
Code:
This is the code I put in the website: If ($vbulletin->userinfo['userid']!=0) { echo "<img src="http://www.mysite.com/images/bse_top.png" width="248" height="32">"; } else { echo "Your not logged in so we display this"; } ?> |
#311
|
||||
|
||||
Quote:
Just put \ in front of the " that are part of the HTML and not your PHP. Like this PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|