Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter SMF 1.1.x Integration v0.1
#9

[eluser]Maglok[/eluser]
Well I have it working pretty much, but I didnt write a library.

It's pretty easy, put this in a header or config or whatever:

Code:
require_once('forum/SSI.php');

You can now call still like 'ssi_login()'

If you want to detect if someone is logged in you define:

Code:
global $context

Then $context['user']['id'] = user_id

There is also all kinds of stuff like 'is_admin' etc. I have chosen to only use the login/account stuff. I then have a table of my own with personal settings of which the ID matches the ID of the forum accounts. Works perfectly fine for me.


Messages In This Thread
CodeIgniter SMF 1.1.x Integration v0.1 - by El Forum - 06-22-2009, 11:22 PM
CodeIgniter SMF 1.1.x Integration v0.1 - by El Forum - 06-23-2009, 08:53 AM
CodeIgniter SMF 1.1.x Integration v0.1 - by El Forum - 06-24-2009, 06:57 AM
CodeIgniter SMF 1.1.x Integration v0.1 - by El Forum - 06-24-2009, 10:06 AM
CodeIgniter SMF 1.1.x Integration v0.1 - by El Forum - 06-24-2009, 01:31 PM
CodeIgniter SMF 1.1.x Integration v0.1 - by El Forum - 06-25-2009, 01:05 AM
CodeIgniter SMF 1.1.x Integration v0.1 - by El Forum - 06-25-2009, 09:31 AM
CodeIgniter SMF 1.1.x Integration v0.1 - by El Forum - 06-26-2009, 02:14 AM
CodeIgniter SMF 1.1.x Integration v0.1 - by El Forum - 07-22-2009, 01:22 AM
CodeIgniter SMF 1.1.x Integration v0.1 - by El Forum - 07-22-2009, 01:56 AM
CodeIgniter SMF 1.1.x Integration v0.1 - by El Forum - 07-22-2009, 02:20 PM
CodeIgniter SMF 1.1.x Integration v0.1 - by El Forum - 02-04-2011, 07:18 PM
CodeIgniter SMF 1.1.x Integration v0.1 - by El Forum - 07-17-2011, 03:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB