PHP Developers Network

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

All times are UTC - 5 hours




Post new topic Reply to topic  [ 15 posts ] 
Author Message
PostPosted: Thu Jul 16, 2009 11:01 am 
Offline
DevNet Resident
User avatar

Joined: Sun Feb 15, 2009 8:22 pm
Posts: 2119
Location: Ipswich, UK
Hi all,
I'm not really sure if this is a bug with PHPBB or this forum or what...
But this post has had it's slashes removed...

If you go to edit the post, you'll see the slashes are there, but when viewing the post they are not. The quotes are just blue. This could be a bug with PHPBB's syntax highlighter?

Anyway, just thought I'd see if anyone knew about this or has had the same problem?

Thanks,
Jack.


Top
 Profile  
 
PostPosted: Thu Jul 16, 2009 1:09 pm 
Offline
DevNet Resident
User avatar

Joined: Sun Feb 15, 2009 8:22 pm
Posts: 2119
Location: Ipswich, UK
It happened again here


Top
 Profile  
 
PostPosted: Fri Jul 17, 2009 2:27 pm 
Offline
DevNet Resident
User avatar

Joined: Wed Apr 01, 2009 1:31 pm
Posts: 1532
I don't see a "suggestion" in this topic...

I think there is a bug in GeSHi (the syntax highlighter used by this forum). Here are some workarounds. The first is the most desirable.

Workaround 1: Use double quotes when you need to use a literal single quote in a string.
Code:
[code=php]echo "'"; [/code]
Code:
echo "'"; 

Workaround 2: Use the "text" instead of "php" code type and use a double backslash in place of a single backslash.
Code:
[code=text]echo '\\'';[/code]
Code:
echo '\'';

Workaround 3: Use two (or three) backslashes and make a notation in your post about the need to convert double backslashes to a single backslash when copying the code. When you edit your post, remember to delete the extra line breaks that get appended to the code.
Code:
[code=php]echo '\\''; [/code]
Code:
echo '\\''; 

Edit: This post was recovered from search engine cache.


Last edited by McInfo on Wed Jun 16, 2010 3:10 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Fri Jul 17, 2009 2:38 pm 
Offline
DevNet Resident
User avatar

Joined: Sun Feb 15, 2009 8:22 pm
Posts: 2119
Location: Ipswich, UK
Oh yeah...

That kind of sucks though.

I wonder why PHPBB don't just use php's highlight string function....

That's a pretty big bug.


Top
 Profile  
 
PostPosted: Fri Jul 17, 2009 3:48 pm 
Offline
Briney Mod
User avatar

Joined: Mon Jan 19, 2004 7:11 pm
Posts: 6444
Location: 53.01N x 112.48W
PHPBB has not built-in syntax highlighting. We use Geshi. Geshi isn't built to be dependent on any language - they built their highlighting engine & you add new languages with language highlight definition files.

Using the built-in function would make a lot of sense - perhaps we'll do that when/if we move to MyBB.

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


Top
 Profile  
 
PostPosted: Sun Aug 09, 2009 1:26 pm 
Offline
DevNet Resident
User avatar

Joined: Sun Feb 15, 2009 8:22 pm
Posts: 2119
Location: Ipswich, UK
I just downloaded & installed MyBB on my local machine.

Not impressed :|

I prefer phpBB. Are you guys considering changing over?


Top
 Profile  
 
PostPosted: Sun Aug 09, 2009 3:07 pm 
Offline
Moderator
User avatar

Joined: Mon Nov 03, 2003 7:13 pm
Posts: 5978
Location: Odessa, Ukraine
I just checked that code snippet on GeSHi's website - it works properly. Probably we need to consider upgrading.


Top
 Profile  
 
PostPosted: Mon Aug 10, 2009 10:06 am 
Offline
Briney Mod
User avatar

Joined: Mon Jan 19, 2004 7:11 pm
Posts: 6444
Location: 53.01N x 112.48W
jackpf wrote:
I just downloaded & installed MyBB on my local machine.

Not impressed :|

I prefer phpBB. Are you guys considering changing over?


It's nothing official - just a couple of us mods playing around (or planning to at least). MyBB is much more supportive of mods, which will make it much easier for us to provide some of the functionality users are asking for, without adding fear of upgrading.

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


Top
 Profile  
 
PostPosted: Mon Aug 10, 2009 11:08 am 
Offline
DevNet Resident
User avatar

Joined: Sun Feb 15, 2009 8:22 pm
Posts: 2119
Location: Ipswich, UK
Hmm...but phpBB has such a huge community behind it. I would have thought there would be more mods for it....

I don't know...I don't dislike MyBB. I just find some of its features annoying. For example, the search feature - why does it display a page with "Your search has been submitted" or something, and then redirect you after a few seconds? Why not just redirect straight to the results? Better yet - why not just display the results on the first page??

Plus phpBB is a lot more stylish...you must admit.

IMO, vBulletin is the best...but you actually have to pay for it!!!!

SMF has some good features, but the layout looks a bit naff. I suppose with a decent theme it'd be pretty cool....

It'd be interesting to get a vote going or something; see what other people think :)

In fact...what would be cool is if we all pooled in, and made our own forum!!!! A bunch of PHP developers - who better for the job?! :D


Top
 Profile  
 
PostPosted: Mon Aug 10, 2009 11:34 am 
Offline
Briney Mod
User avatar

Joined: Mon Jan 19, 2004 7:11 pm
Posts: 6444
Location: 53.01N x 112.48W
phpBB does have lots of mods. The trouble is with how they're installed. With phpBB, you have to go into various files & modify the source code. With MyBB, it's just a matter of enabling the mod in the control panel. If all we had to do was modify the code once, that'd be fine. However, we'd need to do that every time we update the forum software. This has resulted in us not installing as many mods as we'd like, nor keeping phpBB up-to-date.

Building our own forum would never happen - too many cooks in the kitchen.

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


Top
 Profile  
 
PostPosted: Mon Aug 10, 2009 11:38 am 
Offline
DevNet Resident
User avatar

Joined: Sun Feb 15, 2009 8:22 pm
Posts: 2119
Location: Ipswich, UK
Ahh right, I've never really used phpBB to that extent so I wouldn't know...

That seems stupid though. I would have thought such a popular forum with such a large community would have developed a method of installing mods by now....

Quote:
Building our own forum would never happen - too many cooks in the kitchen.

Heh, yeah...I guess. Nice analogy.


Top
 Profile  
 
PostPosted: Mon Aug 10, 2009 12:32 pm 
Offline
DevNet Master
User avatar

Joined: Fri Jan 18, 2008 1:36 am
Posts: 3549
Location: Israel, ME
Quote:
Building our own forum would never happen - too many cooks in the kitchen.

Why not? if everyone agrees on the underlying structure (ie, a particular framework) and some coding standards it can be done. we could split into small teams and write separate modules. why not put up a poll on it?


Top
 Profile  
 
PostPosted: Mon Aug 10, 2009 12:42 pm 
Offline
Briney Mod
User avatar

Joined: Mon Jan 19, 2004 7:11 pm
Posts: 6444
Location: 53.01N x 112.48W
If you want to post that poll, feel free.

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


Top
 Profile  
 
PostPosted: Mon Aug 10, 2009 1:10 pm 
Offline
DevNet Master
User avatar

Joined: Fri Jan 18, 2008 1:36 am
Posts: 3549
Location: Israel, ME
don't think I won't, cause I might!!

seriously though, would you guys (mods) consider replacing phpBB with a collaboration project of the forum members?


Top
 Profile  
 
PostPosted: Mon Aug 10, 2009 1:21 pm 
Offline
DevNet Resident
User avatar

Joined: Sun Feb 15, 2009 8:22 pm
Posts: 2119
Location: Ipswich, UK
I posted a poll :D

viewtopic.php?f=7&t=104474

I think that would be a cool idea...even if it wasn't to replace the current forum software, it'd still be fun.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 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:  
cron
Powered by phpBB® Forum Software © phpBB Group