I'm trying to insert a news feed into my site from an external site. The code for the feed is a java script. I've tried to create a custom html module and add it that way but it won't work? The script doesn't appear at all when i do it that way. Any suggestions on how I can add script to my page? My site is at: www.checkraise.com.au Any suggestions would be appreciated.
Hi, in order to insert javascript into a module you can use a plugin/module called Jumi. http://extensions.joomla.org/extensions/edition/custom-code-in-content/1023 Once you install this you can add javascript just about anywhere. There are a couple ways to use it, both are very simple. The way I use most is create an html file with your javascript code in it. Save the file in your includes directory (or wherever you want) then it gets called with a small string (this method uses the plugin and works great for adding javascript items to content like articles). The jumi module lets you add code directly into the module parameters, then publish it wherever you like just like any other joomla module. Instead of creating a new custom module you create a new jumi module to do this. Wayne.
If you want to insert javascript and not have to install an external plugin : Log in as super administrator Create a new user that has the level of super administrator On the same page that you create the new user, choose "editor - no editor" for the new user Log out Log in as the new user you just created Insert the javascript in an html module Log out Enjoy
Thanks Palladium and BlueStar. Good news, I went in and disabled my editor. Then pasted the sciprt in as per usual and it worked! Bad news, now it won't load the site. Gives an "Operation Aborted" message when you try to load the page.
I am assuming when you say : "my editor" you are talking about the one you have been using and did not create a new editor. If I remember right, that is not good enough. It must be a new user and that new user must have super administrator privileges and have "editor - no editor" chosen under their user profile.
I've got a new editor installed (JCE). I went in with super admin rights, changed my editor to "editor-no editor" and it allowed me to add the script in a custom html module. Now the script is just causing the page not to load properly. So it's another problem altogether I'm assuming and I'm not sure why it's doing it
Try this module, it works great: http://extensions.joomla.org/extensions/edition/custom-code-in-modules/5435
If taking the script out makes the site work fine again, you are fairly sure what the problem is. If the same problem happens when you re-install, then you are 100% sure that the script is having a problem or is interacting with other scripts in a way you do not want it to.