MooTools Digg-like Share

Register an Account
Reply
 
Thread Tools
MooTools Digg-like Share
Developed by Yankidank Yankidank is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page
Designed for: Gold 1.0.0
License: Creative Commons Attribution-Noncommercial-Share
Released: 07-22-2009
Last Update: Never
Installs: 5
Uses Module System
Template Edits Not Required
Can Reuse Source Code
Translations Accepted
Not Supported by Author
This module is based on David Walsh's Digg-Style Dynamic Share Widget Using MooTools article. It will add a share link to the bottom of your posts that acts like Digg's share button. A demo of the David Walsh method can be seen here.

I have made a few modifications to the original code, the largest change is that the Facebook link directs through fb-share-control.com. I did this because Facebook does not allow you to input title and description fields manually without a little hacking. fb-share-control.com offers a simple way for me to pass this data through, so I used them to fill in the title, url and description fields automatically.



Installation Instructions
  1. Download the attached zip file and extract it.
  2. Upload the contents of the /modules folder to the /modules directory on your site
  3. Install the Mootools Javascript Library module from Admin > Modules
  4. Install the Mootools Share module from Admin > Modules. You should then see the share link appear beneath your stories if your template is Pligg 1.0.0 compatible.

Download Now

File Type: zip mootools_share_0.1.zip (130.3 KB, 748 views)

Screenshots

File Type: png mootools-share.png (9.3 KB, 2442 views)

License Agreement

Creative Commons Attribution-Noncommercial-Share Alike License
You are free to Share and Remix this work under the following conditions: You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
You may not use this work for commercial purposes.
If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.

Show Your Support

  • If you like this download support the author by donating.
  • This download may not be copied, reproduced or published elsewhere without author's permission.

Similar Downloads
Download Developer Category Replies Last Post
Multi Social Bookmarking Reload godgod Free Modules 15 08:26 PM 11-25-2011

Comments
  #22 (permalink)  
Old 10-04-2009, 12:53 PM
New Pligger/Coder
Pligg Version: 1.0.1
 
Join Date: Aug 2009
Location: Warsaw/Poland
Posts: 11
I created a similar module based on jQuery and the solution of the page.
Demo available at www.wysyp.com as soon as it prepared to test the module provides
Reply With Quote
  #23 (permalink)  
Old 10-17-2009, 02:47 PM
Pligg Donor
Pligg Version: 1.0.1
 
Join Date: Nov 2008
Posts: 136
Quote:
Originally Posted by Yankidank View Post
Facebook Twitter, Email and a link. It's exactly what Digg.com does, so why are you complaining?
how can I remove twitter?
Reply With Quote
  #24 (permalink)  
Old 12-26-2009, 07:24 PM
New Pligger
Pligg Version: 1.3
 
Join Date: Aug 2009
Location: Poland
Posts: 18
How to place link 'Add too' somwhere else than I have it now?
Attached Images
File Type: jpg mootools share.JPG (26.0 KB, 19 views)
Reply With Quote
  #25 (permalink)  
Old 12-26-2009, 07:58 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
This uses the the pligg 1.0 template hook framework.

If you look at line 13 of /modules/mootools_share/mootools_share.init.php it's setting the link in tpl_pligg_story_tools_end.

You can find the template hook chart here.

For example if you wanted to move the link to the sidebar you would edit line 13 from
Code:
module_add_action_tpl('tpl_pligg_story_tools_end', mootools_share_tpl_path . 'mootools_share_link.tpl');
To

Code:
module_add_action_tpl('"tpl_pligg_sidebar_start', mootools_share_tpl_path . 'mootools_share_link.tpl');
Then you could edit or style the actual link code in /modules/mootools_share/templates/mootools_share_link.tpl

Also note that if you were to move it into the sidebar you will only want it to appear on story pages. .
Wrap the .tpl file in
Code:
{if $pagename eq "story"}

<--- paste in the contents of mootools_share_link.tpl  ---->

{/if}
Hope that helps.

Last edited by chuckroast; 12-26-2009 at 08:13 PM.
Reply With Quote
  #26 (permalink)  
Old 12-27-2009, 05:27 PM
New Pligger
Pligg Version: 1.3
 
Join Date: Aug 2009
Location: Poland
Posts: 18
chuckroast: your idea of placing module is really smart, but I can't afford it in my case. I can put link in many positions (as in attachement), but not in this which is needed. Is it possible to add code directlty to place where should it be, which will be generating link?
Attached Images
File Type: png mootools.PNG (15.5 KB, 17 views)
Reply With Quote
  #27 (permalink)  
Old 09-06-2010, 11:11 PM
New Pligger
Pligg Version: 1.1.1
 
Join Date: Aug 2010
Posts: 14
im having problems with this module, i get the share text but i if hoover it i dont get the pop up, and if i click it takes me to the comment are. :/
Reply With Quote
Reply

Tags
bookmark, digg, mootools, share

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
MooTools Textarea Yankidank Free Modules 20 09-07-2010 11:35 PM
Share to Facebook ZeroHoursOfSleep Questions and Comments 12 12-10-2009 05:11 AM
[SOLVED] vote it! plugin for wordpress like the digg it one filippodb Questions and Comments 4 07-25-2007 08:46 AM
The madness of crowds. Digg down! smoochr Questions and Comments 3 05-03-2007 02:39 AM
Simultaneous submission to digg jitgos Questions and Comments 1 08-16-2006 06:26 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development