Suggestion for the [code] issues

This forum is for discussing the future of the PHP Developer's Network, as well as for us to get your opinion on things.

This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
mikemike
Forum Contributor
Posts: 355
Joined: Sun May 24, 2009 5:37 pm
Location: Chester, UK

Suggestion for the [code] issues

Post by mikemike »

Hiya,

I've only been using these forums for a short while and I've already noticed that 90% of new users don't use the code tags correctly - granted that this is because it's been edited from default. A vast majorty of moderators time must be taken up going through new posts and formatting them correctly - I've noticed 'astions' (username) is constantly changing user posts to the PHP format.

Now, as this is a PHP forum, would it not make sense to have the code tags default to PHP? As far as I see it this is a 30 second task, just do:

Code: Select all

str_replace('[ code ]', '[ code=php ]', $post_body_var); // Obviously without the spaces
Just my ten cents worth anyway.
Post Reply