Developer Tips Thread
#2
Don't know if it's for this thread, as it's mainly design, but it's connected to MyBB plugin creation and is a bit annoying.

3. Use MyBB default classes/design/behaviour as much as possible. For example many plugin authors ignore the $theme['imgdir'] variable, so if they add image and someone has multiple themes and wants to make the image different in each to match the colors, they would need to edit plugin source first. Other people ignore cellspacing/cellpadding variables, don't add class="button" or class="textbox" to inputs, add jQuery scripts without noConflict, use another class for .thead etc.

4. Use the MyBB template system instead of adding HTML to .php as much as possible. I like the Plugin Library solution - adding it to each theme's templates, which is used rarely, but adding it to Global Templates is sufficient in most cases too (however, once again, this ain't good for multiple themes). Another thing which makes life easier for designers and regular admins.

Different concern - languages.

5. At least try to add all the strings to $lang files, it costs a bit time, I know, but you'll save a lot more time for translators and people who want to simply change the text.

Last thing, not connected to coding at all.

6. Use github for providing your plugins. Not only it makes it easier users to download without waiting for approval on mods site, but also for you - the fork/pull request/bug report system can be quite helpful.
Reply


Messages In This Thread
Developer Tips Thread - by Wildcard - 2013-08-17, 05:35 PM
RE: Developer Tips Thread - by Destroy666 - 2013-08-17, 09:24 PM
RE: Developer Tips Thread - by Wildcard - 2013-09-25, 04:19 AM
RE: Developer Tips Thread - by Nathan Malcolm - 2013-09-25, 04:33 AM
RE: Developer Tips Thread - by Wildcard - 2013-09-25, 04:53 AM
RE: Developer Tips Thread - by Wildcard - 2016-12-11, 04:02 PM
RE: Developer Tips Thread - by fizz - 2016-12-14, 02:47 AM
RE: Developer Tips Thread - by Wildcard - 2016-12-16, 01:01 PM
RE: Developer Tips Thread - by Wildcard - 2017-01-02, 10:13 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)