Welcome Guest Search | Active Topics | Log In | Register

Smilie-codes interfere with URLs Options · View
Neven
#1 Posted : Friday, December 23, 2005 12:48:15 PM

Rank: YAF MVP



Joined: 11/26/2004
Posts: 509
Location: Zagreb, Croatia
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 () with source:
    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/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
    #2 Posted : Sunday, February 05, 2006 12:15:46 PM

    Rank: YAF Head Dude



    Joined: 10/10/2004
    Posts: 3,050
    Location: Honolulu, HI
    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 () with source:
    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/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.
    "When you are grateful, fear disappears and abundance appears”."

    Neven
    #3 Posted : Monday, February 13, 2006 4:00:18 PM

    Rank: YAF MVP



    Joined: 11/26/2004
    Posts: 509
    Location: Zagreb, Croatia
    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.3 RC2 | YAF © 2003-2008, Yet Another Forum.NET
    This page was generated in 0.103 seconds.

    SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET