-
Notifications
You must be signed in to change notification settings - Fork 7.6k
vBuser vBulletin based Auth Library
[b] This package allows for an easy session handler and auth library by piggybacking on vBulletin's user tables. [/b]
Author: ? Co-Author: Pat Andrew ( http://patandrew.com )
[b] [size=3]DISCLAIMER:[/size]
I am not the original author of this Auth library. I found this library on the CodeIgniter forums some time ago and have retained and modified the source.
If you are the original Author and would like to take credit, please contact Pat Andrew.
[/b]
----------------------------------------------------------------------[/b]
[size=4]Step 1.[/size] Upload the vBuser files to their respective folders from application/
[size=4]Step 2.[/size] Add the following to the config file: hooks.php
/**
* vBuser Auth Check
*
* this hook calls load_vBUser after the controller constructor
* so every user has a session.
*
*/
$hook['post_controller_constructor'] = array(
'class' => '',
'function' => 'load_vBUser',
'filename' => 'vBUser.php',
'filepath' => 'hooks'
);
[size=4]Step 3.[/size] Modify config/vbuser.php and add your Forum URL, and default avatar path. Also modify any other features you need.
[size=4]Step 4.[/size] Implement in your CI powered pages and Enjoy!
Set up a form as seen in example/views/login.php that points to your processing controller/function. I have created a simple processing controller called example/controllers/process.php for login and logout procedures. You may use them or edit them as you wish.
User data will be stored in an array $this->vbuser->info;
You can get a user's avatar url with:
$this->vbuser->getAvatar($this->vbuser->info['userid']);
[size=3]Download this package![/size]