just created tutorials on adding adsense to your elgg sites
just want to up....visit my online tutorial ELGG with ADSENSE
Looks like a lot of trouble when two simple ad units need only be placed in;
views\default\canvas\layouts---either two_column_left_sidebar or two_column_right_sidebar, which ever you are using?
<!-- left sidebar -->
<div id="two_column_left_sidebar">
<?php
echo elgg_view('page_elements/owner_block',array('content' => $vars['area1']));
?>
<!-- add notes to site here -->
<?php if (isset($vars['area3'])) echo $vars['area3']; ?><br>
<p align="center"><script type="text/javascript"><!--
google_ad_client = "XXXXXXXXXXXXXX
/* 160x600, */
google_ad_slot = "XXXXXXX";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script> </p><br>
</div><!-- /two_column_left_sidebar -->
<!-- main content -->
<div id="two_column_left_sidebar_maincontent">
<script type="text/javascript"><!--
google_ad_client = "XXXXXXXXXXXXX";
/* 728x90, Main_Content */
google_ad_slot = "XXXXXXXX";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<?php if (isset($vars['area2'])) echo $vars['area2']; ?>
</div><!-- /two_column_left_sidebar_maincontent -->
However the wire will require seprate placement.
I have made some modifications that help you on adding Google AdSense, and a spot images, and also 4 up to 8 `12x`12 banner ads, check how to add advertisments to Elgg by upgrading to the ads custom-plugin version!
And here is the ads custom-index plugin download page!
how's it now? keep on visitin my ELGG WITH ADSENSE
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.