Page 1 of 1

[php] tags?

Posted: Sat Jan 26, 2008 10:09 am
by dayyanb
They don't show up with any formatting for me. Is there some sort of setting to make them do so?

Re: [php] tags?

Posted: Sat Jan 26, 2008 10:11 am
by alex.barylski
I noticed they disappeared when they updated the boards too...for now...I just use *code* tag and then manually replace with *php*

Re: [php] tags?

Posted: Sat Jan 26, 2008 10:13 am
by Weirdan
dayyanb wrote:They don't show up with any formatting for me. Is there some sort of setting to make them do so?
You mean there's no button to add

Code: Select all

tags, or they do not have any effect when added manually?

Re: [php] tags?

Posted: Sat Jan 26, 2008 11:06 am
by RobertGonzalez
There is only one tag: [code]. To make it php code, use [code=php]. For javascript, use [code=javascript]. For just about any other language, try using the language name. If we have the plugin for that language installed it will parse. Otherwise it won't.

For more information, please review this thread in Site News about this same topic.

Edit | Hang on a sec, I may be wrong about this syntax.

Code: Select all

<?php
phpinfo();
?>

Code: Select all

<?php
phpinfo();
?>

Code: Select all

<?php
phpinfo();
?>

Code: Select all

var myName;myName = 'Humberto Loiaza';alert('Name is ' + myName.length + ' chars long'); 
Ok, I am wrong. You can use

Code: Select all

or [language] or [syntax="language"] (notice the double quotes). Though when editing, the syntax= style gets replaced with just the tag name.

Re: [php] tags?

Posted: Sat Jan 26, 2008 11:11 am
by Weirdan
Everah wrote:There is only one tag: [code]. To make it php code, use [code=php].
But by some fortunate coincidence (bug?)

Code: Select all

, [js] and [sql] works as well.

Re: [php] tags?

Posted: Sat Jan 26, 2008 11:13 am
by RobertGonzalez
Sorry weirdan, I just edited my last post. I think we set it up to do what you are seeing.

Re: [php] tags?

Posted: Sat Jan 26, 2008 3:40 pm
by dayyanb
Hmm they seem to be showing up properly for me now. Thanks for the information.

Re: [php] tags?

Posted: Sun Jan 27, 2008 1:58 pm
by JAM
It's pretty easy to add custom bb tags within '/adm/index.php'. I know it works with the various of code/php/js tags, but we want buttons damn it! :lol:
It so much easier for users and it's not much work for admins as youre not messing with the templates.

Thanks In advance!
Because I know you want to... You really do... You reaaaaaaaally do...

Re: [php] tags?

Posted: Sun Jan 27, 2008 2:22 pm
by Weirdan
JAM wrote:but we want buttons damn it! :lol:
That what I was wondering about: because it's one thing to add a button and quite another - to fix geshi syntax highlighting (which is still broken in some aspects).

Re: [php] tags?

Posted: Sun Jan 27, 2008 2:28 pm
by JAM
Weirdan wrote:
JAM wrote:but we want buttons damn it! :lol:
That what I was wondering about: because it's one thing to add a button and quite another - to fix geshi syntax highlighting (which is still broken in some aspects).
Of course. The lack of buttons doesn't fix the errors tho, not other way around. We'll still (at least me) use the tags, and hope that eventually the geshi-code is fixed. Until then, the buttons would be gladly accepted. :wink:
I'll manage tho. Just wanted to say it.