Google Adsense and Analytics 1.8 v1.8

Release Notes

This final version adds Ads in more pages of your ELGG network.

It places the ads in all the page, so that you can get maximum revenue out of it.

This version supports Google Adsense Ads in all pages. No coding. Just place the Publisher ID and Slot ID in the Admin settings and you are done!!!

If you are happy with my effort, please contribute some cents/$ to my paypal ID purushoth.r@gmail.com .

 

Fix for the issue when going to Setttings page:

1) Open the file "mod/advanced_google_tools/languages/fr.php"

2) In the last two lines, replace the following

'advanced-google-tools:lblAdsenseHelp'    => 'Pour plus d'informations sur Adsense visitez ',    'advanced-google-tools:lblAnalyticsHelp'  => 'Pour plus d'informations sur Analytics visitez '

 

with the following (double quotes)

 

'advanced-google-tools:lblAdsenseHelp'    => "Pour plus d'informations sur Adsense visitez ",    'advanced-google-tools:lblAnalyticsHelp'  => "Pour plus d'informations sur Analytics visitez "

  • Hey thanks for the great plugin, it's really apprecited.  recomended!  one issue tho' is it broke the user setting page, well the styling at lease but thanks all the same

  • Hi Stumpy,

    Thanks for your words.

    If you have read the release notes and other posts in the plugin page, you would have noticed the fix for the settings page break.

  • It worked really nice on my site beathespread.com  Thanks a lot!

  • Happy that my plugin was helpful to you. Thanks. :)

  • you have done a great job buddy.. But i have a small prob with this plugin.
    On using this plugin i i had some problem with the admin setting page and the user setting page .Please find the below post for detailed description.
    I fixed this prob by deactivating the google plugin. Kindly help me to fix the defect

    http://community.elgg.org/pg/forum/topic/800714/i-have-installed-elgg18-but-when-i-try-to-access-basic-settings-it-is-not-displayed/

    Keep rocking..

  • I guess you did not read the NOTE mentioned, multiple times in this post.

    Fix for the issue when going to Setttings page:

    1) Open the file "mod/advanced_google_tools/languages/fr.php"

    2) In the last two lines, replace the following

    'advanced-google-tools:lblAdsenseHelp'    => 'Pour plus d'informations sur Adsense visitez ',    'advanced-google-tools:lblAnalyticsHelp'  => 'Pour plus d'informations sur Analytics visitez '

     

    with the following (double quotes)

     

    'advanced-google-tools:lblAdsenseHelp'    => "Pour plus d'informations sur Adsense visitez ",    'advanced-google-tools:lblAnalyticsHelp'  => "Pour plus d'informations sur Analytics visitez "

  • Hey Purus, nice work done. It did worked awsome, until google blocked my adsense. I want to place the customised ads at the same places, where your plugin was displaying ads. Any idea you would like to share about this? my site is www.wattsay.in

  • First I like this plugin a lot. The only things is that when I activate this plugin it causes page loading time to exceed 30 seconds. Somethin happens when I activate this script and slows everything down, when I deactivate it, everyhthing works fine. Any thoughts?

  • The slowness was caused by another plugin. Now it works great.


    One question though. How can I modify the top add so that it is not displayed on the activity page when a user is logged in. I would still like it to display on the avtivity page when no one is logged in, but to hide it only on the activity page when someone is logged in. Thanks!

  • [Test environment server]

    ●Elgg Ver1.8.3
    ●5.3.3/5.2.17
    ●Apache/2.2.15 (Scientific Linux)

    [Use Plugin]
    Google Adsense and Analytics 1.8

    [Content error]

    <Plugin side>

    Deprecated in 1.8: settings/advanced_google_tools/edit was deprecated in favor of plugins/advanced_google_tools/settings Called from [#8] /var/www/elggtest/engine/lib/views.php:503

    ・Google Adsense Publisher ID

    Deprecated in 1.8: You should pass $vars['name'] now instead of $vars['internalname'] Called from [#11] /var/www/elggtest/mod/advanced_google_tools/views/default/settings/advanced_google_tools/edit.php:30
     -> [#10] /var/www/elggtest/engine/lib/views.php:503

    ・Adslot ID for Banner Size 728 X 90

    Deprecated in 1.8: You should pass $vars['name'] now instead of $vars['internalname'] Called from [#11] /var/www/elggtest/mod/advanced_google_tools/views/default/settings/advanced_google_tools/edit.php:45
     -> [#10] /var/www/elggtest/engine/lib/views.php:503


    ・Adslot ID for Banner Size 160 X 60

    Deprecated in 1.8: You should pass $vars['name'] now instead of $vars['internalname'] Called from [#11] /var/www/elggtest/mod/advanced_google_tools/views/default/settings/advanced_google_tools/edit.php:60
     -> [#10] /var/www/elggtest/engine/lib/views.php:503

    Analytics Tracker ID:

    Deprecated in 1.8: You should pass $vars['name'] now instead of $vars['internalname'] Called from [#11] /var/www/elggtest/mod/advanced_google_tools/views/default/settings/advanced_google_tools/edit.php:74
     -> [#10] /var/www/elggtest/engine/lib/views.php:503


    <ELGG side>

    admin/settings/basic・・・Do not open

    settings/user/xxxxx・・・Layout is broken


    1) Open the file "mod/advanced_google_tools/languages/fr.php"
    2) In the last two lines, replace the following

    Been addressed above

    Not available in 1.8.3?

    What other way would not do?

  • why am i getting a For Ads Rotator to work, the container element must have child elements.error, im running 1.8.6,

  • Hi !

    I have elgg 1.8.5 but it did not work with it, there are deprecated messages when i activate this plugin.

  • I installed and as soon as I clicked Activate i get nothing but a blank page on all pages. I do not recommend this crap.

  • Hi,

    in mod/advanced_google_tools/start.php in line 21 change

     registe_elgg_event_handler('init','system','advanced_google_tools_init');

    for

     elgg_register_event_handler('init','system','advanced_google_tools_init');

     

    And for other deprecate functions open mod\advanced_google_tools\views\default\settings\advanced_google_tools\edit.php

    and change all sites were have for example

    <?php echo elgg_view('input/text', array(
                          'internalname' => 'params[publisherid]',
                      'value' => $publisherid));
             ?>

    change the internalname to vars like:

    <?php echo elgg_view('input/text', array(
                          'vars' => 'params[publisherid]',
                      'value' => $publisherid));
             ?>

  • For me after these changes, works fine in elgg 1.8.8

  • I saw another problem, when you go in the up menu 'more'. Then this menu drops and accidentally obscure the google ads that are placed at the header.

    And that apparently violeates the google policy.

    "Google ads, search boxes or search results may not be:

    Obscured by elements on a page.

  • Does not work for me.

    I installed the plugins, did all the fixes as mentioned, but still gives me the 1st error :

    Deprecated in 1.8: settings/advanced_google_tools/edit was deprecated in favor of plugins/advanced_google_tools/settings Called from [#8] /var/www/html/engine/lib/views.ph

     

    Also, even after giving the AdSense publisher id and Ad id, ad's do not display on my site..

     

    What am I doing wrong ?

  • Deprecated in 1.8: settings/advanced_google_tools/edit was deprecated in favor of plugins/advanced_google_tools/settings Called from [#8] /var/www/html/engine/lib/views.ph


    thats just a message, a deprecated message, thats not what is keeping it from working.  but to fix that is just a matter of a folder and a file.  change the settings folder to plugins and the edit file to settings

  • Thanks costakisc,

    I will do the changes, but any idea why analytics/adwords should not work even after I give the id's ?

    Do not know if it matters, but after I give the Id's and save it, it gives the 'saved' confirmation, but the fields become blank again..

    Where should I check to make sure that the information has been correctly saved ?

  • Ad words does not show ads and analytics does not show any hits to the site..

  • Just to clarify,

    I added just the ID's in the ID's fields (both Analytics & Adwords)

    Am I supposed to add the entire code from Analytics & Adwords in those fields ?

    (I thought this plugin needs only the ID's)

     

  • When I activate the plugin it disorganises the whole elgg site and nothing shows up,am using elgg 1.8.3

  • hi everybody am trying to use this plugin but when i activate the entire site collapses and nothing shows up. Can anyone help me with this.Am using elgg 8.13

  • Hello, I used this plugin on elgg 1.8.15 is it causes the following error: The website encountered an error while extracting http://monsite.org/admin/plugins # advanced-google-tools. This may be due to maintenance or improper configuration. Can you help me if he would like it?

Purus

Its long time guys to be here.. I am now concentrating on my own plugin development projects for my customers. So not able to be active as before in ELGG.

Stats

  • Category: Third Party integrations
  • License: GNU General Public License (GPL) version 2
  • Updated: 2014-11-17
  • Downloads: 4362
  • Recommendations: 25

Other Projects

View Purus's plugins