MyBB Community Forums

Full Version: How do you make a mod/
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was wondering how you make a mod? I want to make a simple one, i need help on stuff like how do you add something to a certain template, how do you add a field in the Custom Profile Field, see what I mean? Please help! Smile

"name" I know this
"description" I know this
"website" I know this
"author" I know this
"authorsite" I know this
"version" I know this
"guid" What is this?
"compatibility" I know this.

You know what i mean? Any help is appreciated!
Use reverse engineering Toungue

It's how I learned. Look at the code of other plugins and see how they work.
(2011-04-29, 02:47 AM)Darth Stabro Wrote: [ -> ]Use reverse engineering Toungue

It's how I learned. Look at the code of other plugins and see how they work.
Lol EXACTLY what I am doing now, I just dont understand what some of these things mean. I read some tutorials on PHP from w3schools but not very helpful IMO, got any tuts that can help me?

The guid is a unique identifier that will be generated for the plugin when you upload it into the MyBB Mod Database. By including this in your plugin, MyBB users will be able to instantly check for new versions of your plugin from their AdminCP. You will be given a guid to put in your plugin when you add the plugin into the Database. [Source & More Info]
http://mybbhacks.zingaburga.com/showthread.php?tid=74 is a pretty good read on the subject.

You need to know the very basics of PHP first though, and looking at other plugins' code also helps.
(2011-04-29, 07:01 AM)faviouz Wrote: [ -> ]http://mybbhacks.zingaburga.com/showthread.php?tid=74 is a pretty good read on the subject.

You need to know the very basics of PHP first though, and looking at other plugins' code also helps.

I'd certainly advise looking through that post too - it'll at least give you a basic idea of the structure. You may also want to look at the wiki to find out about all the hooks and DB functions available to you. As for PHP tutorials, this is the best one I've ever found: http://www.tizag.com/phpT/
Personally, I find the PHP manual a lot better than any of the tutorials available out there.

http://www.php.net/manual/en/index.php

It might not be the best solution for complete beginners though. The link above explains everything you need to know.
Thanks guys! Just two question, how to I make the plugin add a field in the custom profile field? Also how do I make the plugin take the FID of the new field and add it to a template? And I am assuming the _deactivate() function would be written like the activate one?
Bump.