zilladotexe:
If you're like me, and just like having social media options on your site, well then check this out.

If you want to add quick social sharing buttons from Google, Facebook, and Twitter to all your posts, just add this code in your theme's Display.template.php. Note that if you have a custom theme without its own Display.template.php, you only need to modify the one in the default directory.

You can replace the following vars with what you like:CUSTOM_TWEET_TEXT = The text you want to tweet. Things such as "Check this out: ', $context['subject'], '" work nicely. You can alternatively leave it empty to use the page's title.PRIMARY_TWITTER_ACCOUNT = The primary account you want to make the tweet via. Leave out the @.SECONDARY_TWITTER_ACCOUNT = Same as above, but you can leave this one empty.

Screenshot:

It's that simple really. This is mainly for those who just want a quick hack without clouding up their installed mods list. :)

NOTE: This code is provided "as-is", and no support will be given as I do not have the time. Thank you for understanding :)

4b11l:
Hello, does this tip only post to one account such as the website account? Or is it like other service where the user is able to login their details and post to their twitter?

zilladotexe:

--- Quote from: 4b11l on June 16, 2011, 06:38:12 PM ---Hello, does this tip only post to one account such as the website account? Or is it like other service where the user is able to login their details and post to their twitter?

--- End quote ---It allows you to input the account you wish for people to follow as well as a secondary account for people to follow. It does not however make tweets through any given account. It just allows member to tweet share the link.

4b11l:
Ah, I see. Thanks.

4b11l:
I just tested it out and it was exactly what I was looking for! Thanks JBlaze, I think it was just that I didn't know how to explain it that I was confused in it's purpose.

It popped up a login for you to login your twitter details and it'll post to that account the custom message and link. I thought it automatically posted to the account listed as the primary.