Smilies In Quotes & Code

We know you have an opinion on how things should be run around here. These are suggestions for the forums, and the website.This forum is not a place to ask for suggestions to your own coding (or otherwise) problems.

Moderator: General Moderators

Post Reply
Brian
Forum Contributor
Posts: 116
Joined: Thu Apr 18, 2002 5:33 pm

Smilies In Quotes & Code

Post by Brian »

Smilies appear in quotes when that behavior is undesirable, like so:
...(output started at /www/functions.inc:8)...
They do not, however, appear in code:

Code: Select all

if (":)" == replaced) { phpBB = "ass"; }

  else { phpBB = "not ass, at least in this particular way";}
I wonder how much work it would take to get phpBB to parse attributes to enable or disable BBCode and smilies on a per-block basis in addition to the per-message settings.
User avatar
hex
Forum Commoner
Posts: 92
Joined: Sat Apr 20, 2002 3:20 am
Location: UK

Post by hex »

That'll be pretty simple, just a case of adding or removing the RegExp code, or use a little test to see if it's enabled. Just hack the phpBB code and check it out...
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

Or simply check the box that says Disable Smilies in this post.

Honestly, it might eb a good suggestion, but at the same time...I don't have the time to hack it up.

I have been working on NN lately getting ready for some nice surprises. :D
Brian
Forum Contributor
Posts: 116
Joined: Thu Apr 18, 2002 5:33 pm

Uh...

Post by Brian »

Jason wrote:Or simply check the box that says Disable Smilies in this post.
The point of my ponderance is to allow or disallow smilies in particular parts of a post independent of the main post. This could be accomplished via tag attributes or escape characters... if one wants to take the time to modify the phpBB parser to that extent.
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

Yes, I do realize what you really meant =)

The difference between the quotes, and what not. I wonder....
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

Currently working on this..think I found the spot.
Brian
Forum Contributor
Posts: 116
Joined: Thu Apr 18, 2002 5:33 pm

So many of our projects...

Post by Brian »

So many of our projects start with "I wonder if" or "I wonder how". :)
Post Reply