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.
Embedded forum + Emotify plugin does not work
When embedding a vanilla forum with Emotify plugin enabled and clicking on ~ 'show emoticons' button, nothing happens but the following error in /js/embed_local.js: href is undefined
line 134:
Emoticons show up when not embedding.
Please check.
line 134:
var href = $(this).attr('href'),
isHttp = href.substr(0, 7) == 'http://' || href.substr(0,8) == 'https://',
isEmbeddedComments = pagePath.substring(0, 24) == 'vanilla/discussion/embed',
noTop = $(this).hasClass('SignOut');
Emoticons show up when not embedding.
Please check.
Tagged:
0
Best Answer
-
whu606 MVPCsabbencs
Thank you so much for your quick response and your help.
It is now working.
Thanks again.0
Answers
if(typeof(href) !== 'undefined' && href != null) { ... }
If yes, the whole part of
$('a').live('click', function() { ... }
is skipped without error and emoticons work.I have the same error.
I tried to do what you suggested, by copying the line into the embed_local.js file, but I must have done something wrong, as it hasn't helped.
Where, exactly should the line go, and what exactly should I paste?
Thanks.
$('a').live('click', function() { if(typeof(href) !== 'undefined' && href != null) { ... } });
Use Chrome's console or Firefox's Firebug plugin to see if there's an error with javascript, ie. you may have forgot some curly brackets.
Thank you so much for your quick response and your help.
It is now working.
Thanks again.
Unfortunately, whilst the drop-down smiley box works, the code seems to cause an error in parsing some variables.
So, for example, it prevents the page from scrolling to the top or the bottom.
I'm not expecting you to work to solve this, but if you had a brilliant idea that would be great!
I'll wait for that.