[PHP] Adding a forum into my CMS system

Junior Spellweaver
Joined
Feb 23, 2008
Messages
131
Reaction score
1
Hey i been searching the web but i cant seem to find noting is there a way i can put forums into a CMS like so it shares the same Mysql and stuff like that please let me know thanks
 
It's really not that easy unless the CMS tool your using is specifically built around the forum you want to add. If you're making the CMS, you should start with installing the forum and build your CMS around it IMO. AS IN, use the phpBB database to hold your site's user table containing PMs, post count, user, pass, email etc etc...

You probably have to brush up majorly on PHP and MySQL to accomplish this. You also have to take a month or two out of your life to learn phpBB, vBulletin, or whatever forum you wish to use and master.

If you truly dedicate yourself, maybe you'll create a tool that hasn't been perfected just yet ;)


If you just want to have two sepperate databases (the forum and your site) with matching user lists, you can edit the forum's login script and make it register ppl to both databases, then do the same to your login scripts. You can, from here, either rely solely on the forum's register page to get your users, or make your own register page and disable the forum's. Or keep both.

Either way, the login+register pages+session variables all need to match up from forum->your site and back. You don't want people to have to login twice, and you most certainly don't want them to have to register twice. I've seen sites (and in my early days made some) that require 3-4 accounts, held sessions to some logins, not others, and even encourage using different information for different logins. You don't want any of that bullshit. ;)
 
Another suggestion would be to use a dynamic set of elements for your sql and display functions.
That way you can use the styles of your forum and the database.
I see it better to code the forum and the cms. Your toughest problem is bbcode, but php has a set of handlers for it so np =)
 
Which CMS are you using dude? Are you using Joomla? If yes.. then you can use the Jfusion component for that.

And iframe is not a good solution. If you use iframe.. it will have separate logins for both forum and the website.
 
I had done this for vbulletin forums before, I Just don't know where I put it, probably on my hard drive somewhere, I had made a whole class to make life easier. but yeah, If you want to integrate a specfic type of forum system such as phpbb, vBulletin, or some other solution, a good thing to do would be to look in the includes\functions_$function.php. for example vBulletin has a function called verify_authentication. That would be useful so you would know how to link the database somewhat.then for the users you would just look for the following in register.php[for vbulletin]
PHP:
if ($_POST['do'] == 'addmember')
 
man joomla is weak! old way is cool :)

joomla no brainer if your a coder :)
CI framework for rush coder :)
and lastly nativeway for custimization
 
Back