PDA

View Full Version : Replacement Variables - Bug or Designed Behaviour?



WebStyles
Fri 5th May '00, 3:05pm
I wasn't aware that the replacement variables worked in posts... Is how they are supposed to work? I was under the impression that those were only for use in templates, but it seems as though every post is parsed, and variables replaced. One of my moderators pointed out that he couldn't post text in different colors. I took a look at the source and see this:

<FONT face="verdana, arial" size="2" color="#c0c0c0" color="#FF9966"><b>TIP: The Fifth Frame</b></font>

This is what you see if you edit his post:

<font color="#FF9966"><b>TIP: The Fifth Frame</b></font>

We have a <font> replacement variable (it's a default, I believe) that gets replaced with <FONT face="verdana, arial" size="2" color="#c0c0c0">.

Here's the thread in question... (http://www.were-here.com/forums/showthread.php?threadid=12333), Barn is the moderator having a problem.

In my opinion, replacement variables should only be parsed in templates, I can only imagine that parsing every post is a big drag on performance, not to mention a little hazardous! :)

[Edited by WebStyles on 05-05-2000 at 11:08 PM]

John
Fri 5th May '00, 10:12pm
It is the WHOLE page that gets parsed once it has all been generated. This saves on having to parse multiple templates - just do it once and for all. The replacements are case sensitive however, so your moderator could use <FONT color="#whatever"> instead.

John

werehere
Sat 6th May '00, 5:03am
Maybe have that one be <normalfont> or something, like the smallfont tag is, so people can use the normal font tag again?

John
Sat 6th May '00, 10:21pm
Could do that, although that would mean that almost all the templates would need to be redone. This is not a problem for me, but could be difficult for those who have edited their templates.

Actually, on second thoughts, this could be easily done automatically in an upgrade. I'll look into doing this.

John

werehere
Sun 7th May '00, 3:40am
Thank you john, that would be a big plus:)