Okay, I have worked on it and I guess I am ready to release the first version of the MyBB Integrator class.
The class comes in with a few functionalities (more will be added).
So far the class contains following functionalities:
Further information on how to use the class can be found on http://phpdave.com/MyBBIntegrator including a detailed documentation!
Also, the download link can be found on that site
The class comes in with a few functionalities (more will be added).
So far the class contains following functionalities:
- dbEscape: Escape Values for Database usage
- getForum: Returns forum data of $forum_id
- getLatestActiveThreads: Get latest active threads, where posts have been posted
- getLatestPosts: Get latest posts of one or more forums
- getLatestThreads: Get latest threads of one or more forums
- getPost: Returns post data of $post_id, also parse it instantly
- getPosts:
- getPostsOfThread: Return posts from a specific thread
- getPrivateMessagesOfUser: Get messages of a user in a nicely structured array
- getThread: Returns thread data of $thread_id
- getUser: Returns user data of $user_id
- getWhoIsOnline: Returns list of online users
- incViews: Increase the view count of a thread
- isLoggedIn: Return status if the user is logged in
- isModerator: Return status if the user is a mod
- isSuperAdmin: Returns if user is super admin
- login: Login Procedure with user and password
- logout: Logout Procedure
- markRead: Mark one or more forums read
- parseString: Parses a string with MyBB's parser (MyCodes/BBCodes)
- register: Register a new user to the forum. User Info is taken from an array passed to the function
Further information on how to use the class can be found on http://phpdave.com/MyBBIntegrator including a detailed documentation!
Also, the download link can be found on that site