Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

IE8 Embed widget links do not work.

edited December 2011 in Vanilla 2.0 - 2.8

Sidebar widget lists the discussion links but when I click on them iframe displays general discussions list.
Only IE has this problem and it generates an error.

        Line: 146
        Character: 10
        Code: 0
        Error Message: 'gadgets.window' is null or not an object
        URL: http://bjk-tribun.com/forum/plugins/embedvanilla/remote.js

corresponding function in remote.js is this;

document.getElementById('vanilla'+id).style['height'] = height + "px";
      if (window.gadgets)
         gadgets.window.adjustHeight();
   }

Anybody has a solution for this?

my forum link is bjk-tribun.com

Answers

  • edited December 2011

    OK apparently I was looking at the solution in the wrong place. It has nothing to do with remote.js

    the problem was, the discussion links in the embedded iframe was something like

    domain.com/forum/discussion/3/discussion-name
    and the same links in the embed widget was

    domain.com/page-slug#/discussion/3/discussion-name

    the addition of the wordpress page-slug in the sidebar link was causing trouble in IE8
    so I opened functions.php file under wordpress vanilla plugin directory and deleted

    `$post = get_post($post_id);` on line 295 that adds the page-slug to the url.
    

    Seems like everything is working fine in IE and other browsers so far.

Sign In or Register to comment.