Place to Begin?

Discuss the development of future releases of phpBB (phpBB 3.x minor releases) and MODing/Coding related questions.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
User avatar
Tanner
New member
New member
Posts: 4
Joined: 10 Dec 2009, 00:14
Real name: Tanner Smith
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Place to Begin?

Postby Tanner » 11 Dec 2009, 01:14

Hi all,

Where is the best place to start learning the ways of phpBB? I understand that there are phpBB pages on the functions and the way to code, though I find it kinda hard to learn from that. Is it better just to start from adjusting other MODs or kind of just hit the ground running?

How should I start creating a mod once I learn enough of the ways of phpBB to use it? Do I start with a vanilla forum and start editing? Do I record my changes as I am making them or use diff after I'm done and then format the MOD install file?

Sorry for the questions, but I haven't found any article explaining how to start...

Thanks
-Tanner
.---- ..--- -.... .----

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Place to Begin?

Postby Obsidian » 11 Dec 2009, 14:12

Install MODs, observe what they do. See how they work, take them apart, adjust what they do to see what happens, and all that. If you get errors, don't panic -- try to figure out what you did that caused the errors, you'll learn faster.

Always build MODs on a vanilla phpBB installation, unless you are doing custom coding work.
You can record the stuff you added in a text file if you want, but what I recommend is actually slowly writing the MODx file as you go (add in your edits, file copy actions, etc.)

There's a bit more info here: http://www.phpbb.com/mods/
Be sure to read the coding guidelines file in the docs/ folder of phpBB, as it does contain a lot of information that you'll need to know when coding. There's also a copy here: http://code.phpbb.com/svn/phpbb/branches/phpBB-3_0_0/phpBB/docs/coding-guidelines.html

Finally, when you are coding, you'll need some tools /to/ code with. There's a list of tools for development over at .com (what many 'modders refer to phpBB.com as) in this topic: http://www.phpbb.com/community/viewtopic.php?f=71&t=1669305
Personally, I use Komodo Edit, Filezilla, XAMPP, and I also use git instead of SVN (much better by a long shot).

Setting up a localhost installation is a great idea, as well, for testing. You won't want to put stuff live when you are coding, as it may introduce issues that someone could exploit while you are developing -- there's instructions on setting up a localhost install here: http://startrekguide.com/community/viewtopic.php?style=1&f=50&t=2149

When you think your MODs are good enough, register on .com (if you haven't done so) and submit the package of your MOD to the MODDB (MODs Database). Be sure that your MOD will install with AutoMOD, that it works flawlessly, and that it is secure.

I guess the last thing I have to say is, when you have learned a bit, you'll be wise to either install [url=https://addons.mozilla.org/en-US/firefox/addon/8984]this addon[/url] for Firefox or keep a tab of PHP.net open whenever you are coding, as having the function documentation is very handy at times


Good luck. :beer:


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “phpBB Development discussion”

Who is online

Users browsing this forum: No registered users and 3 guests