I think that the smilies without an ending : should be substituted last so that one use () without resulting in () (Without HTML)
Announcement
Collapse
No announcement yet.
MarkG: Can you change the order in which smilies are substituted?
Collapse
X
-
Tags: None
-
uses spaces....Co-Founder, Apolyton Civilization Site
Co-Owner/Webmaster, Top40-Charts.com | CTO, Apogee Information Systems
giannopoulos.info: my non-mobile non-photo news & articles blog
-
But there must be a setting in what order they are processed.
There must be some thing like this in the processing:
Repeat for each smile: Replace smilie code with Image
As it is now the non terminated smilies must be first in that list., and the replacement will be for a string like this:
[COLOR="{qcolor}"](Text :rolleyes:);) :rolleyes:[/COLOR]
will first change to
[COLOR="{qcolor}"](Text :rolleyes;) :rolleyes:[/COLOR]
then to
[COLOR="{qcolor}"](Text :rolleyes :rolleyes:[/COLOR]
after that to
[COLOR="{qcolor}"](Text :rolleyes [/COLOR]
and then no more.
With a changed order it would first be
[COLOR="{qcolor}"](Text );) [/COLOR]
and after that
[COLOR="{qcolor}"](Text ) [/COLOR]
as the string was meant to be.
This should also allowed the
:pban: and the :): codes to work correct.Creator of the Civ3MultiTool
Comment
-
Let's see...MarkG fixes one user's pet peeve every day. Thirty years from now, he'd almost be done.12-17-10 Mohamed Bouazizi NEVER FORGET
Stadtluft Macht Frei
Killing it is the new killing it
Ultima Ratio Regum
Comment
-
I think it is the order they were added that is the order they are replaced, so if added the short one first you should be able to reverse the loop (start with the last in the list).
Otherwise you could delete the short and add them again every time you add a new smile.Creator of the Civ3MultiTool
Comment
-
:holeintheforum:?
:singularity:?
:thisspaceintentionallyleftblank:?This is Shireroth, and Giant Squid will brutally murder me if I ever remove this link from my signature | In the end it won't be love that saves us, it will be mathematics | So many people have this concept of God the Avenger. I see God as the ultimate sense of humor -- SlowwHand
Comment
Comment