How do we make the Drigg button smarter? (parameters that prepopulate title and body)

bflora - February 10, 2009 - 03:11
Project:Drigg External Vote Button
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

There should be lines in the Drigg button JS that will let the user insert hooks for the story title and story body.

So the js should look like this:

<script type="text/javascript">
url_site = 'url_goes_here';
        title = 'title_goes_here';
        body = 'body_goes_here';
</script>
<script src="http://www.windycitizen.com/sites/all/modules/drigg_external/js/button.js" type="text/javascript"></script>

Then you'd need to add some lines to the .js file itself and the .module file to work with this new info and have it be in the URL as follows

http://www.domains.com.com/node/add/drigg/?url=url_goes_here&title=title...

That would make this already awesome button even cooler.

 
 

Drupal is a registered trademark of Dries Buytaert.