MyBB Community Forums

Full Version: Creating my own NEWTHREAD page... need some quick infos
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys

I'm building a Buy and Sell website off MyBB forum platform and to make this website function the way I like it I'm gona need to do modifications.... I am well versed w/ PHP and "ok" in CSS, but I would like it if ya'll can give quick answers to some questions i have.. I can probably figure this out myself but it sure would save me a lot of time if you guys can point things out.


To keep my forum organized, I need to make sure users follow the format I want them to, specially since I'll be creating my own SEARCH pages that will return filtered results based on things such as the title having the "Buying" or "Selling" word in the title..

So to do this, I wanted to make my own NEW THREAD interface, with additional fields that will look like:
Title (input Box)
Buying/Selling? (check box)
Price of item (input box)
Picture (upload box)
Description (full text box)

These new fields will simply be formatted into the "standard" input expected by the forum software.. where for example:

If Author types " Washing machine, 3 months used" and ticks the check box "Selling" .. the data will be submitted as POST TITLE VARIABLE
"Selling: Washing machine, 3 months used"

I initially planned to modify myBB's "newthread.php" file to check for FORUM ID and IF forum ID is one of the buy and sell forums, modify the look of the NEW THREAD page accordingly.. but I realized that this is more complicated, and it's gona be hell to maintain things when upgrading...(Correct me if im wrong)

So I decided why not MAKE my own simple NEW THREAD page and insert the values via SQL directly..

So.. w/ that said.. I wanted to know:
1) What are the TABLES i need to update when adding threads? by glancing at the tables i'd assume the following:

mybb_threads - the basic thread details
mybb_posts - the actual post data
mybb_threadsubscriptions - for setting subscriptions for the author

what else?
(is there a simple documentation on mybb's table structure?)

2) How do I check validation of logged in user? What session / cookie variables does MyBB use? What are the values in the session do i need to extract and put into the tables?

3) How are the User passwords encrypted in mybb? is it a simple MD5?
still waiting for any help from anyone Sad
it would be interesting for me too Smile
too bad noone seems to bother or know w/c way is which..

in the mean time i've spent my whole day trying to figure out how to tap/modify the mybb codes... im not too familiar w/ the way it works..

frustrating....