MyBB Community Forums

Full Version: Question on Plugins that add database fields to mybb tables
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I wanted to try my hand at a user notes plugin. The plugin would need to add a field for each user where the notes could be stored. My question is this.

Would it be better to add a notes field to the users table already existent in mybb OR would it be better to create a whole new table?

I'm pretty sure it would be better and more efficient to just add the field to the user table but maybe there is some rule against modifying the core mybb tables??

Thanks for any input and advice from from experienced modders and mybb devs Smile
There already is a Personal Notepad:
http://community.mybboard.net/usercp.php?action=notepad

Is that what you are trying to create?
nope ... I want to create user notes that are accessible only by admins and mods. Just like vB and the other big forums have. It lets your mods leave notes on users to each other (normal users can't see them). For instance, if you have a trouble maker that always spams you can leave a note in his user notes that he is a known spammer. Then when you're trying to decide whether to ban someone or not you can check the user notes to see how many past abuses that person has committed. Does that make sense?

Ahh yes, MusicalMidget made something like that for RC4 a while back:
http://mods.mybboard.com/view.php?did=3

Maybe you could convert it for PR2?
that was the plan except I wanted to make it a plugin and not a mod (although some small code modifications might be required).
There's no 'rule' against modifying the MyBB core tables.

Personally I would integrate it with a custom profile field (it can already be hidden on profile, non-editable by user).
DennisTT Wrote:There's no 'rule' against modifying the MyBB core tables.

Personally I would integrate it with a custom profile field (it can already be hidden on profile, non-editable by user).

Thanks for the advice Dennis. I'll take a look at that.
heh ... while investigating the custom hidden profile fields that aren't editable to normal users I came across a bug which I posted below

http://community.mybboard.net/showthread.php?tid=4854


So I guess user notes are on hold till we can figure out a fix to this (or maybe the devs are kind enough to give me the fix Wink )
Just add a field to the user table. If you want to have a log of user notes (which mod posted a note and when) then you'll need a seperate table.
was there ever a solution on this?