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 |
#192
|
|||
|
|||
I'm having some trouble, and it's probably due to my lack of knowledge...
Could you please provide instructions on how to use iframes to include this on non-PHP pages? My front end content engine is shtml based. |
#193
|
||||
|
||||
Quote:
|
#194
|
||||
|
||||
Quote:
|
#195
|
|||
|
|||
*edit* Thanks for the GREAT mod Bill! but Ive suddenly got a problem. One of my workstations (WinXPpro, all windows updates, IE6 etc) is not being redirected back to the custom .php page I made. It's just going straight to the index.php for the forums. Although one of my other workstations (same specs) is being redirected. I cleared cookies etc but it's still not working. Ive made no major changes. Without me posting a bunch of my code here - any thoughts? Im certain my paths are correct etc because this was working before and still works on my other PC...
Thanks in advance! |
#196
|
|||
|
|||
Well I managed to fix this. on about line 154 there was this:
echo"<br />... Which I changed to take out the /: echo"</br>... Would this have helped? |
#197
|
|||
|
|||
Well that seemes to work once - now I am not redirecting anymore. This is so frustrating...
*edit* I have determined that my problem is this: I can log into my custom page (home.php) 1 time and get redirected back to that page after logging in. Subsequent logins (after clearing cookies etc) take me directly to the forums index.php page. I have no idea whats wrong. I made a new profile on my PC and logged into it so it was a fresh user. I then logged into my home.php which includes the basic require_once info etc and got redirected back to that page - the avatar displaying correctly etc. I logged out and cleared cookies and immediately logged back in and instead of being redirected I get the forum index.php page... I have done all of the troubleshooting recommended by Bill and I KNOW my paths are correct. I just realized also that I was having the double // problem which I fixed in the login_inc.php. Ive also tried verifying there was no spyware on my PC (AdAware), no windows firewall turned on (WinXPpro), doing Windows Updates, I even tried Firefox (didnt work either), my VB cookie path has always been / and not /forums/ etc... Im lost as to what to try next... |
#198
|
|||
|
|||
Quote:
|
#199
|
||||
|
||||
Quote:
I havent had time yet to look at how vB handles secondary groups. Its on the todo list, but no ETA as yet. |
#200
|
|||
|
|||
can you fix this code.. on my regular pages, i've got a redirect code in the form field that redirects to the usercp during login. i've tried using the same code in the login_inc.php file, but it doesn't seem to work:
<input name="url" type="hidden" value="/usercp.php" /> |
#201
|
||||
|
||||
What error do you get?
What happens if you use the full url instead of just /usercp.php ? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|