Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inserting HTML code into Joomla 1.6
08-08-2011, 11:26 AM
Post: #1
Inserting HTML code into Joomla 1.6
Inserting custom HTML in Joomla 1.6, 1.7, ... and creating custom HTML modules, without having <HTML> tags stripped out by the editor.

When creating a custom HTML module in Joomla 1.6 (and newer Joomla versions), most of the HTML tags are stripped out, especially when you try to insert pieces of javascript (ex. Google Analytics code).

The most common issue, when trying to insert Google AdSense or Google Analytics -code into a custom Joomla module. After saving, most of the code is stripped out.
There are workarounds and custom modules ( http://extensions.joomla.org/ ), you can also edit the module content via phpMyAdmin, however, this is a painful process if you ever need to modify your custom HTML module.

To stop HTML editors (even NO editor) from striping your embedded <HTML>, follow these instructions:

In Joomla admin, go to Article Manager

Article Manager >>Options >> Text Filters -> Super Users (assuming that you are editing as Super User) and select "No Filtering"

I love video chat!
Find all posts by this user
Quote this message in a reply
08-08-2011, 11:29 AM
Post: #2
RE: Inserting HTML code into Joomla 1.6
*after saving the "Options", you are able to insert your HTML code, including javascript. This also applies to the RVC, SVC embed code below:
PHP Code:
<div id="center" style="text-align: center; width: 100%; height: 100%;">
<
div id="JabberCam_div" style="position: relative; overflow: hidden; width: 670; height: 488;">
<
object id="JabberCam" width="670" height="488">
<
param name="movie" value="http://www.jabbercam.com/JabberCam.swf" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"/>
<
param name="quality" value="high" />
<
param name="bgcolor" value="#3B5997" />
<
param name="scale" value="noscale" />
<
param name="allowFullScreen" value="true" />
<
param name="allowscriptaccess" value="always" />
<
param name="base" value="http://www.jabbercam.com/" />
<
param name="wmode" value="transparent" />
<
embed name="JabberCam" src="http://www.jabbercam.com/JabberCam.swf" loop="false" quality="high" play="true" bgcolor="#3B5997" width="670" height="488" align="middle" scale="noscale" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" base="http://www.jabbercam.com/" allowscriptaccess="always" allowfullscreen="true"></embed>
</
object>
</
div>
</
div

I love video chat!
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)