MyBB Community Forums

Full Version: Need help, first time creating a plugin for mybb
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was wondering how I would add a box like it to users profile page tht canh old info from a plugin.
To do that you'll need to add a hook into 'member_profile_start' and either permanently edit the 'member' template or edit it in the cache to include a custom variable like this {$my_variable}

Then in your plugin you'll need to globalize that variable and save your content to it. You can use eval() to store the info.
How could I make it so people with one access level can see one thing and then with another access level you see something different
When you are eval()ing your custom variable include conditionals to present different 'values' (HTML) to various groups, or you can base it on privilege (regular, mod, admin).