Adding codes in a block.

Before I start this  topic , I really searched the forum and I couldn't find any topic related to this issue.

My question is that how can I add a block of code to a column on my homepage.

I want to add the following script  which will work like google adwords and calls up the ads from third party.

This is to generate income for my site. I tried to add a HTML block but it didn't work.

Here is the code:

<script type="text/javascript">
//interstitial ad
xxxwebtraffic_enable_inter = true;
xxxwebtraffic_maxad = -1;     
xxxwebtraffic_hourcap = -1;
xxxwebtraffic_showcap = 2;
//Ad connect widget
xxxwebtraffic_adhere_opt = 'left:50%';
xxxwebtraffic_layer_banner = false;
//default pop-under house ad url
xxxwebtraffic_enable_pop = true;
xxxwebtraffic_frequencyCap = -1;
xxxwebtraffic_durl = '';
xxxwebtraffic_enable_layer_pop = false;
xxxwebtraffic_mobile_redirect = false;
xxxwebtraffic_max_dim = "0x0";
//default banner house ad url
xxxwebtraffic_default_url = '';
xxxwebtraffic_banner_border = '';
xxxwebtraffic_banner_ad_bg = '#FFFFFF';
xxxwebtraffic_banner_link_color = '#000000';
xxxwebtraffic_banner_text_color = '#000000';
xxxwebtraffic_banner_text_banner = true;
xxxwebtraffic_banner_image_banner = true;
xxxwebtraffic_post_click_url = '';
</script>
<script type="text/javascript" src="http://serving.xxxwebtraffic.com/show.php?nid=3&amp;pid=15543&amp;adtype=2&amp;sid=15772"></script>

 

Thanks in advance


                                                   

Quote · 14 Jun 2015

An HTML block will work.  You have to turn off the TinyMCE editor so it won't strip out any code.  If you want to use PHP, you could use heredoc.

Geeks, making the world a better place
Quote · 14 Jun 2015

Oops, you are right. I forgot to turn it off.

Thanks geek-girl , I thought I am loosing my mind .... Laughing

 

Quote · 14 Jun 2015
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.