0
Welcome Guest! Login
0 items Join Now

Google ADsense

  • Google ADsense

    Posted 18 years 4 months ago
    • Hi,

      I was wondering if anyone here is running google adsense on their site(s) and how they get the adsense code to be displayed? When I tryied to use the 'new" module button under site modules parts of the code would get stripped by JCE. I considered turning off JCE temporarially but figured it couold get broken again if the module was viewed with JCE on in the admin. So I made a custom module with PHP to display the adsense ads. I was wondering if anyone had a different way to do the same thing?

      Thanks,
      Mike
    • www.jikometrix.net
      JIKOmetrix - Reliable web hosting
  • Re: Google ADsense

    Posted 18 years 4 months ago
  • Re: Google ADsense

    Posted 18 years 4 months ago
    • Hi,

      Thanks. I guess when I was looking for such a beast, I was looking in the wrong area. Thats what I was looking for.

      Mike
    • www.jikometrix.net
      JIKOmetrix - Reliable web hosting
    • Franck's Avatar
    • Franck
    • Elite Rocketeer
    • Posts: 1049
    • Thanks: 0

    Re: Google ADsense

    Posted 18 years 4 months ago
    • Hi! You can use this mod too to display adsense with images. It's a very good solution too.
  • Re: Google ADsense

    Posted 18 years 4 months ago
    • Franck wrote:
      Hi! You can use this mod too to display adsense with images. It's a very good solution too.

      Thanks, I'll check it out.

      Mike
    • www.jikometrix.net
      JIKOmetrix - Reliable web hosting
  • Re: Google ADsense

    Posted 18 years 4 months ago
    • This is a really annoying thing about editors I think, they strip out loads of html tags that could be a little dangerous - like javascript. Obviously they're totally right to do it and I'm glad they do but it sure is annoying!

      Here's a little tip you can do if you're the only person that administers your site (i.e. if others can write content for your site don't do this as it will allow them to insert bad code!)

      For JCE, if you go to the configuration page for the JCE mambot and add
      *[*]

      in to the "Extended Elements" field it won't strip out things such as form tags etc. You can also add just
      form[action|method],input[type|name|value|src]

      to only allow forms - a little more secure but I use the first one as no body else is on my site :)

      Tom.
  • Re: Google ADsense

    Posted 18 years 4 months ago
    • Thomas Thorns wrote:
      This is a really annoying thing about editors I think, they strip out loads of html tags that could be a little dangerous - like javascript. Obviously they're totally right to do it and I'm glad they do but it sure is annoying!

      Here's a little tip you can do if you're the only person that administers your site (i.e. if others can write content for your site don't do this as it will allow them to insert bad code!)

      For JCE, if you go to the configuration page for the JCE mambot and add
      *[*]

      in to the "Extended Elements" field it won't strip out things such as form tags etc. You can also add just
      form[action|method],input[type|name|value|src]

      to only allow forms - a little more secure but I use the first one as no body else is on my site :)

      Tom.

      Thanks for the tip. I am the only admin so I may look into this too for other things I'm doing.

      Thanks,
      Mike
    • www.jikometrix.net
      JIKOmetrix - Reliable web hosting
    • Kim Dushinski's Avatar

    Re: Google ADsense

    Posted 18 years 4 months ago
    • This is exactly what I was looking for. Thanks for recommending it.

      Worked like a charm!
  • Re: Google ADsense

    Posted 18 years 4 months ago
    • My template uses TinyMCE and I turned off the Code Cleanup in order to get a subscription form to work. But isn't this dangerous?
      Does Code Cleanup only apply to Admin?
      Should I convert to JCE?
      Thanks for the help!
      Russell
  • Re: Google ADsense

    Posted 18 years 4 months ago
    • Russell Portwood wrote:
      My template uses TinyMCE and I turned off the Code Cleanup in order to get a subscription form to work. But isn't this dangerous?
      Does Code Cleanup only apply to Admin?
      Should I convert to JCE?
      Thanks for the help!
      Russell

      It's only dangerous if you have other users on your site that you don't trust fully. I suspect that turning off code cleanup in the TinyMCE config will turn it off for all users - not just admin.

      Switching to JCE won't give you any better control over this either, it does have more features though!

      Another thing to consider using is the Raw Content Integration plugin / component. It allows you to enter tags that are swapped out for raw html just like {mosimage} is swapped for images. This is a nice workaround if you do have a milti user joomla setup.

      Tom.

Time to create page: 0.067 seconds