PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Wed Oct 16, 2019 6:41 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: code tags
PostPosted: Wed Aug 05, 2009 7:00 pm 
Offline
DevNet Master

Joined: Wed Feb 11, 2004 4:23 pm
Posts: 4872
Location: Palm beach, Florida


Top
 Profile  
 
 Post subject: Re: code tags
PostPosted: Wed Aug 05, 2009 7:12 pm 
Offline
Jack of Zircons
User avatar

Joined: Thu Nov 09, 2006 9:30 pm
Posts: 4484
Location: California, USA
Syntax: [ Download ] [ Hide ]
didn't work for some interim period, I believe, but they've worked for all or nearly all the time I've been posting here--a couple of years. Just no button for them.


Top
 Profile  
 
 Post subject: Re: code tags
PostPosted: Thu Aug 06, 2009 4:41 pm 
Offline
DevNet Master

Joined: Wed Feb 11, 2004 4:23 pm
Posts: 4872
Location: Palm beach, Florida
Syntax: [ Download ] [ Hide ]
 
echo 'foo';
 

cool. they were disabled at one point when they introduced the [code="php"] stuff, looks like theyre a step ahead of me


Top
 Profile  
 
 Post subject: Re: code tags
PostPosted: Wed Sep 30, 2009 10:32 am 
Offline
Forum Contributor

Joined: Sat Jan 03, 2009 4:27 pm
Posts: 148
The
Syntax: [ Download ] [ Hide ]
tag doesn't seem to be working. I've been looking through the older posts in the Code Snippet forum, and none of the samples show up as code.


Top
 Profile  
 
 Post subject: Re: code tags
PostPosted: Wed Sep 30, 2009 2:18 pm 
Offline
Jack of Zircons
User avatar

Joined: Thu Nov 09, 2006 9:30 pm
Posts: 4484
Location: California, USA


Top
 Profile  
 
 Post subject: Re: code tags
PostPosted: Thu Oct 01, 2009 2:39 am 
Offline
DevNet Master

Joined: Wed Feb 11, 2004 4:23 pm
Posts: 4872
Location: Palm beach, Florida
Oh.. that explains why I thought they "weren't working" ( I was looking at old posts )

But you could do this in 2 lines of sql, with the regex() function; for instance find all the \[php\] and replace with \[code=php\], find all and replace with :-)

What is the proper way to escape writing the
Syntax: [ Download ] [ Hide ]
tag? ( when it is followed by a closing one )


Top
 Profile  
 
 Post subject: Re: code tags
PostPosted: Mon Oct 26, 2009 1:36 pm 
Offline
Site Admin
User avatar

Joined: Tue Dec 23, 2003 3:10 am
Posts: 11470
Location: Toronto
The problem is PHPBB parses the tags and replaces it with it's internal bbcode handling during the post submission. So unfortunately, it's not as simple as simply updating the SQL.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


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