Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
  1.  # 1
    iambigred, I got your great extension up and running, but am having a problem when inserting HTML into the announcement.

    I want to use this extension to plug one of my advertisers each month. So I inserted this as the Announcement Message:

    <b>Gold Sponsor Alert:</b> <a href="http://www.fhedvd.com/" target="_blank">FHE on DVD: Famiy Home Easy</a>

    The link LOOKS fine, but it actually directs the browser to:

    http://www.mormonmomma.com/board/"http://www.fhedvd.com/"

    So the link points BACK to my board and then appends the real link?

    Any ideas?
    • CommentAuthorcre8d
    • CommentTimeJul 17th 2006
     # 2
    Have you got another extension running which automatically changes URLs into links? Maybe it's conflicting?
    •  
      CommentAuthoriambigred
    • CommentTimeJul 17th 2006
     # 3
    Yeah I know about that, somewhere it's parsing out the quotation marks breaking the link/image/html that you're inserting. It's 4:15am right now and I'm pretty tired, but I'll check back in the morning and see if I can fix it.

    :)
  2.  # 4
    Thanks! Look forward to hearing what you work out.
  3.  # 5
    Any progress on this fix, iambigred?
    • CommentAuthorbigshow
    • CommentTimeJul 19th 2006 edited
     # 6
    I made the huge mistake of trying to put a <BR> tag in my announcement. The whole forum died. You have to hack out the text from the conf/settings.php file to fix it! Is there any scope for including some basic sanity check that disallows stuff that causes carnage?
  4.  # 7
    I had a similar problem trying to include an image link. Whoa, momma. But, hey, I'm learning to correct PHP devastation--something I never even wanted to do! When I include a single line, I'm OK, but the links do now work yet.
  5.  # 8
    I'm gonna have to pull this extension until the links work. Please let us know when the are functinoal. I would really like this feature!
    • CommentAuthorkadams54
    • CommentTimeSep 3rd 2006 edited
     # 9
    iambigred,

    If it helps any, I tracked down the culprit. The ConfigurationManager->GetSetting() function replaces all quotes with the HTML entity for double quotes (Framework.Class.ConfigurationManager.php, line 42):


    return str_replace('"', '&quot;', $this->Settings[$SettingName]);


    That's the function the announcement extension is calling to get the announcement message out (default.php, line 44):


    $text = $this->ConfigurationManager->GetSetting('ANNOUNCE_MESSAGE', true);


    An aside: the announcment extension passes two parameters into GetSetting, but it only appears to take one.

    So that's the culprit. Unfortunately I don't know enough about Vanilla to provide a solution. Right now I may just grit my teeth and go with invalid html (e.g. no quotes).
Add your comments
    Username Password
  • Format comments as