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 |
#172
|
||||
|
||||
Any word on if my idea can work? We would love to use this on our site, which we run on a seperate server from the forums. Would love to be able to access usergroup permissions to setup usergroup page content on the site itself, but need to be able to do remote server access.
|
#173
|
||||
|
||||
Quote:
vB has cross site logins off by default as a security measure. Have a look in the troubleshooting section here https://vborg.vbsupport.ru/showpost....49&postcount=2 to see what you can try. |
#174
|
||||
|
||||
Quote:
You error may appear around there, but be caused elsewhere on the page. Quote:
The error on your page is probably stopping it fron doing that. |
#175
|
||||
|
||||
Yea I have the site www.qj.net which we have on a seperate server from the forums, which means the main site and the forums wont BE on the same host and ftp. So meaning, the main site would 1st need to call the data off the SQL tables I assume, then apply it.
I would assume all one needs to use is the command in a php page for. Code:
<?php mysql_connect('sql server', 'user', 'password'); ?> I mean what would you think? Cause its not a matter of cross site on same host, its about crossing onto a different host server with same domain ending. Edit: After more studies.. I wonder if somehow we can replace the local path settings with a remote SQL calling. (Which I know sadly requires a IP for the sql server which I dont know if thats really easy to setup with most hosts) Code:
// connect $cs = mssql_connect ( 'server_name:port', 'username', 'password' ) or die ( 'Can not connect to server' ); // select mssql_select_db ( '[database_name]', $cs ) or die ( 'Can not select database' ); //query $sql = "SELECT * FROM [TABLENAME]"; $r = mssql_query ( $sql, $cs ) or die ( 'Query Error' ); // loop the result while ( $row = mssql_fetch_array ( $r ) ) { /* do stuff */ } |
#176
|
|||
|
|||
PHP Code:
|
#177
|
|||
|
|||
Thanks Bill - this is a great mod. Worked perfect
It would be great it it would also grab the total member count, and users online (members and guests). That would be even more perfect |
#178
|
|||
|
|||
Would love to see a screen shot of it in action
|
#179
|
|||
|
|||
Quote:
|
#180
|
|||
|
|||
Quick question -
I'm using PHP Code:
|
#181
|
||||
|
||||
Quote:
The user passwords for vB are encrypted when they are stored in the database so you cant authenticate just like that. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|