Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

Activity

  • usac replied on the discussion topic adsense
    Is it just a copy and paste thing? We got a fatal error after we pasted the code under the last line. view reply
  • usac added a new discussion topic adsense in the group Elgg Technical Support
    Where is the main head tag located? We would like to place this smart code there:  <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <script>     ...
    • The head tag is in the page/elements/head view.  Extend the view and you can add your code.

    • Is it just a copy and paste thing? We got a fatal error after we pasted the code under the last line.

    • @usac

      1 - Create your own theme/plugin

      2 - Create a new file in your plugin:

      /mod/your_awesome_plugin/views/default/adsense/head.php

      3 - Edit this file with your above AdSense code:

      <?php ?>
      
      <script>...</script>

      4 - Add the followed code in your start.php between init() function:

      elgg_extend_view('page/elements/head', 'adsense/head');

      5 - Flush the caches via Administration

      Learn Elgg

  • usac replied on the discussion topic blog adsense
    Your right about one thing, we need someone to do this but not only for us also the community. Bloggers need to moneteize their sites, not a excuse but a fact. No more waisting time please, only post solutions to the issue. view reply
  • usac replied on the discussion topic blog adsense
    ismayil,  your hypeembed plugin is broken it says missing dependecies, we would of like to have tried it as a solution though.  view reply
  • usac replied on the discussion topic blog adsense
    wordpress has a ad inserter plugin: https://wordpress.org/plugins/ad-inserter/ but would it work with elgg? view reply
  • usac replied on the discussion topic blog adsense
    Is there something we could just tweak real fast? We are on a time restraint & cant create a mod. We tryed 3 adsense plugins & only 1 worked but they display ads outside of the blog in the footer & sidebar. view reply
  • usac replied on the discussion topic blog adsense
    this is what our google adsense codes that were trying to place in blogs look like.   <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins... view reply
  • usac replied on the discussion topic blog adsense
    We assumed this was a security issue. What does your code edit do and where does it go? We can limit blog creation only to admins, if we could only open up the security in the blogs to place adsense inside that would stabilize the security.  view reply