oni-kun Posted December 14, 2009 Share Posted December 14, 2009 I've come to love using the [ php ] tags, but noticed they don't seem to have a button for them. I manually have to add [ code ] tags and then switch them to php or write them myself.. It isn't the most convenient sometimes. Do you think it should be added? Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/ Share on other sites More sharing options...
canadabeeau Posted December 14, 2009 Share Posted December 14, 2009 agreed button Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/#findComment-977042 Share on other sites More sharing options...
cags Posted December 14, 2009 Share Posted December 14, 2009 It would be nice to have, especially as it is PHPFreaks, I'm not sure how simple it would be to add though. The manual tag would be extremely useful also. Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/#findComment-977074 Share on other sites More sharing options...
oni-kun Posted December 14, 2009 Author Share Posted December 14, 2009 Quote It would be nice to have, especially as it is PHPFreaks, I'm not sure how simple it would be to add though. The manual tag would be extremely useful also. Yeah! You mean the [ m ] [ /m ]? I just just thought of that and wanted to reply here. I don't think it'd be hard to add at all, I mean all it does is uses JS to wrap a tag around selected text, It'll be very fun to use. Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/#findComment-977079 Share on other sites More sharing options...
cags Posted December 14, 2009 Share Posted December 14, 2009 Yeah, I meant the [m]manual[/m] tags <--- get me, no spaces Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/#findComment-977082 Share on other sites More sharing options...
Daniel0 Posted December 14, 2009 Share Posted December 14, 2009 I suppose we can do that. I can't say I've ever used any of the buttons though. Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/#findComment-977091 Share on other sites More sharing options...
nrg_alpha Posted December 14, 2009 Share Posted December 14, 2009 @oni-kun To accomplish what cags has done ([m]...[/m] without spaces), simply surround the desired bbc tags with [nobbc] ... [/nobbc] tags. Quote I suppose we can do that. I can't say I've ever used any of the buttons though. I agree with adding those buttons (PHP code tags and manual tags). For me, it's a mixed bag.. If I am hammering out a response in the Quick Reply panel, I tend to simply type out the bbc tags manually (as there no buttons of anykind available above the *Quick Reply.. but if I am previewing a response, I tend to hit the code button (and modifiy it to PHP if that's what I am using). I suppose it all boils down to personal preference (I prefer having both methods). [ot] * Isn't there a mod that puts the panel of buttons found above the preview window above the Quick Reply as well? I can't believe SMF hasn't done this by default. Otherwise, people who wish to access these buttons must first hit preview. [/ot] Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/#findComment-977203 Share on other sites More sharing options...
Daniel0 Posted December 14, 2009 Share Posted December 14, 2009 Quote * Isn't there a mod that puts the panel of buttons found above the preview window above the Quick Reply as well? I can't believe SMF hasn't done this by default. Otherwise, people who wish to access these buttons must first hit preview. It's called "Quick Reply". It's designed for when you need to write quick replies, not for when you're writing CV style novels Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/#findComment-977204 Share on other sites More sharing options...
Zane Posted December 14, 2009 Share Posted December 14, 2009 Quote Quote * Isn't there a mod that puts the panel of buttons found above the preview window above the Quick Reply as well? I can't believe SMF hasn't done this by default. Otherwise, people who wish to access these buttons must first hit preview. It's called "Quick Reply". It's designed for when you need to write quick replies, not for when you're writing CV style novels I could understand a few buttons being on the quick reply, but not all of them. Things like bold, italics, underline and strikethrough. And the code button(s). The only thing missing would be to have the mod that allows a user to select the text he/she wants to quote before pushing "quote". But yeah. typically I just hit preview whenever I need to do some formatting. Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/#findComment-977215 Share on other sites More sharing options...
cags Posted December 14, 2009 Share Posted December 14, 2009 I've never actually used the quick reply, since I have the newest response at the top not the bottom, it seems a lot easier to just click reply. Quote I could understand a few buttons being on the quick reply, but not all of them. Things like bold, italics, underline and strikethrough. And the code button(s). The only thing missing would be to have the mod that allows a user to select the text he/she wants to quote before pushing "quote". That quote thing would be nice too, I keep trying to do it out of pure instinct (because other forums I'm a member of have it). Quote To accomplish what cags has done ([m]...[/m] without spaces), simply surround the desired bbc tags with [nobbc] ... [/nobbc] tags. Your like the magician that explains the magic trick, you don't have to give away all the secrets Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/#findComment-977230 Share on other sites More sharing options...
.josh Posted December 14, 2009 Share Posted December 14, 2009 I rarely use the buttons for formatting, 99% of the time I type it out. But that boils down to a matter of preference, no real 'logic' behind it, so I have no issues with it being added. Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/#findComment-977245 Share on other sites More sharing options...
nrg_alpha Posted December 14, 2009 Share Posted December 14, 2009 Quote It's called "Quick Reply". It's designed for when you need to write quick replies, not for when you're writing CV style novels lol yeah, I understand, but I figured the "quickness" of it is that you don't need to hit reply (thus negate the need of bringing you to the full fledged reply / preview system). So from how I see it, the addition of some common buttons (as CV suggests) wouldn't have any bearing on the quickness of it all. I don't know.. just throwing my 2 cents out there. Quote Quote To accomplish what cags has done ([m]...[/m] without spaces), simply surround the desired bbc tags with [nobbc] ... [/nobbc] tags. Your like the magician that explains the magic trick, you don't have to give away all the secrets D'oh! I was going to simply point to the Bulletin Board Code Help page to illustrate that the nobbc tags were there for all to see.. but low and behold.. *poof!* it pulled a Houdini and vanished , so forget that idea. Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/#findComment-977290 Share on other sites More sharing options...
oni-kun Posted December 15, 2009 Author Share Posted December 15, 2009 A lot of newbs who come to these forums put code in plaintext, code tags or even quotes. O_o; It just makes more sense to have an easily available PHP button there, as the most posted type of code is PHP. I was surprised this brought much attention! Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/#findComment-977711 Share on other sites More sharing options...
salathe Posted December 15, 2009 Share Posted December 15, 2009 How about some intelligent parser to look at the post, recognise what is non-tagged code and wrap it in the appropriate tags? Hmm, sounds like too much work? Just some buttons will suffice then. Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/#findComment-977982 Share on other sites More sharing options...
oni-kun Posted December 22, 2009 Author Share Posted December 22, 2009 I still think this would be nice, On the odd post I almost not want to write code because of having to add formatting so high and low. [ot]Is OT or PHP more important? [/ot] Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/#findComment-982298 Share on other sites More sharing options...
Daniel0 Posted December 22, 2009 Share Posted December 22, 2009 Oh sorry, I completely forgot about this. Seeing as I suck at graphics, if someone makes me a button in similar style (possibly with a PHP logo) I'll see if I can add a button. Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/#findComment-982309 Share on other sites More sharing options...
nrg_alpha Posted December 22, 2009 Share Posted December 22, 2009 Quote Oh sorry, I completely forgot about this. Seeing as I suck at graphics, if someone makes me a button in similar style (possibly with a PHP logo) I'll see if I can add a button. I'll be away till tomorrow sometime, at which time I can hammer off some button ideas if you'd like. Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/#findComment-982501 Share on other sites More sharing options...
salathe Posted December 22, 2009 Share Posted December 22, 2009 How about ? Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/#findComment-982595 Share on other sites More sharing options...
Maq Posted December 22, 2009 Share Posted December 22, 2009 Quote How about ? I like that. Maybe add a little hash mark below it to signify code? Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/#findComment-982620 Share on other sites More sharing options...
.josh Posted December 22, 2009 Share Posted December 22, 2009 How about .... <?php Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/#findComment-982626 Share on other sites More sharing options...
salathe Posted December 22, 2009 Share Posted December 22, 2009 Adding anything else to it seems to crowd the button too much (but, I am not an artist!!); I also tried just having "<?" but a) short tags are always controversial and b) I'm not sure if folks would "get" that that's a PHP button. Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/#findComment-982643 Share on other sites More sharing options...
.josh Posted December 22, 2009 Share Posted December 22, 2009 woo hoo check out my awesome photoshop skills [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/#findComment-982722 Share on other sites More sharing options...
oni-kun Posted December 24, 2009 Author Share Posted December 24, 2009 And here's my contribution, Rollover for CV's: Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/#findComment-983422 Share on other sites More sharing options...
jon182 Posted December 24, 2009 Share Posted December 24, 2009 ya i just use the tags but PHP buttons would be great Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/#findComment-983431 Share on other sites More sharing options...
oni-kun Posted December 25, 2009 Author Share Posted December 25, 2009 http://www.phpfreaks.com/forums/index.php/topic,281885.msg1336129.html#msg1336129 If he doesn't edit it, Mikesta707 did a tag and ended in a [php] tag See? Anywho, hope we come up with a nice button style, we've no rush! EDIT: Name Link to comment https://forums.phpfreaks.com/topic/185076-button-for-php-code/#findComment-983928 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.