Page 1 of 2

[php] tags?

Posted: Wed May 07, 2008 9:56 am
by Verminox
I'm sure this has been mentioned many times before, but I couldn't find a topic about this in the Suggestions forum, so I made one anyway.

The

Code: Select all

tags don't work anymore. Therefore all old topics, including ones on the first page in forums such as Tutorials, Snippets, and sticky topics which are still frequently read, are... well.... ugly. 

Can the admins fix this? Possibly by updating all posts and replace instances of

Code: Select all

with

Code: Select all

? Maybe not all, but at least the recent ones in tutorials, snippets, code critique and stickies with broken tags, if any.

Re: [php] tags?

Posted: Wed May 07, 2008 10:49 am
by RobertGonzalez
It isn't that easy unfortunately. phpBB ties each post with a bbCode id tag. So to clean up those older posts we would need to literally open each post and save it again.

Sorry.

Re: [php] tags?

Posted: Wed May 07, 2008 11:05 am
by Verminox
Aww damn :(

Re: [php] tags?

Posted: Wed May 21, 2008 9:09 pm
by Chris Corbyn
We tend to just fix them as we stumble upon them. I don't have a standard user account, but is there some kind of "alert a moderator" button on threads in phpBB3?

EDIT | Yeah, if you use "Report this post" we get notified of it. Just pop a message in there that the post needs fixing :)

Re: [php] tags?

Posted: Wed May 21, 2008 11:27 pm
by Christopher
Verminox wrote:The

Code: Select all

tags don't work anymore. [/quote]
To clarify,

Code: Select all

tags still work in new posts ... just not in post before the upgrade to phpBB3.

It would be nice to get the

Code: Select all

button back in the post editor though.

Re: [php] tags?

Posted: Sat Jan 10, 2009 11:10 am
by jason.carter
PHP tags work fine for me.

Try [syntax=php] [/syntax]

Re: [php] tags?

Posted: Sat Jan 10, 2009 2:58 pm
by califdon
jason.carter wrote:PHP tags work fine for me.

Try [ code] 
That's not a

Code: Select all

tag, it doesn't use smart coloring based on PHP syntax.

Re: [php] tags?

Posted: Fri Jan 16, 2009 11:17 am
by kaisellgren
You either type

Code: Select all

[ /php] or [code=php ][ /code] :)

Although I don't understand why there is no button for PHP code tag...

Re: [php] tags?

Posted: Fri Jan 16, 2009 11:42 am
by califdon
kaisellgren wrote:You either type

Code: Select all

[ /php] or [code=php ][ /code] :)[/quote]
Right. But not just [ code].
[quote]Although I don't understand why there is no button for PHP code tag...[/quote]
It would make things a bit easier, wouldn't it? Actually, I have become accustomed to just entering the tags directly, as I enter a message. It has become faster for me to do that than move my mouse up to the button bar and find the right button to click.

Re: [php] tags?

Posted: Fri Jan 16, 2009 12:27 pm
by RobertGonzalez
There is no PHP button because it would require us to modify the phpBB default install. Every time we upgrade we would overwrite those changes and would have to remodify the templates.

I think there was a greasemonkey script around here once that added the PHP button. But like califdon said, I am at a point right now where typing the tags as I post/reply is faster.

Re: [php] tags?

Posted: Fri Jan 16, 2009 12:36 pm
by kaisellgren
Everah wrote:There is no PHP button because it would require us to modify the phpBB default install. Every time we upgrade we would overwrite those changes and would have to remodify the templates.

I think there was a greasemonkey script around here once that added the PHP button. But like califdon said, I am at a point right now where typing the tags as I post/reply is faster.
Okay that makes sense. 8)

Re: [php] tags?

Posted: Sun Mar 15, 2009 3:46 pm
by socket1
This needs updating..... viewtopic.php?f=1&p=197050#p197050 the

Code: Select all

tags don't do anything.

Re: [php] tags?

Posted: Sun Mar 15, 2009 8:50 pm
by califdon
socket1 wrote:This needs updating..... viewtopic.php?f=1&p=197050#p197050 the

Code: Select all

tags don't do anything.[/quote]
Hmmm. I just opened that post in Edit mode (as a Moderator, I can do that) and saved it again, [u]without making even the slightest change[/u], and now it works. Either something glitched when you saved it or there's something special that I don't know about that lets mods do it. Hey, Robert, what's going on?

Re: [php] tags?

Posted: Mon Mar 16, 2009 10:19 am
by pickle
I believe the code is parsed when the post is saved, not when it's viewed. As we've migrated through different syntax highlighters, the "rendered" view got lost. Re-editing the post & saving it again allows the parser to re-parse the file & re-render the code.

Re: [php] tags?

Posted: Mon Mar 16, 2009 10:21 am
by kaisellgren
I think it's David Copperfield what happened.

Seriously, I think reposting/editing will make the php tags to get parsed just like pickle said.