Jay asked me to think of a way to gather together some code snippets on the forums and I thought long and hard about the best possible ways to this and have decided that forming an "open source" "GIDForums PHP Library" would be the best way. To submit something for the library simply make a post in this thread which contains your code. If you later make changes to your posted code please do not make a new post but edit the original unless there are some fairly major changes, also, please mark any posts edited for code changes as edited so I can keep track. Also, to make things easier for people doing searches on the forums and search engines which have spidered us please use the following format for your Subject:
[Function] Short Description of function.
[Class] Short Description of Class.
Please use the following format within php bb code tags to post your code:
Quote:
// Name: <name of function, class, snippet, etc...>
// Version: Hmmm...
// Author: your name <real, forum or both>
// Desription: What does it do?
// Type: is this a function? a class? a complete script?
<Code goes here>
|
Please make sure your code is well commented, ie: comment your variables and/or make sure they are clearly named as to what they are. Comment each function with a description on it's use. I will be posting a sample in a seperate thread momentarily.
Thanks guys, let's make one kick butt library that all php programmers will want to boast about using!