MyBB Community Forums

Full Version: MyBB Integrator / MyBB SDK (Version 1.3)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
No, took the comments out for the time being for ease of reading.
Hm, I'll have to look more into it. Can't seem to find what's going wrong.
I shall as well, but thanks its really appreciated.
No problemSmile
I'm trying to re-create the classes which would be present in MyBB in codeigniter with quite a few require_once's, think I'm on to something but I've got this, if you've any idea?

Quote:A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: inc/class_session.php

Line Number: 70

Sticking at it, and got to a similar error to before, all help is appreciated Smile

Quote:A PHP Error was encountered

Severity: Notice

Message: Undefined index: mybbuser

Filename: inc/class_session.php

Line Number: 80
Quite a lot of work to manually run the initialization process of MyBB.
I finished my exams and will have more time to dedicate my time to programming - amongst the MyBB Integrator.
It seems quite difficult to make it work with Codeigniter, just by reading your problems.
You would first have to find out what the actual error is - so what is it really caused by.
Then we might find a solution to it.
My guess is no mybbuser is being passed in to the object, so im missing an initialization step of MyBB, anyway I've gone back to the drawing board and trying a different approach. Ill keep you updated.
pretty poor attempt at the moment, i've looked at the phpbb integration and i'm trying to see if i can take anything from that but doesn't look like it.
Yes, this really does seem like a blueberry I must say.
Best thing would probably be to post on the Codeigniter forum and ask for help
Nice class!

But I have one problem, I can use the functions like login, register, etc.
And also some functions this way:
$mybb->getUser(1);
$mybb->isSuperAdmin(1);

but I can not use some of the functions this way:
$mybb->isLoggedIn();
$mybb->getuser();
$mybb->isSuperAdmin();
$mybb->getuser(0);
$mybb->isSuperAdmin(0);
So they are not working when I don't fill in a UID...
Does anybody know how I can use them, when I don't fill in a UID?
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15