Has anyone tried to add adsense to areas of their forums?
I did but each time I would go through the normal process of dragging HTML block to new column or used one.. enter the google adsense code, it breaks the forums, they just load and eventually timeout. Remove the adsense block and the page works.
My work around was to manually edit the database like we used to have to do. But this time they corrupt the whole page.
I found I had to edit the code in the database and add <div> adsense code </div> for it to work..
also added a text link add to the search box by editing
modules/boonex/forums/templates/base/search_block.html
ManOfTeal.COM a Proud UNA site, six years running strong! |
It maybe you are inserting JS code with <![CDATA and ]]> symbols. It breaks Forum XML.
You need to remove it from copy/paste JS code you are trying to insert.
Rules → http://www.boonex.com/terms |
It maybe you are inserting JS code with <![CDATA and ]]> symbols. It breaks Forum XML.
You need to remove it from copy/paste JS code you are trying to insert.
I'm taking the code from adsense and putting in an HTML block.
The ads on the index page and all other pages with ads were done this way and the pages were not affected.
Only on the "forums index" and "forums home"
I use the same code site wide, so the only way to fix was to manually edit the database to put back what was stripped.
ManOfTeal.COM a Proud UNA site, six years running strong! |
It maybe you are inserting JS code with <![CDATA and ]]> symbols. It breaks Forum XML.
You need to remove it from copy/paste JS code you are trying to insert.
Again, I'm not inserting anything different that I would on any other page.
This is my code, and its the same code on other pages with tower ads.
<script type="text/javascript"><!--google_ad_client = "ca-pub-***************";/* newbeetle-tower */google_ad_slot = "************";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
Only reason I'm pointing this out. Because it breaks the forums from displaying.
and it is not a template thing..
on my demo at SVN 17300 I can duplicate here http://mynewbeetle.net/7.1/forum/
once the code is saved and striped by Dolphin this is what the adsense code looks like after saving.
<p><script type="text/javascript">// <![CDATA[google_ad_client = "ca-pub-**************";/* newbeetle-tower */google_ad_slot = "************";google_ad_width = 160;google_ad_height = 600;// ]]></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[ // ]]></script></p>
The only fix, to manually edit database and insert the original code from adsense..
ManOfTeal.COM a Proud UNA site, six years running strong! |
The link to the demo forums will timeout and display my Cloud Flare info..
This website is offline
No cached version is available
What's wrong?
|
The most likely causes:
- The server is down for maintenance
- There may be a network problem
-
The site may be experiencing excessive load
|
|
|
What's CloudFlare?
This website uses CloudFlare in order to help keep it online when the server is down by serving cached copies of pages when they are unavailable. Unfortunately, a cached copy of the page you requested is not available, but you may be able to reach other cached pages on the site.
|
|
ManOfTeal.COM a Proud UNA site, six years running strong! |
Can someone else using/testing 7.1 confirm this? ManOfTeal.COM a Proud UNA site, six years running strong! |
It maybe that TinyMCE adds '<![CDATA[', try to add JS code without TinyMCE. Rules → http://www.boonex.com/terms |
It maybe that TinyMCE adds '<![CDATA[', try to add JS code without TinyMCE.
yes, tinymce does add <![CDATA[ google_ad_client = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx; // ]]>
|
It maybe that TinyMCE adds '<![CDATA[', try to add JS code without TinyMCE.
I'm not complaining, I have fixed mine to work.
Have you tried to add adsense to the forum index?
I want to know is it the HL Biz template or the actual forums pages.
All other pages take the ad, with the stripped out and changed code, displays fine and does not "break" the site.
This only is on the two pages in the page builder section.
The only way to correct is to do like the old times in 7.0.x, manually editing each ad in the database.
New users will not know what to do to fix.
If it cannot be reproduced on your sites, then I need to find out what I did to make this happen.
Thanks for the responses.
ManOfTeal.COM a Proud UNA site, six years running strong! |
It is the forums page.
My test was to replace the splash banner with google adsense code - works on the entire site except the forums. Everything blows up :(
* I injected the code directly into the database versus using tiny mce to save it.
Skype: shawn.nelson |
It is the forums page.
My test was to replace the splash banner with google adsense code - works on the entire site except the forums. Everything blows up :(
* I injected the code directly into the database versus using tiny mce to save it.
Thank you for the confirm, I thought I had messed up the site, but had done nothing to the forums section page.
ManOfTeal.COM a Proud UNA site, six years running strong! |
There is an option to turn off TinyMCE in HTML Block Editor and in Splash Editor in Dolphin 7.1, so CDATA will not be added by TinyMCE. Rules → http://www.boonex.com/terms |
ManOfTeal.COM a Proud UNA site, six years running strong! |
Where is the option to turn off TinyMCE in the html block editor in 7.1?
There is an option to turn off TinyMCE in HTML Block Editor and in Splash Editor in Dolphin 7.1, so CDATA will not be added by TinyMCE.
Outdoor Community |
Nevermind I figured it out. The eraser looking button for "Remove Formatting". Ads work fine now Outdoor Community |
Actually that wasn't it, but they work if you use the "toggle to html" and then paste your ad code and save
Nevermind I figured it out. The eraser looking button for "Remove Formatting". Ads work fine now
Outdoor Community |
newton
try this.. in the block edit open the html code put the code after that in the MCE click the Align Center without text and save it. that works for me.
www.tumundo247.com - www.rampletea.com - www.clasificadosnetwork.com |
newton
try this.. in the block edit open the html code put the code after that in the MCE click the Align Center without text and save it. that works for me.
Thanks but I solved the problem the day I posted this; it was to point out how the ads actually broke the forums..
ManOfTeal.COM a Proud UNA site, six years running strong! |
I hard coded mine in and have it across main forums, forum posts and group forums:-
DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price! |
I hard coded mine in and have it across main forum and group forums:-
that's what I did too.
ManOfTeal.COM a Proud UNA site, six years running strong! |
I do have a BIG ISSUE making 'add this' work in forums and posts .... any idea ?
I coded the adsense in to forum files not the DB
I hard coded mine in and have it across main forum and group forums:-
that's what I did too.
DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price! |
I do have a BIG ISSUE making 'add this' work in forums and posts .... any idea ?
In the actual forum post, to the right where the ad is. I did not do that; so tell me what you did and let me try..
ManOfTeal.COM a Proud UNA site, six years running strong! |
How I added adsense to files ?
I do have a BIG ISSUE making 'add this' work in forums and posts .... any idea ?
In the actual forum post, to the right where the ad is. I did not do that; so tell me what you did and let me try..
DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price! |
How I added adsense to files ?
I do have a BIG ISSUE making 'add this' work in forums and posts .... any idea ?
In the actual forum post, to the right where the ad is. I did not do that; so tell me what you did and let me try..
yes to show on the forum post page; looks like you have put it and the ad in a table?
ManOfTeal.COM a Proud UNA site, six years running strong! |
your right ;) and it works a treat:-
templates / base / page_55.html
<bx_include_auto:_sub_header.html /> <table style="width: 100%;" border="0"> <tbody> <tr> <td style="width: 96%;" align="left" valign="top">__page_main_code__</td> <td style="width: 0%;" align="left" valign="top"></td> <td style="width: 4%;" align="left" valign="top"><br>ADSENSE HERE</td> </tr> </tbody> </table> <bx_include_auto:_sub_footer.html />
Then reduce forum page sizes in page builder to fit correctly
How I added adsense to files ?
I do have a BIG ISSUE making 'add this' work in forums and posts .... any idea ?
In the actual forum post, to the right where the ad is. I did not do that; so tell me what you did and let me try..
yes to show on the forum post page; looks like you have put it and the ad in a table?
DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price! |
ManOfTeal.COM a Proud UNA site, six years running strong! |
did you add adsense using the code I give ? looks like you have ...
I cannot see to get this following working:
<!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style "><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a></a> <a class="addthis_button_preferred_2"></a> <a class="addthis_button_preferred_3"></a> <a class="addthis_button_preferred_4"></a> <a class="addthis_button_preferred_5"></a> <a class="addthis_button_preferred_6"></a> <a class="addthis_button_preferred_7"></a> <a class="addthis_button_preferred_8"></a> <a class="addthis_button_preferred_9"></a> <a class="addthis_button_preferred_10"></a> <a class="addthis_button_preferred_11"></a> <a class="addthis_button_preferred_12"></a> <a class="addthis_button_preferred_13"></a> <a class="addthis_button_preferred_14"></a> <a class="addthis_button_compact"></a> <a class="addthis_button_google_plusone"></a> <a class="addthis_counter addthis_bubble_style"></a></div> <script type="text/javascript">// <![CDATA[ var addthis_config = {"data_track_addressbar":true}; // ]]></script> <script src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4dae29d33ffd533d" type="text/javascript"></script> <!-- AddThis Button END -->
DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price! |
This is exactly what I used, and Thanks for pointing me in the right place!
<bx_include_auto:_sub_header.html /><table style="width: 100%;" border="0"><tbody><tr><td style="width: 85%;" align="left" valign="top">__page_main_code__</td><td style="width: 0%;" align="left" valign="top"></td><td style="width: 4%;" align="center" valign="top"> <p><script type="text/javascript">var switchTo5x=true;</script><script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script> <span class='st_googleplus_large' displayText='Google +'></span> <span class='st_facebook_large' displayText='Facebook'></span></p> <hr /> <p>Advertisments</p> <center><div><script type="text/javascript"><!--google_ad_client = "ca-pub-******";/* newbeetle-tower */google_ad_slot = "********";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div></center></td></tr></tbody></table><bx_include_auto:_sub_footer.html />
ManOfTeal.COM a Proud UNA site, six years running strong! |
I found I had to edit the code in the database and add <div> adsense code </div> for it to work..
Can you be more specific about how you edited the code in the database?.. I edited the page55 to run my google skyscraper on the right side of the forums and group forums.. But I can't get adsense to work in the splash banner still. I can get an amazon iframe ad to work up there, but adsense breaks my forum.
Outdoor Community |
I can get an amazon iframe ad to work up there, but adsense breaks my forum.
http://www.boonex.com/forums/topic/Adsense-and-the-Forums.htm#188202
Rules → http://www.boonex.com/terms |
if you fully read and follow this thread you will see it should work !
I have this working and so do many others that tried .... Once you have done this adjust page widths to make all fit correctly :)
Adding adsene the way I shown is the easiest and quickest way and it works
I found I had to edit the code in the database and add <div> adsense code </div> for it to work..
Can you be more specific about how you edited the code in the database?.. I edited the page55 to run my google skyscraper on the right side of the forums and group forums.. But I can't get adsense to work in the splash banner still. I can get an amazon iframe ad to work up there, but adsense breaks my forum.
DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price! |
i was looking through the posts, and wanted to just add a lil 2 cents. It was mentioned about putting the adsense in an html block and the tinymce adding the extra bit of code. I have found that instead of using an html block, if i use a php block and add ?> to the beginning and <?php to the end - that works for me.
Again, just giving a lil extra info in case it helps anyone.
caredesign.net |
Ok, addthis and adsense are two different things. I did get it working after I figured out to adjust the page sizes. (thanks Detective).
Now my original issue STILL remains with adding addthis to the forums.
It doesn't work. It only works, (sort of) if you permalink the post first. The # character causes it to fail. Been saying this for days and it's just been falling on deaf ears.
http://towtalk.net ... Hosted by Zarconia.net! |
if you fully read and follow this thread you will see it should work !
I have this working and so do many others that tried .... Once you have done this adjust page widths to make all fit correctly :).
Yes, I had no trouble with that part. My tower/skyscraper ads worked nicely doing what you described. My problem was with adding adsense code to the splash banner. I figured it out though. Just had to check the box to disable the html editor, paste my code plus <center> and save. Thank you
Outdoor Community |
It doesn't work. It only works, (sort of) if you permalink the post first. The # character causes it to fail. Been saying this for days and it's just been falling on deaf ears.
Sore ears... lol
Perhaps you could try this method..
ManOfTeal.COM a Proud UNA site, six years running strong! |
code for page /templates/base/page_55.html (thanks Detective08/Josh)
<bx_include_auto:_sub_header.html />
<table style="width: 100%;" border="0">
<tbody>
<tr>
<td style="width: 85%;" align="left" valign="top">__page_main_code__</td>
<td style="width: 4%;" align="center" valign="top">
<br />
<h4 align="center">Like It? Share It! <br /><br />
<!-- AddThis Button BEGIN -->
<a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=300&pubid=xa-**********"><img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-***********"></script>
<!-- AddThis Button END -->
</h4>
<hr />
<p align="center">Advertisments</p>
<center><div><script type="text/javascript"><!--
google_ad_client = "ca-pub-8888888888";
/* newbeetle-tower */
google_ad_slot = "888888888";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div></center></td>
</tr>
</tbody>
</table>
<bx_include_auto:_sub_footer.html />
ManOfTeal.COM a Proud UNA site, six years running strong! |
Hello, I post in this topic because I need help. When I try to add AdSense html code to http://www.areavis.com/forum/
I have this error:
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 130968 bytes) in /home/areavis/public_html/modules/boonex/forum/classes/pl/BxXslTransform.php on line 31
When I remove AdSense HTML code error disappeared. So Probably I had a similar problem as in the first post.
Can someone post the exact step by step how do I correctly can add AdSense to the Forum please? And I would like to add AdSense Code to the Forum Topics also for example here: http://www.areavis.com/forum/#topic/Gdzie-jecha%C4%87-na-wakacje-w-Europie-.htm
|
Look here or use the magnifying glass top right corner and search "Allowed memory size" Your set up for memory in Php.ini is probably too low for Dolphin.
http://www.boonex.com/forums/topic/Fatal-error-Allowed-memory-size.htm
Vunderba..... Challenge Yourself to be the Best...... Hosting from Zarconia.net |
I contact in this case with my server support and they told me I had 512MB limit. Dolphin require 128MB
So now I have 1024MB...this is normal?
Look here or use the magnifying glass top right corner and search "Allowed memory size" Your set up for memory in Php.ini is probably too low for Dolphin.
http://www.boonex.com/forums/topic/Fatal-error-Allowed-memory-size.htm
|
I also had a similar problem with my first and second host. They can access your files and change it to what they want. In other words, they can tell you one thing and have another. Take a look at the file yourself then visit it again in a few days. 512k is plenty and should work well. If you go back in a few days, and they have changed it back again to 128k then that is a signal to change Hosts. It means that they are not set up for a dolphin software. Vunderba..... Challenge Yourself to be the Best...... Hosting from Zarconia.net |
You need to check the php.ini file, yourself. You can also view your settings in your Dolphin admin>Tools>admin Tools> php settings Vunderba..... Challenge Yourself to be the Best...... Hosting from Zarconia.net |
Thanks for informations. So now I get back with my host to 512MB. I have 4GB of RAM so I hope that will work fine.
Maybe this error could be caused by something else...? Since I only try put html AdSense code to Forum.
My hosting is recommended by BoonEx so I hope they know what they are doing.
|
Thanks for informations. So now I get back with my host to 512MB. I have 4GB of RAM so I hope that will work fine.
Maybe this error could be caused by something else...? Since I only try put html AdSense code to Forum.
My hosting is recommended by BoonEx so I hope they know what they are doing.
If you have read this entire post, your answer is here, as I and Josh have posted.
This has nothing to do with your server setup.
ManOfTeal.COM a Proud UNA site, six years running strong! |
newton
try this.. in the block edit open the html code put the code after that in the MCE click the Align Center without text and save it. that works for me.
Thanks but I solved the problem the day I posted this; it was to point out how the ads actually broke the forums..
also, I do believe there was a ticket and fix for this
What version of Dolphin are you at?
ManOfTeal.COM a Proud UNA site, six years running strong! |
Thanks for informations. So now I get back with my host to 512MB. I have 4GB of RAM so I hope that will work fine.
Maybe this error could be caused by something else...? Since I only try put html AdSense code to Forum.
My hosting is recommended by BoonEx so I hope they know what they are doing.
If you have read this entire post, your answer is here, as I and Josh have posted.
This has nothing to do with your server setup.
Fortunately, that is not the server settings. I thought so, reading your first post here.
|
newton
try this.. in the block edit open the html code put the code after that in the MCE click the Align Center without text and save it. that works for me.
Thanks but I solved the problem the day I posted this; it was to point out how the ads actually broke the forums..
also, I do believe there was a ticket and fix for this
What version of Dolphin are you at?
I updated today and I have now 7.1.4 but unfortunately still do not know how to make AdSense on Forum step-by-step
|
The code provided by Newton and I certainly work ... Are you changing the Adsense parts with your own Adsense code?
What do you see or not see when adding our code ?
DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price! |
Thanks for reply. I used your code in page_55.html but unfortunately now on the forum page I have this: http://www.areavis.com/forum/ so the block is not located next to the Adsense ads. How can I fix this? I did not change anything in AdSense code. Should I?
The code provided by Newton and I certainly work ... Are you changing the Adsense parts with your own Adsense code?
What do you see or not see when adding our code ?
|
Your block became misplaced because of a glitch that made the other two blocks larger. This is how to fix: Go to> Dolphin Admin> Builder> Page Builder> Forum Home bring your page width down to 951px. That is what mind is set. You can check my website at vunderba dot com/forum/ you need to leave space for the Ad which is 160 less then your desired width.
If that does not work remove one column completely. Set your desired pixel to the width of the two column size and then add the column back in. That should do it.
You may need to clear cache, I did not need to clear mine.
You need to input your unique Adsense code for your tower ad. You get this code when you generate a tower ad. It will have your unique Google client ID and a unique ad slot#. Also the addthis Public ID code is unique to you also.
Vunderba..... Challenge Yourself to be the Best...... Hosting from Zarconia.net |
Thanks Itsawhiz ! I take Forum Index page witdth to 992px and it looks pretty good. http://www.areavis.com/forum/
How unique AdSense ad code on your mind? I generated ad code tower as you can see in the link above.
I have a few questions about forum. If anyone knows the answer to this please reply:
1. Is it possible to advertise sliding down down along with the forum? (with scrolling down the page - advertising all the time is shown on the right).
2. I would like for each post on my forum add AddThis plugin. Is the codes presented in this topic are valid for Dolphin 7.1.4?
3. Is it possible to add advertising to the left and into search? (I see in posts above that its looks pretty cool add in search block).
|
|