Welcome Guest Search | Active Topics | Members | Log In | Register

Smilie-codes interfere with URLs
Neven Offline
#1 Posted : Thursday, December 22, 2005 7:48:15 PM(UTC)


Rank: YAF MVP

Joined: 11/25/2004(UTC)
Posts: 506
Location: Zagreb, Croatia

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Check this post out: http://www.rollingbluethunder.com/Nu/Default.aspx?tabid=190&g=posts&m=2&#2

It should render like this:

Quote:
bold italics underlined
  • List item
    - image
    http://www.rollingblueth.../Default.aspx?tabid=190 - link (Auto)
    http://www.rollingbluethunder.c...u/Default.aspx?tabid=190 (using URL tag)

    the text is aligned


  • However - the smilie code :/ for gets to be encoded to HTML before the rest of BBCode. This produces a broken image (Quote:
    <img src="http<img src="/nu/DesktopModules/YetAnotherForumDotNet/images/emoticons/gear_diagonal.gif" alt="Hrm">/www.rollingbluethunder.com/Nu/Portals/0/BBWbanner.gif"/>
    The same goes for the urls of links - they contain the smiley image and are not rendered as links...
    Quote:
    http[img]http://www.rollingbluethunder.com/nu/DesktopModules/YetAnotherForumDotNet/images/emoticons/gear_diagonal.gif" alt=""/>/www.rollingbluethunder.com/Nu/Default.aspx?tabid=190

    Quite a mess, huh?Sad
    ... But trust me on the sunscreen!

    test2005 wrote:
    There not bugs(in YAF)...it's either un-defined features or exceptions to expected behavior!!
    Jaben Offline
    #2 Posted : Saturday, February 04, 2006 7:15:46 PM(UTC)

    Rank: YAF Head Dude

    Medals: Medal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.Medal of Honor for the Support King: Given to a community member who tirelessly answers tons of support questions.

    Joined: 10/9/2004(UTC)
    Posts: 4,152
    Location: Raleigh, NC

    Thanks: 35 times
    Was thanked: 94 time(s) in 49 post(s)
    Neven wrote:
    Check this post out: http://www.rollingbluethunder.com/Nu/Default.aspx?tabid=190&g=posts&m=2&#2

    It should render like this:

    Quote:
    bold italics underlined
  • List item
    - image
    http://www.rollingblueth.../Default.aspx?tabid=190 - link (Auto)
    http://www.rollingbluethunder.c...u/Default.aspx?tabid=190 (using URL tag)

    the text is aligned


  • However - the smilie code :/ for gets to be encoded to HTML before the rest of BBCode. This produces a broken image (Quote:
    <img src="http<img src="/nu/DesktopModules/YetAnotherForumDotNet/images/emoticons/gear_diagonal.gif" alt="Hrm">/www.rollingbluethunder.com/Nu/Portals/0/BBWbanner.gif"/>
    The same goes for the urls of links - they contain the smiley image and are not rendered as links...
    Quote:
    http[img]http://www.rollingbluethunder.com/nu/DesktopModules/YetAnotherForumDotNet/images/emoticons/gear_diagonal.gif" alt=""/>/www.rollingbluethunder.com/Nu/Default.aspx?tabid=190

    Quite a mess, huh?Sad


    Everything is a trade-off with this code. I've tried everything -- there appears to be no perfect way. The best idea is to not have smiles code that mimics URLs in any way.

    I'll put it this way: it's much easy for the admin to control the smiles then it is to control what users put in their URLs... It's just a trade-off.
    "I have a simple philosophy: Fill what's empty. Empty what's full. Scratch where it itches.”.

    Neven Offline
    #3 Posted : Sunday, February 12, 2006 11:00:18 PM(UTC)


    Rank: YAF MVP

    Joined: 11/25/2004(UTC)
    Posts: 506
    Location: Zagreb, Croatia

    Thanks: 0 times
    Was thanked: 0 time(s) in 0 post(s)
    Hey Jaben!
    I am sorry to report yet another instance of the bug.
    see the post: http://forum.yetanotherforum.net/default.aspx?g=posts&m=7706 and below.
    View source; search for "arkred", and you will see this:
    Quote:
    ...
    <td valign="top" class="message">
    <b>Got some problems installing the forum. I have placed it in a under /forum/ and the bin under /bin/. the following have been added to web.config:</b> <br/><br/><span style="color<img src="/images/emoticons/icon_biggrin.gif" alt="Very Happy">arkred">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br/>
    ...

    Again - A smilie ":D" (colon D) interferes with "color:darkred" css property in SPAN....
    Perhaps the easiest way is not to use css colornames in yafeditor, but their Hex RGB codes instead, or just ad a space after colon...
    Colon is used in other smilies that might interfere with colors :silver :Darkred Surprisedlive
    ... But trust me on the sunscreen!

    test2005 wrote:
    There not bugs(in YAF)...it's either un-defined features or exceptions to expected behavior!!
    Users browsing this topic
    Guest
    Forum Jump  
    You cannot post new topics in this forum.
    You cannot reply to topics in this forum.
    You cannot delete your posts in this forum.
    You cannot edit your posts in this forum.
    You cannot create polls in this forum.
    You cannot vote in polls in this forum.

    YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
    Powered by YAF 1.9.4 RC4 | YAF © 2003-2010, Yet Another Forum.NET
    This page was generated in 0.144 seconds.