Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter
Support for Vanilla Forums Cloud product

In this Discussion

Follow Us


IE8 Embed widget links do not work.

edited December 2011 in Questions

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.