(re)move the "Code" button from the bbcode buttons

We know you have an opinion on how things should be run around here. These are suggestions for the forums, and the website.This forum is not a place to ask for suggestions to your own coding (or otherwise) problems.

Moderator: General Moderators

User avatar
Mordred
DevNet Resident
Posts: 1579
Joined: Sun Sep 03, 2006 5:19 am
Location: Sofia, Bulgaria

(re)move the "Code" button from the bbcode buttons

Post by Mordred »

Only the mods know exactly how many posts they have to fix because of this, so I wonder why don't you just remove the darned button and be done with it!

If this is somehow too drastic, maybe move "Code" somewhere around "syntax" and make "php" bold, red or both.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

Here here... and I wouldn't mind seeing both "list" types replaced with "Javascript" and "HTML".. if it's not too much trouble...
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

The

Code: Select all

tag has to stay for various reasons for the boards to maintain legacy posts and because it is still useful/needed now.

Due to how the

Code: Select all

button is integrated, it's not possible to give it special highlighting without removing it from that integration.

Adding buttons for individual highlighting constructs probably won't happen.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: (re)move the "Code" button from the bbcode but

Post by RobertGonzalez »

Mordred wrote:Only the mods know exactly how many posts they have to fix because of this, so I wonder why don't you just remove the darned button and be done with it!

If this is somehow too drastic, maybe move "Code" somewhere around "syntax" and make "php" bold, red or both.
Believe it or not, all of these suggestions were brought up in moderator discussions a while ago. We even talked about adding a monospace/code entry to the Syntax dropdown, but for reasons mentioned by feyd, we truly cannot do it without adding heaps of work to the admins when phpBB releases new code.

So while the thought is nice, it just cannot be done in a practical way.

PS And you wouldn't believe how many posts we fix... even if we told you... :wink:
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

Fair enough! (it never hurts to ask ;-))
User avatar
AKA Panama Jack
Forum Regular
Posts: 878
Joined: Mon Nov 14, 2005 4:21 pm

Post by AKA Panama Jack »

feyd wrote:The

Code: Select all

tag has to stay for various reasons for the boards to maintain legacy posts and because it is still useful/needed now.[/quote]

You can leave the code just remove the button and reference to it in the BBCode FAQ http://forums.devnetwork.net/faq.php?mode=bbcode
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

The button needs to remain in some form too.
User avatar
AKA Panama Jack
Forum Regular
Posts: 878
Joined: Mon Nov 14, 2005 4:21 pm

Post by AKA Panama Jack »

feyd wrote:The button needs to remain in some form too.
Why? I have been working in the PHPBB internals for... well... years and there isn't any reason for it to stay if everyone wants it removed. There are no code restrictions that require the button in the template to remain. It can easily be removed from the template and not cause ANY problems.
Last edited by AKA Panama Jack on Thu Feb 08, 2007 4:33 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

It has nothing to do with the internals.
User avatar
AKA Panama Jack
Forum Regular
Posts: 878
Joined: Mon Nov 14, 2005 4:21 pm

Post by AKA Panama Jack »

feyd wrote:It has nothing to do with the internals.
Then explain why it needs to be retained in the template?

If the only reason is just because you want it there just say that instead of being so obscure.

Sheesh
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I'm not being obscure. You may think so, but I will disagree. :)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I don't think an explanation is necessary. The fact is the moderator/administrator team has had discussion about this in the past and we have come to an agreement that the button stays. That should be enough.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

It could be done with CSS... but not very portably.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

greasemonkey?
User avatar
Mordred
DevNet Resident
Posts: 1579
Joined: Sun Sep 03, 2006 5:19 am
Location: Sofia, Bulgaria

Post by Mordred »

I am almost completely sure (haven't checked though) that the button placement depends on the theme, so it can be moved without this affecting the installation of new versions.
Post Reply