MyBB Community Forums

Full Version: How to edit new added fields in the forum table?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi!

How can I add new fields to be edited in the forum management?

I want to do the following thing: I need a field "newsgroup" that has to be added to the forums table. I will add the field in the "install" function of my plugin. After this the field has to be made visible for editing in the management section (Admin CP) where I can add and change forum settings.

How can I do this?

Thanks!

Michael
$db->query(ALTER TABLE mybb_forums ADD newsgroup VARCHAR(60) AFTER status;

run that in your installation Smile

Then uninstall:
$db->query(ALTER TABLE mybb_forums DROP newsgroup;

That adds the column Smile setting it in forum management i dunno Sad