PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sun Jul 22, 2018 4:51 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: [php] tags?
PostPosted: Wed May 07, 2008 9:56 am 
Offline
Forum Contributor
User avatar

Joined: Sun May 07, 2006 5:19 am
Posts: 101
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
Syntax: [ Download ] [ Hide ]
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
Syntax: [ Download ] [ Hide ]
with
Syntax: [ Download ] [ Hide ]
? Maybe not all, but at least the recent ones in tutorials, snippets, code critique and stickies with broken tags, if any.


Top
 Profile  
 
 Post subject: Re: [php] tags?
PostPosted: Wed May 07, 2008 10:49 am 
Offline
Site Administrator
User avatar

Joined: Tue Sep 09, 2003 6:04 pm
Posts: 14293
Location: Fremont, CA, USA
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.


Top
 Profile  
 
 Post subject: Re: [php] tags?
PostPosted: Wed May 07, 2008 11:05 am 
Offline
Forum Contributor
User avatar

Joined: Sun May 07, 2006 5:19 am
Posts: 101
Aww damn :(


Top
 Profile  
 
 Post subject: Re: [php] tags?
PostPosted: Wed May 21, 2008 9:09 pm 
Offline
Breakbeat Nuttzer
User avatar

Joined: Wed Mar 24, 2004 8:57 am
Posts: 13098
Location: Melbourne, Australia
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 :)


Top
 Profile  
 
 Post subject: Re: [php] tags?
PostPosted: Wed May 21, 2008 11:27 pm 
Offline
Site Administrator
User avatar

Joined: Wed Aug 25, 2004 7:54 pm
Posts: 13570
Location: New York, NY, US
Verminox wrote:
The
Syntax: [ Download ] [ Hide ]
tags don't work anymore. </div>
To clarify,
Syntax: [ Download ] [ Hide ]
tags still work in new posts ... just not in post before the upgrade to phpBB3.

It would be nice to get the
Syntax: [ Download ] [ Hide ]
button back in the post editor though.

_________________
(#10850)


Top
 Profile  
 
 Post subject: Re: [php] tags?
PostPosted: Sat Jan 10, 2009 12:10 pm 
Offline
Forum Commoner

Joined: Sat Jan 10, 2009 11:05 am
Posts: 35
PHP tags work fine for me.

Try
Syntax: [ Download ] [ Hide ]
 


Top
 Profile  
 
 Post subject: Re: [php] tags?
PostPosted: Sat Jan 10, 2009 3:58 pm 
Offline
Jack of Zircons
User avatar

Joined: Thu Nov 09, 2006 9:30 pm
Posts: 4484
Location: California, USA
jason.carter wrote:
PHP tags work fine for me.

Try [ code] 

That's not a
Syntax: [ Download ] [ Hide ]
tag, it doesn't use smart coloring based on PHP syntax.


Top
 Profile  
 
 Post subject: Re: [php] tags?
PostPosted: Fri Jan 16, 2009 12:17 pm 
Offline
DevNet Resident
User avatar

Joined: Sat Jan 07, 2006 6:52 am
Posts: 1675
Location: Lahti, Finland.
You either type [php ][ /php] or [code=php ][ /code] :)

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


Top
 Profile  
 
 Post subject: Re: [php] tags?
PostPosted: Fri Jan 16, 2009 12:42 pm 
Offline
Jack of Zircons
User avatar

Joined: Thu Nov 09, 2006 9:30 pm
Posts: 4484
Location: California, USA
kaisellgren wrote:
You either type [php ][ /php] or [code=php ][ /code] :)

Right. But not just [ code].
Quote:
Although I don't understand why there is no button for PHP code tag...

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.


Top
 Profile  
 
 Post subject: Re: [php] tags?
PostPosted: Fri Jan 16, 2009 1:27 pm 
Offline
Site Administrator
User avatar

Joined: Tue Sep 09, 2003 6:04 pm
Posts: 14293
Location: Fremont, CA, USA
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.


Top
 Profile  
 
 Post subject: Re: [php] tags?
PostPosted: Fri Jan 16, 2009 1:36 pm 
Offline
DevNet Resident
User avatar

Joined: Sat Jan 07, 2006 6:52 am
Posts: 1675
Location: Lahti, Finland.
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)


Top
 Profile  
 
 Post subject: Re: [php] tags?
PostPosted: Sun Mar 15, 2009 3:46 pm 
Offline
Forum Commoner

Joined: Mon Dec 08, 2008 8:40 pm
Posts: 82
Location: Shokan, New York
This needs updating..... viewtopic.php?f=1&p=197050#p197050 the
Syntax: [ Download ] [ Hide ]
tags don't do anything.


Top
 Profile  
 
 Post subject: Re: [php] tags?
PostPosted: Sun Mar 15, 2009 8:50 pm 
Offline
Jack of Zircons
User avatar

Joined: Thu Nov 09, 2006 9:30 pm
Posts: 4484
Location: California, USA
socket1 wrote:
This needs updating..... viewtopic.php?f=1&p=197050#p197050 the
Syntax: [ Download ] [ Hide ]
tags don't do anything.</div>
Hmmm. I just opened that post in Edit mode (as a Moderator, I can do that) and saved it again, <span style="text-decoration: underline">without making even the slightest change</span>, 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?


Top
 Profile  
 
 Post subject: Re: [php] tags?
PostPosted: Mon Mar 16, 2009 10:19 am 
Offline
Briney Mod
User avatar

Joined: Mon Jan 19, 2004 7:11 pm
Posts: 6444
Location: 53.01N x 112.48W
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.

_________________
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.


Top
 Profile  
 
 Post subject: Re: [php] tags?
PostPosted: Mon Mar 16, 2009 10:21 am 
Offline
DevNet Resident
User avatar

Joined: Sat Jan 07, 2006 6:52 am
Posts: 1675
Location: Lahti, Finland.
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group