Jump to content

How to remove WidgetFactory Error Message?


bryan choo

Recommended Posts

Hey guys,

 

I've been wanting to embed the widget in some of my articles so it can easily link back to the individual review pages with a nice listing badge. But i am using tinyMCE and it strips the <script> tags for safety reasons.

 

So what was suggested was to insert the script into the code before the closing body tag.  

 

<script>(function(d,o,j,w,m){w=d.createElement(o),m=d.getElementsByTagName(o)[0];

w.async=1;w.src=j;m.parentNode.insertBefore(w,m)

})(document,'script','//localhost/components/com_jreviews_addons/widgetfactory/views/js/widget.loader.min.js');</script>

 

But when I do that, it will say at the top.

 

"Please check the widget code and install again"

 

It's quite strange because that message ends up replacing my facebook Like button and also stopping my jomsocial notification alerts from working. But the widet displays fine. I just want to get rid of the error message from hijacking the facebook like button etc. Any suggestions?

 

Before script is inserted

 

 

index.php?action=dlattach;topic=25175.0;attach=7337

 

After script is inserted

 

index.php?action=dlattach;topic=25175.0;attach=7339

post-10177-14242990442674_thumb.png

post-10177-14242990442848_thumb.png

Link to comment
×
×
  • Create New...