Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

How can I update the URLs that Drag-To-Share eXtended generates? At least in version 1.13, sharing items for Twitter and Facebook does not produce the proper url string for actually sharing the content on either network.

Facebook, Twitter, and possibly other networks have since changed the url query string methods for sharing...

This would require a quick update to the plugin so it writes up-to-date urls, but I don't know where to look.

share|improve this question
    
not sure what the question is here - flagged. –  anu May 27 '11 at 7:36
    
@vulgarbulgar: It is not clear what you are asking here. Is this a request to the plugin authors to fix the plugin, or is this a question on how to fix the plugin yourself? If it is the latter, please edit your question to make this more clear. –  Jan Fabry May 27 '11 at 7:41
    
@spartacus @Jan Fabry done –  vulgarbulgar May 27 '11 at 9:10
    
@vulgarbulgar: Do you know what the URL should look like now? This will make it easier for someone to go in and fix it. –  Jan Fabry May 27 '11 at 9:23
    
@Jan Fabry for example: is- twitter.com/#!/… –  vulgarbulgar May 28 '11 at 2:17
show 1 more comment

1 Answer

up vote 1 down vote accepted

The URLs are constructed in the wp-dragtoshare-extended.js Javascript file.

For most services you can see how the customUrl is constructed and change it right there. For Twitter you should look a bit lower, in the isGD function, because it does an Ajax request to shorten the link - but maybe this is not needed anymore with the current Twitter sharing service?

If you modify this script you should be aware that the plugin has two versions of the script: wp-dragtoshare-extended.js is the normal version, wp-dragtoshare-extended-packed.js a minified version to speed up loading. The plugin loads the packed version, so either remember to edit that version too (by minifying your edited version) or edit the PHP code so it loads the non-minified version.

share|improve this answer
    
@ Jan Fabry Great info! Thanks so much. I had already started playing with the .js file (I am aware that the minified version is called). Will get back to this thread soon with my results. –  vulgarbulgar May 28 '11 at 23:25
    
All set! Looks like only the Twitter section needed an update- 'home?status=' to 'intent/tweet?status=' –  vulgarbulgar May 30 '11 at 4:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.