AddThis Share v1.2

Release Notes

  • Fixed bugs for AddThis profile ID
  • Why do you delete comments,when some one is looking for an answer from some one?

  • @patriot I didn't delete any comments.

  • Weird?I had a few comments complimenting your plugin,and asking anyone how I could get it on the i-zap videos page...

    Great plugin! Recommended!

  • Well this is great plugin but i am getting unmet dependencies probably because i am using elgg 1.8.1 and this plugin has a minimum requirement of elgg 1.8.3. Can i use it on my elgg version 1.8.1 with some changes. Is there any old version i may use.

  • Hi have activated this plugin, Registered my admin id to addthis.com
    Finnaly i got the profile ID and paste it to the specified textbox and saved it.
    But still i am unable to view the share buttons. Can anyone plz help me ??

    Thanks in advance

  • This is really a great plugin but i am unable to enjoy it. :-( .. Is there any issues in my steps mentioned above.

  • @dinesh It is possible that you have used the wrong ID from addthis.com.

  • Hello-  I'm having the same problem as dinesh.  I installed it, received no errors, added the ID from my addthis account, and don't see any buttons anywhere on the site.  Help?

  • Okay, I uploaded a file and now I'm seeing the share buttons.  Where else will they appear?  My site is still in development.

  • very nice & usefull plugin, thanks aung.

    Is there a way to get the buttons appearing at the bottom? any direction/advice

    thx again (running fine on 1.8.3) 

  • Hi, is it possible to uso this on elgg 1.8.1? Is there anything I can change to allow it to run on 1.8.1?

  • I am also having the same problem as dinesh..

  • this plugin in not compatible with notifier

  • you can alter the addthis plugin to change the placement of the addthis to be inserted into a different view.. which will not conflict with notifier.

  • change elgg_extend_view in start.php of addthis to:

      elgg_extend_view('page/elements/body', 'addthis_share/addthis', 0);

     

    or replace page/elements/body with another location of your preference.

  • ah, i also commented out (i think) the line:

     $full = elgg_extract('full_view', $vars, FALSE);

    in the addthis view.

    once you see the addthis element appear you may need to tweak the page structure a bit to fit it into your site.

     

  • Hi,

    it could be interesting to add support for custom share url in addthis_share/addthis view, which would allow using the sharing view in listings and search results as well (or any view that displays several articles on a single page).

    Changes could look like this (i haven't tested yet..) :

    <?php
    $float = elgg_get_plugin_setting('alignposition', 'addthis_share');
    $button = elgg_get_plugin_setting('buttonstyle', 'addthis_share');
    $pubid = elgg_get_plugin_setting('profileID','addthis_share');
     
    $full = elgg_extract('full_view', $vars, FALSE);
    $share_url = elgg_extract('share_url', $vars, FALSE);
    $context =  elgg_get_context();
     
    if ($full && $context != 'thewire' && $pubid != '' )  {
      echo '<div style="float:'.$float.'">';
     
      switch ($button) {
        case 'big': ?>
          <!-- AddThis Button BEGIN -->
          <div class="addthis_toolbox addthis_default_style addthis_32x32_style" <?php if ($share_url) echo 'addthis:url="'.$share_url.'"'; ?>>
          <a class="addthis_button_preferred_1"></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_compact"></a>
          <a class="addthis_counter addthis_bubble_style"></a>
          </div>
          <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=<?php echo $pubid; ?>"></script>
          <!-- AddThis Button END -->
          <?php
          break;  
     
        case 'small' : ?>
          <!-- AddThis Button BEGIN -->
          <div class="addthis_toolbox addthis_default_style " <?php if ($share_url) echo 'addthis:url="'.$share_url.'"'; ?>>
          <a class="addthis_button_preferred_1"></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_compact"></a>
          <a class="addthis_counter addthis_bubble_style"></a>
          </div>
          <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=<?php echo $pubid; ?>"></script>
          <!-- AddThis Button END -->
          <?php
          break;
     
      default: ?>
        <!-- AddThis Button BEGIN -->
        <div class="addthis_toolbox addthis_default_style ">
        <a class="addthis_button_facebook_like" fb:like:layout="button_count" <?php if ($share_url) echo 'fb:like:href="'.$share_url.'"'; ?>></a>
        <a class="addthis_button_tweet" <?php if ($share_url) echo 'tw:url="'.$share_url.'"'; ?>></a>
        <a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
        <a class="addthis_counter addthis_pill_style"></a>
        </div>
        <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=<?php echo $pubid; ?>"></script>
        <!-- AddThis Button END -->
        <?php
        echo '</div>';
      }
     
    }

  • View can then be inserted by :

    if (elgg_is_active_plugin('addthis_share')) echo = elgg_view('addthis_share/addthis', array('entity' => $article, 'full_view' => true, 'share_url' => $article_url));

  • Mine isn't working.  Would anyone have any idea why?  

  • It worked for me nicely until few days ago...now i only see the addthis buttons from my mobile, FF browser, not from PC (from any browser)....can this be OS related? It seems to me a stupid question, sorry guys, but I see buttons from mobile and not from PC...can't think of anything else...

    Cheers

  • I'm getting buttons only intermittently and only on some page types. I get them on some "pages" , but only some, and not on photos - but sometimes on photo albums? They appear less often when right aligned than when left aligned. I don't understand how to adjust to fix this?? Any ideas?

  • you can just add the script to your footer or ads rotator or header plugin no need for a plugin though upto you 

Stats

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

Other Projects

View aung's plugins