embed.js is not loading forums

infoarmyinfoarmy Member
edited May 2012 in Questions
Hi,

I'm trying to use Embed forum method to embed vanilla forum. Following is the javascript code that I used to show vanilla forums.



/*** Required Settings: Edit BEFORE pasting into your web page ***/

var vanilla_forum_url = 'http://infoarmy.vanillaforums.com'; // The full http url & path to your vanilla forum
var vanilla_identifier = '940788342'; // Your unique identifier for the content being commented on
var vanilla_sso = <%=vanilla_sso %>; // Your SSO string.

/*** DON'T EDIT BELOW THIS LINE ***/

(function() {
var vanilla = document.createElement('script');
vanilla.type = 'text/javascript';
var timestamp = new Date().getTime();
vanilla.src = vanilla_forum_url + '/js/embed.js';

(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(vanilla);
})();



It downloads embed.js and embed.css but it's not displaying any forums data. Authentication URL is not also called.

It appends

http://infoarmy.vanillaforums.com/js/embed.js">
//js content

http://infoarmy.vanillaforums.com/applications/dashboard/design/embed.css">

regards
Infoarmy

Comments

  • ToddTodd Staff
    Looking at your forum now I see the error. You don't have your SSO string in quotes and it's causing a javascript error. Change:
    var vanilla_sso = <%=vanilla_sso %>; // Your SSO string.
    to
    var vanilla_sso = '<%=vanilla_sso %>'; // Your SSO string.
    Notice the single quotes.
  • Hi,

    I have added quotes. I am seeing blank screen.

    Infoarmy
  • I am seeing myusername and photo on login screen. But still its expecting our users to enter username and password.

    Is it not possible to remove login screen and directly login when user form our site clicks http://infoarmy.vanillaforums.com?

    And on clicking myname, it says Signature invalid. I am using your client jsConnect.java to construct json reply. I sent my reply to you through message.

    Is it possible for me to directly login into vanilla forums?
This discussion has been closed.