The Attack of the Evil Smileys in SGF URL tags

The machines we love to hate

Moderator: Wiz Feinberg

User avatar
Wiz Feinberg
Posts: 6113
Joined: 8 Jan 1999 1:01 am
Location: Mid-Michigan, USA

The Attack of the Evil Smileys in SGF URL tags

Post by Wiz Feinberg »

Prologue

Today, and not for the first time, I was replying to a topic with a pasted URL to a search results page and when I posted my reply and viewed the results I discovered that a red smiley had replaced a colon in the URL and the link was aslo broken. I had forgotten to disable smileys in my reply. Doh!

Revelation

Under the textarea there is a checkbox labeled "Disable Smilies (sic) in This Post." I checked it and resubmitted, but found that the URL was not converted into a link because it contained a couple of = signs. Evidently, the UBB's concealed URL tags can only have one equal sign, and that is right after the opening url statement, like this - [ URL= ]anchor text[/URL]. I didn't want to paste the loooooong url into my reply and cause horizontal scrolling, which is why I used an embedded url tag.

Solution

I found that my best bet was to use an HTML hyperlink tag instead of the UBB tag. I hand coded the tag and posted it, only to find that damned Smiley was back! The Board had forgotten my choice to disable smileys! Unfortunately, the forum software does not set a cookie to remember our posting options for disabling smileys (hint hint b0b) and always turns them back on after each submission. I'd rather have to enable smileys in each post or reply, but that's just my preference.

Epilogue

If you are going to copy and paste a URL into a forum topic or reply and it contains any characters that cound be converted into a smiley, or contains equal signs, use the HTML hyperlink tags and DISABLE SMILEYS, before you submit. If you get it wrong and have to edit your post don't forget to re-check the box to Disable dad-gum smileys! I hate those things!

------------------
Bob "Wiz" Feinberg
Moderator of the SGF Computers Forum
<small>Visit my Wiztunes Steel Guitar website at: http://www.wiztunes.com/
or my computer troubleshooting website: Wizcrafts Computer Services,
or my Webmaster Services webpage.
Learn about current computer virus and security threats here.
Read Wiz's Blog for security news and update notices</small>

<font size="1" color="#8e236b"><p align="center">[This message was edited by Wiz Feinberg on 31 July 2006 at 11:57 AM.]</p></FONT>
User avatar
b0b
Posts: 29079
Joined: 4 Aug 1998 11:00 pm
Location: Cloverdale, CA, USA

Post by b0b »

Okay, here's a link with two equals signs: http://steelguitarforum.com/cgi-bin/search.cgi?action=intro&default=12&foo=foo

and here it is embedded with the URL tag.

I don't know what URLs could trigger smileys, as a colon is invariably followed by // in a URL.

------------------
<img align=left src="http://b0b.com/b0bxicon.gif" border="0"><small> Bobby Lee</small>
-b0b- <small> quasar@b0b.com </small>
System Administrator <span style="text-align: right; font-size: 0.75em; font-variant: small-caps">
My Blog</span>
User avatar
Wiz Feinberg
Posts: 6113
Joined: 8 Jan 1999 1:01 am
Location: Mid-Michigan, USA

Post by Wiz Feinberg »

Here is the link b0b:
http://www.google.com/search?q=anti+spyware+mac+os &start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official

Same link concealed

Hmmm. It seems to be ok now as an embedded URL. I just have to remember to kill the smileys when posting URLs.

I was wrong about multiple equals signs in URLs. The smiley was destroying the links.

Wiz<font size="1" color="#8e236b"><p align="center">[This message was edited by Wiz Feinberg on 31 July 2006 at 12:11 PM.]</p></FONT>
User avatar
Wiz Feinberg
Posts: 6113
Joined: 8 Jan 1999 1:01 am
Location: Mid-Michigan, USA

Post by Wiz Feinberg »

Here is the same link, but with smileys allowed:

http://steelguitarforum.com/redface.gif[/img]fficial]Google Anti-Spyware For Mac OS

Allowing smileys in a URL may break the link completely, as in this case.

Wiz<font size="1" color="#8e236b"><p align="center">[This message was edited by Wiz Feinberg on 31 July 2006 at 12:09 PM.]</p></FONT>
Jeff Agnew
Posts: 741
Joined: 18 Sep 1998 12:01 am
Location: Dallas, TX

Post by Jeff Agnew »

You could also use TinyURL.com to convert the link. Much shorter and you don't have to worry about any non-alpha characters.

Your evil link translates to: http://tinyurl.com/f4pt4
User avatar
b0b
Posts: 29079
Joined: 4 Aug 1998 11:00 pm
Location: Cloverdale, CA, USA

Post by b0b »

Wiz,

It would probably be better to remove your personal client encoding information from the end of the link, instead of disabling smileys. You can remove everything after &start=0 without affecting the search results.

------------------
<img align=left src="http://b0b.com/b0bxicon.gif" border="0"><small> Bobby Lee</small>
-b0b- <small> quasar@b0b.com </small>
System Administrator <span style="text-align: right; font-size: 0.75em; font-variant: small-caps">
My Blog</span>