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
Post for anyone else that has had this problem.... check your path for your "data" folder... make sure it is the server path and not a URL - I was trying to point to the data folder using:
but I should have been using:
user/public_html/data
to point to the folder... cheers!
I might be having the same issue with setup on GoDaddy.com are you talking about the
Elgg database pointer?
The above is the path that I needed to use so that when I installed elgg i wouldn't get the message "data folder is not writable".
I made the mistake of trying to use a url instead of the local path to the data folder.
http://groups.google.com/group/elgg-users/browse_thread/thread/6fbff59c3c2a249c
Post for anyone else that has had this problem.... check your path for your "data" folder... make sure it is the server path and not a URL - I was trying to point to the data folder using:
but I should have been using:
user/public_html/data
to point to the folder... cheers!
I might be having the same issue with setup on GoDaddy.com are you talking about the
Elgg database pointer?
The above is the path that I needed to use so that when I installed elgg i wouldn't get the message "data folder is not writable".
I made the mistake of trying to use a url instead of the local path to the data folder.
http://groups.google.com/group/elgg-users/browse_thread/thread/6fbff59c3c2a249c
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.