Problem with HTML Block in 7.0.1 & Adsense

Ok folks - not sure who else does / doesn't have this issue. Throwing this one out there:


In an older site I have - with 7.0.0 - I can drop adsense script on an HTML block and it works perfectly.


In this newer version - 7.0.1 - which has some more "fancified" script/code input dialogue - I can try to insert the exact same code but the new HTML block will CHANGE the script when it saves so an adsense block will not work.


Here is an example:

Should be able to drop in this: (some code x'd out for the example)

<script type="text/javascript"><!--
google_ad_client = "pub-11111111111111111";
/* 250x250, created 5/8/10 */
google_ad_slot = "7642313011";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

But when you hit save - for a brief moment - the new 7.0.1 html block changes that code to this:

<script type="text/javascript">// <![CDATA[
google_ad_client = "pub-11111111111111";
/* 250x250, created 5/8/10 */
google_ad_slot = "7642313011";
google_ad_width = 250;
google_ad_height = 250;
// ]]></script>
<script type="text/javascript">
</script>

And the script will not work.


Only thing I can think of is to find where that data saves in the SQL - input it directly - and see if that works. Otherwise - thanks to the new html block in 7.0.1 - I cannot get the adsense blocks to work.  In 7.0.0 - I can add adsense blocks all day with no issues. Both sites are on the same server and with the same conditions - only difference is that one is 7.0.0 and the other is 7.0.1 with the new html block.


Thanks for the upgrade boonex.

Quote · 16 May 2010

Actually here's a better question:

How can I get the old 7.0.0 html block working again in 7.0.1? That would most likely resolve this.

Quote · 16 May 2010

Looking at this a little closer - thinking it might be tinymce stripping the html when I save it - digging around now for the right file to tweak. Would appreciate if ANYONE has an idea how I can simply revert back to the simple HTML Block from 7.0.0 rather than edit the code like this.

Quote · 16 May 2010

Yet another question -

Anyone know simply how to disable tinymce? Or simply switch the editor over so it uses the simple page editor for the html block and not the advanced?

Thanks,

Rick

Quote · 17 May 2010

Yet another question -

Anyone know simply how to disable tinymce? Or simply switch the editor over so it uses the simple page editor for the html block and not the advanced?

Thanks,

Rick

There should be a button in the TinyMCE menu to open an HTML editor window. If not, you can always add the code to the block item in question by editing it's entry in the database.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 17 May 2010

I still have the same problem Cry

only shows an empty block

Quote · 21 May 2010

I only changed one of my site to 7.0.1 and have the same problem with inserting google adsense into the site. I guess it could be done via "Banners" but I like to put them where I want.

@kingofalltrades, If you have another 7.0.0 site setup, notice when you "edit" the html box you do not have the "Tiny MCS editor".. 7.0.1 does, someone chime in to help here.

I'm  glad I did not upgrade my 7.0 sites yet..most are adsense supported.

I notice in the admin setting Advance Settings, options "Enable TinyMCS in comments:" ; is there a setting to turn "Tiny MCS editor" off for 7.0.1 "HTML Block"?

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 23 May 2010

true @Magnussoft, but the script is stripped even using the HTML editor window; and your left with an empty box...

Yet another question -

Anyone know simply how to disable tinymce? Or simply switch the editor over so it uses the simple page editor for the html block and not the advanced?

Thanks,

Rick

There should be a button in the TinyMCE menu to open an HTML editor window. If not, you can always add the code to the block item in question by editing it's entry in the database.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 23 May 2010

true @Magnussoft, but the script is stripped even using the HTML editor window; and your left with an empty box...

Yet another question -

Anyone know simply how to disable tinymce? Or simply switch the editor over so it uses the simple page editor for the html block and not the advanced?

Thanks,

Rick

There should be a button in the TinyMCE menu to open an HTML editor window. If not, you can always add the code to the block item in question by editing it's entry in the database.

Well, there is one way it will work, without any interference from a trigger-happy filter: direct-insertion of the AdSense code into the page block item's table in the database.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 23 May 2010

I knew you would say that..lol I'm not too good at that..

true @Magnussoft, but the script is stripped even using the HTML editor window; and your left with an empty box...

Yet another question -

Anyone know simply how to disable tinymce? Or simply switch the editor over so it uses the simple page editor for the html block and not the advanced?

Thanks,

Rick

There should be a button in the TinyMCE menu to open an HTML editor window. If not, you can always add the code to the block item in question by editing it's entry in the database.

Well, there is one way it will work, without any interference from a trigger-happy filter: direct-insertion of the AdSense code into the page block item's table in the database.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 23 May 2010

I have the same problem adding the ads code on any html block i create for ads only

why we have to go to the databased to to this when you can do this from the admin panel creating new block

Post Reply - if you going to help - No for - bla bla bla bla
Quote · 24 May 2010

Re: Custom HTML block.

I must admit I am going stir crazy with my HTML being stripped away as well.

I ended up settling for something differnt to what I really wanted.

I am not at all comfortable doing it within the database but I'll give it a go if I need to.

Where should I be looking in the database?

Quote · 25 May 2010

can some one help how you can get this to work can we get support from developers or admin

Please

Thank'

Post Reply - if you going to help - No for - bla bla bla bla
Quote · 26 May 2010

can some one help how you can get this to work can we get support from developers or admin

Please

Thank'

Good Luck..

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 26 May 2010

lol

you come here to say Good Luck

that' why i love this world so much to many crazy people on this word

Post Reply - if you going to help - No for - bla bla bla bla
Quote · 26 May 2010

lol

you come here to say Good Luck

that' why i love this world so much to many crazy people on this word

yes, I asked a question earlier in the thread. It never has been answered.

I notice in the admin setting Advance Settings, options "Enable TinyMCS in comments:" ; is there a setting to turn "Tiny MCS editor" off for 7.0.1 "HTML Block"?

Is this the fix?

http://www.boonex.com/unity/forums/?action=goto&topic_id=Good-News-For-D7-Site-Admins

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 27 May 2010

lol

you come here to say Good Luck

that' why i love this world so much to many crazy people on this word

yes, I asked a question earlier in the thread. It never has been answered.

I notice in the admin setting Advance Settings, options "Enable TinyMCS in comments:" ; is there a setting to turn "Tiny MCS editor" off for 7.0.1 "HTML Block"?

Is this the fix?

http://www.boonex.com/unity/forums/?action=goto&topic_id=Good-News-For-D7-Site-Admins

No. Unfortunately TinyMCS still shows up *half the time*.

Quote · 31 May 2010

Hello
To solve the problem. Delete the following code: <! [CDATA [
Your code should be below:

<script type="text/javascript"><!--
google_ad_client = "pub-XXXXXXXXXXXXXXXX";
/* 300x250, date de création 21/10/08 */
google_ad_slot = "6XXXXXXXXX";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Quote · 1 Jun 2010

Try my fix here which should restore the HTML block to the way it worked in 7.0.0.

http://www.boonex.com/unity/forums/#topic/Page-Builder-Big-Bug.htm

https://www.deanbassett.com
Quote · 1 Jun 2010

still not working is not leting me when i add any javascript like banners rotator or any flash nothing on the block is 0

Try my fix here which should restore the HTML block to the way it worked in 7.0.0.

http://www.boonex.com/unity/forums/#topic/Page-Builder-Big-Bug.htm

Post Reply - if you going to help - No for - bla bla bla bla
Quote · 2 Jun 2010

It works for me. You might wanna flush your cache.

still not working is not leting me when i add any javascript like banners rotator or any flash nothing on the block is 0

Try my fix here which should restore the HTML block to the way it worked in 7.0.0.

http://www.boonex.com/unity/forums/#topic/Page-Builder-Big-Bug.htm

Quote · 2 Jun 2010

You right i for got that and is working fine


but why  I can't use any javescript on my Settings/ Basic Settings / Promo / Use custom HTML block

im using this image banner rotator is not working when i add any ads code is working fine but when i add any image slideshow is not

It works for me. You might wanna flush your cache.

still not working is not leting me when i add any javascript like banners rotator or any flash nothing on the block is 0

Try my fix here which should restore the HTML block to the way it worked in 7.0.0.

http://www.boonex.com/unity/forums/#topic/Page-Builder-Big-Bug.htm

Post Reply - if you going to help - No for - bla bla bla bla
Quote · 2 Jun 2010

I had this problem too, but it seems that the issues has been resolved in Dolphin 7.0.4

Quote · 17 Jan 2011

I'm using 7.05 and it hasn't been resolved.

I'm trying to call an iframe showing how many users are in chat without success....

Quote · 29 Mar 2011

 

I'm using 7.05 and it hasn't been resolved.

I'm trying to call an iframe showing how many users are in chat without success....

this might help..

 http://www.boonex.com/unity/forums/?action=goto&my_threads=1#topic/iframes-in-HTML-blocks.htm

iframes are striped when added to an "HTML Block", you would have to edit your database to make the changes.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 29 Mar 2011
 
 
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.