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

CommentFileSizeAuthor
#6 changename.png20.74 KBrobloach

Comments

cledman’s picture

I 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 = '

tweetmeme_url = "' . $url . '";' ;
Rhino’s picture

What 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?

robloach’s picture

Version: 6.x-1.2 » 6.x-1.x-dev
Status: Active » Needs review

Wait a second, wasn't this committed in #549208: Settings for twitter username and shortening service?

cledman’s picture

hi
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

berget’s picture

Category: feature » support
Status: Needs review » Active

I 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

robloach’s picture

Status: Active » Fixed
StatusFileSize
new20.74 KB

It's in the administration....

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.