PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Thu Aug 17, 2017 6:23 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Wed Jun 21, 2006 4:06 am 
Offline
Breakbeat Nuttzer
User avatar

Joined: Wed Mar 24, 2004 8:57 am
Posts: 13098
Location: Melbourne, Australia
This forum is locked to the creation of new threads. If you wish to post a code snippet, first read the guidelines below before finally private messaging a moderator with your thread.

Writing a code snippet should be fairly self explanatory.

First, check if a code snippet that does what your does already exists. If it does, check to see if it's done in a similiar way. If it does, provide the name of the thread to include your code snippet. If not, a descriptive name for your snippet's new thread.

Code snippets should be suitable for use in production level code. The snippet will be reviewed by the board.

Snippets are assumed to be PHP. If your snippet is not PHP, you should indicate the language in the title of the thread by placing [Language] at the start. i.e. [JavaScript].

The title of your thread should be clear and descriptive.

When posting your snippet, if it's not extremely obvious you should give a very clear description of what your snippet does and any limitations/requirements to run it (e.g. requires PHP5). You should also include examples on its usage.

Code snippets do not need to be lengthy, complex excerpts of source code. If you have some useful code which is only a few lines long you should still offer it.

Do's and Don'ts...
  • Do not send links to external content without posting the source code here.
  • Do not send snippets that are not free to use (i.e. not licensed under the GPL, LGPL or another free software license).
  • Do not send code which only works in your own application or will not be useful to other developers.
  • Do include examples of how to use your snippet.
  • Do state the license of your snippet where appropriate.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 21, 2006 8:13 am 
Offline
DevNet Resident
User avatar

Joined: Sat Dec 06, 2003 10:52 pm
Posts: 1679
Location: Mumbai, India
Quote:
If you wish to post a code snippet, first read the guidelines below before finally private messaging a moderator with your thread.

Wouldnt it be easier if it were set like, users can post but not visible until its approved ?

And why all of a sudden this restriction ?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 21, 2006 8:16 am 
Offline
Admin
User avatar

Joined: Wed Aug 13, 2003 7:02 am
Posts: 4522
Location: York, UK
anjanesh wrote:
Wouldnt it be easier if it were set like, users can post but not visible until its approved ?


No, becuase that would require modification to phpBB

anjanesh wrote:
And why all of a sudden this restriction ?


Becuase people had started posting snippets that were, shall we say, not very well done.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 21, 2006 8:18 am 
Offline
DevNet Resident
User avatar

Joined: Sat Dec 06, 2003 10:52 pm
Posts: 1679
Location: Mumbai, India
Quote:
No, becuase that would require modification to phpBB

Is there some widely avaialable module for this ? Because I've seen this in many phpBB forums.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 21, 2006 8:24 am 
Offline
Forum Contributor

Joined: Sun May 14, 2006 10:36 am
Posts: 156
Location: Sweden
In a lot of forums you have one forum for everyone to post their codes and then moderators and administrators can approve the codes and it comes to a diffrent forum. That might be something?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 21, 2006 8:29 am 
Offline
Tutorials Group

Joined: Sun Jan 04, 2004 11:30 pm
Posts: 2692
anjanesh wrote:
Quote:
No, becuase that would require modification to phpBB

Is there some widely avaialable module for this ? Because I've seen this in many phpBB forums.

The tutorials forum here works the way the snippets section will now work. It has worked very well, without a mod, for over a year.

From an end-user point of view, the only difference is that you are posting your proposed snippet in a PM instead of a forum post. Thats not worth installing a mod for.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 21, 2006 8:30 am 
Offline
Breakbeat Nuttzer
User avatar

Joined: Wed Mar 24, 2004 8:57 am
Posts: 13098
Location: Melbourne, Australia
Can we continue this discussion here: http://forums.devnetwork.net/viewtopic.php?t=50249

Saves cluttering the sticky. Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group