1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Http:// being replaced with smilie in signature URL ?

Discussion in 'Troubleshooting and Problems' started by ProCom, Nov 25, 2013.

  1. ProCom

    ProCom Active Member

    I just noticed that the :/ in http:// is being replaced with our "side" smiley:


    It seems to only be happening in signatures. Any ideas how to fix this?
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    Does it happen if you disable add-ons?
  3. Martok

    Martok Well-Known Member

    Isn't this expected behaviour?

    When parsing the text and bbcode it sees :/ and as you have a smiley created using this code, it displays the smiley when in a URL.

    I had the same issue a while back and so just changed the smiley code.
  4. Mike

    Mike XenForo Developer Staff Member

    Yes, that would be expected with :/ if the URL isn't linked (so it's just regular text).
  5. ProCom

    ProCom Active Member

    Great discussion, thanks guys!

    In regular messages / posts a url typed out is automatically hyperlinked, but I guess it isn't in signatures? Shouldn't the behavior be the same in signatures as in messages and conversations?
  6. Mike

    Mike XenForo Developer Staff Member

    Auto-linking should work the same in signatures provided you allow users to insert links in them. I'd check the permissions surrounding this.
  7. ProCom

    ProCom Active Member

    Now I'm super confused!

    When I go into his admin CP to edit his signature I see this:
    As Admin do I not get the RTE for editing signatures like the user would?

    Also, even with bbcode, shouldn't entering a URL like the above still create a hyperlink? I double checked permissions and this user is in the "Registered" user group and "Allow links" in signature is set to "Allow".
  8. Mike

    Mike XenForo Developer Staff Member

    No - for admins, signatures are exactly what you enter is exactly what you get.

    What's the maximum number of links the user is allowed to enter? I'd guess it's 0, which effectively disables links as well.
  9. ProCom

    ProCom Active Member

    Interesting! I do have links limited to 1 (one) link, and it looks like this user has two. I just assumed that when a user tries to submit more than one they get an error... so now I have the following question:

    Say I have the group set to 1 link allowed.

    The user puts in two links in their signatures:


    In that case, what will happen? Will only one link be parsed as a URL and the other as text... which would cause the other to be parsed as text and then result in the smiley replacement?
  10. Mike

    Mike XenForo Developer Staff Member

    If you allow links, it should error if they have too many. (If you allow none, they will be silently removed.)

    I assume this user must have unlinked the second one explicitly (and prevented the auto-link that does happen after submission).
  11. ProCom

    ProCom Active Member

    Thanks Mike.

    I'm unable to fully test this for the user since my interface as admin editing their profile is different from what they see. For example, I have it set to one URL and when I'm editing it as Admin I don't get any errors or anything. What will be the behavior for me as admin if I enter 2 links and only one is allowed for the usergroup they are in?

    Some additional background: This user's signature was converted over from another platform and they haven't logged in since, which is how 2 URLs got in there. When I go in to edit it, I don't get the same behavior that the user would.
  12. Mike

    Mike XenForo Developer Staff Member

    As an admin editing a user's signature, you avoid any limits that are applied to them.

    The signature is simply brought over as it was then. It wouldn't have been linked when imported.

Share This Page