Page 1 of 1

Smilies In Quotes & Code

Posted: Fri May 03, 2002 11:30 am
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.

Posted: Fri May 03, 2002 1:36 pm
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...

Posted: Fri May 03, 2002 3:04 pm
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

Uh...

Posted: Fri May 03, 2002 3:49 pm
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.

Posted: Fri May 03, 2002 4:42 pm
by jason
Yes, I do realize what you really meant =)

The difference between the quotes, and what not. I wonder....

Posted: Fri May 03, 2002 9:15 pm
by jason
Currently working on this..think I found the spot.

So many of our projects...

Posted: Fri May 03, 2002 11:02 pm
by Brian
So many of our projects start with "I wonder if" or "I wonder how". :)