By chadchandler on
Go to this link http://www.pligg.com/demo/ and on the bottom right hand corner of the teaser is a button called " Bury" . Click it and watch as it uses javascript to trigger a CSS opacity fade "aka bury".
What would be needed to get something like this working? :) Anyone interested in a way for your user to discard content they are not interested in?
Comments
That website relies on
That website relies on script.aculo.us to do the javascript/CSS magic. So I guess it's only a matter of inserting a call to script.aculo.us function into your favourite voting module's script. I wanted to test that, but script.aculo.us website seems to be broken. Will try again later.
I would be really excited to
I would be really excited to see this and I don't mind compensating you ($) for your efforts. I would probably use this is the "down" in the Vote Up/Down module.
Let me know if you make any progress and feel free to email me .
Yep. I'd like to have this,
Yep. I'd like to have this, too.
I'm looking to see if there
I'm looking to see if there are any Jquery plugins that would be close?
i was running pligg for
i was running pligg for almost a year when one day it went down. I was really upset and switched.
Here's my first take on it -
Here's my first take on it - this works only for nodes and when the page is reloaded all effects are lost. Tested with Drupal 5.2 and vote_up_down 1.1.
I've never learnt Javascript so the code might be suboptimal.
I used scriptaculous libraries that are available here. The ones on script.aculo.us website conflict with vote_up_down's Javascript.
Then I added a few lines to ajax_vote_up_down.js (in modules/vote_up_down) which now looks like this:
Without script.aculo.us
After doing some research I have realised that if the fade effect is all you need you can use a much smaller script, for example this one. Unfortunately it does not work in IE6 if the element you are fading does not have a set width and/or height.
As for making the effext persistent, I think that should be done through templates.