Retweet webSPELL-News using Tweetmeme

Today I added the "tweet" Button to weSEO.de - you can now easily share the News from weSEO.de to your Followers on Twitter!
If you want your Users to be able to Retweet your News and to add the Tweetmeme Button to your Site, heres an instruction:
Easy - Download, Upload, Use
This is the way for everyone who uses the original webSPELL 4.2.1b news.php, news_comments.php and templates/news.html. (If you are not sure, backup this 3 files so you have them in case that you had a Mod/Addon installed and it doesn't work anymore.)
1) Download the files:
2) Unpack and Upload them to your Webspace (you have to replace them with the old files).
3) Open news.php / news_comments.php and change the Value of $twitteraccount (You find it in Line 2) to the Name of your Twitteraccount.
4) You're ready to retweet your News now!
4.1) You can change the Position of the "tweet"-Button in templates/news.html by moving $retweet to the place you want the Button to appear.
Hardcore - Edit all files by yourself (step by step)
Hardcore sounds like it was only for Coders, but it is not! Everyone can do it - it means searching + adding/editing.
If you are using a newer/older Version then webSPELL 4.2.1b you have to go this way
1) Open news.php
1.1) Search:
Code:
1. | <?php |
Add below:
Code:
1. | $twitteraccount = 'YourTwitterAccount'; // Your Twitter-Account |
(Change the Value of $twitteraccount)
1.2) Search:
Code:
1. | $newsID=$ds['newsID']; |
Add below:
Code:
1. 2. 3. 4. 5. | $retweet = '<script type="text/javascript"> tweetmeme_url = \'http://'.$hp_url.'/index.php?site=news_comments&newsID='.$newsID.'\'; tweetmeme_source = \''.$twitteraccount.'\'; </script> <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>'; |
1.3) Close, save and upload news.php
2) Open news_comments.php
2.1) Search:
Code:
1. | <?php |
Add below:
Code:
1. | $twitteraccount = 'YourTwitterAccount'; // Your Twitter-Account |
(Change the Value of $twitteraccount)
2.2) Search:
Code:
1. | $content=$message_array[$showlang]['message']; |
Add below:
Code:
1. 2. 3. 4. | $retweet = '<script type="text/javascript"> tweetmeme_source = \''.$twitteraccount.'\'; </script> <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>'; |
2.3) Close, save and upload news_comments.php
3) Open templates/news.html
3.1) Add $retweet wherever you want your Tweetmeme Button to appear.
3.2) Close, save and upload templates/news.html Tweet

