1
martyboy
Custom block error when inserting ad code
  • 2006/1/19 18:20

  • martyboy

  • Quite a regular

  • Posts: 256

  • Since: 2004/5/25


Hi,

I seem to have encountered a problem I havent encountered before, I was trying to insert some ad code(from oxado.com) into a custom block to display ads on my site but when I click on submit it shows a blank white page except for Quote: and underneath that it just shows information about my browser and ip adress.

I had set the custom block to HTML, tried it with and without cache and i have deleted and regenerated the custom_block_dummy.html template incase that was the prob but it seems any custom block with
<script /script>
javascript code like googe adsense, etc won't work. I have had google ads in custom blocks before and no problems.

I have also turned on all the debug options but nothing seems to come up.

Does any one have any idea what might be happening? could this be some server issue rather than xoops?

I am on XOOPS 2.0.13.2 server is apache, MySQL 4 something and php 4 something.

Thanks for your help
Michael Jackson = King Of Pop

Xoops = King Of CMS

2
guardian2k1
Re: Custom block error when inserting ad code

We had a similar problem with our site. In the end wrapping the script in
tags seemed to work. Might want to give that a try.
"Linux is extremely user-friendly. It also happens to be extremely selective when picking its friends."

http://www.nuxified.com | http://debcentral.org

3
martyboy
Re: Custom block error when inserting ad code
  • 2006/1/19 20:47

  • martyboy

  • Quite a regular

  • Posts: 256

  • Since: 2004/5/25


Wrapping the script in
tags didnt work, I also got pretty worried when I found i was getting the same error when trying to add the ad code into templates, looked like it wasnt going to allow me to add javascript anywhere! But I found a solution so I will post it here for anyone who might encounter similar problems.

Turns out my host(surpass hosting) had something running on apache called mod_sec(i think thats right) presumabley it was some security thing, on doing some searching of surmunity I found that by adding the following lines to my .htaccess solved the problem
SecFilterEngine Off
SecFilterScanPOST Off


I can now have ads on my site again.
Michael Jackson = King Of Pop

Xoops = King Of CMS

4
guardian2k1
Re: Custom block error when inserting ad code

Glad you resolved the problem. It's also something I'll have to make a note of later. I'm not sure why your host will be filtering scripts though.
"Linux is extremely user-friendly. It also happens to be extremely selective when picking its friends."

http://www.nuxified.com | http://debcentral.org

Login

Who's Online

305 user(s) are online (240 user(s) are browsing Support Forums)


Members: 0


Guests: 305


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits