TweetMeme allows you to change the Twitter username of the retweeted tweet. My Drupal sites have their own Twitter accounts, so I would like to replace the @tweetmeme with the Twitter account for the Drupal site. Perhaps this could be added to the module configuration? It requires a slight modification of the TweetMeme button code.
The following information was taken from http://help.tweetmeme.com/2009/04/06/tweetmeme-button/
Changing the @username who is tweeted
By default the retweet button will be in the format of “RT @tweetmeme
”. You can, however change the button to retweet your user account. By specifying the ‘tweetmeme_source’ parameter in the JavaScript you can change the format to “RT @yourname
”.<script type="text/javascript"> tweetmeme_source = 'tweetmeme'; </script> <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>The example above would retweet in the format of “RT @tweetmeme
”.
Thanks.
Cheers,
Louis
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | changename.png | 20.74 KB | robloach |
Comments
Comment #1
cledman commentedI did something like that today. I think you need something more complex, because I did it just for one site. You need it for more sites, dont you?
so..
I just add the follow line on the tweetmeme.module , in the function
$output .= 'tweetmeme_source = "' . $vlink . '";' ; where $vlink is what you wanna show (link $vlink="tweetmeme", so it shows @tweetmeme).
This line goes after
$output = '
Comment #2
Rhino commentedWhat about simply changing the username so that it's our sites twittername rather than @tweetmeme?
Might be something one could set in the admin settings in the future.
Just a thought.
cledman, did you find these lines in tweetmeme.module? I find no $output = 'tweetmeme_url = "' . $url . '";' ; line in that module. Am I missing something/misunderstanding?
Comment #3
robloachWait a second, wasn't this committed in #549208: Settings for twitter username and shortening service?
Comment #4
cledman commentedhi
so.. i found the line as i said before.
but if you want, i can send you my file.
let me know if you want it, ok?
thanks
Comment #5
berget commentedI still don't understand how to change RT @tweetmeme to my username (@berget). I have been looking at the various files in this module and I've found a javascript from a link above, but I don't know where to do the changes.
Can you please help. I probably need detailed descriptions.
Thanks.
- Jens
Comment #6
robloachIt's in the administration....