Welcome to weSEO

Login

Welcome back, nice to see you again.

Register - it's free!

Comment, spread your love, communicate

Welcome back!

Nickname:

Password:

Lost your Password?

Create your new Account

Sign in with Twitter

Nickname:

Mailadress:

Retweet webSPELL-News using Tweetmeme

Twitter Homepage
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


Avatar
mr92 - 15.09.2009 - 15:07
With these Addons Webspell becomes more confortable, i think it is quiet a good CMS, but it has to comply with the new standarts (RSS-Feed, Twitter, Social Bookmarking)!

Pascalmh - 16.09.2009 - 08:36
Agree. Adding Tweetmeme or Social Bookmark-Buttons to the Site where you are actually reading a News [index.php?site=news_comments&newsID=123] is not that difficult in fact, it is easy you simply paste the Code you get from the Social Bookmarking-Site. Its only hard to add to the Main News Site [index.php?site=news] since the Buttons normally just pass the Title and the Address of the Site it is placed on...

Please Login to leave a Comment.

Sign in with Facebook Sign in with Twitter