Modifying Tweet Old Post WordPress Plugin
Want to share this article? Please use this short URL: http://1click.at/52
Today I just want to show you how to modify the WordPress plugin Tweet Old Post (http://www NULL.ajaymatharu NULL.com/wordpress-plugin-tweet-old-posts/).
I wanted to add my new URL shortening service 1click.at (http://1click NULL.at) to this nice plugin.
Well, it is really very easy to do. Here is what files need to be modified:
1. top-admin.php
2. top-core.php
You can find both files in your wp-content/plugins/tweet-old-post folder.
Open top-admin.php with your favourite editor (in my case Notepad++).
Search for the line (should be line 204)
204 | <select name="top_opt_url_shortener" id="top_opt_url_shortener" onchange="javascript:showURLAPI()" style="width:100px;"> |
Now add (directly after the line, if you want)
<option value="1click" '.top_opt_optionselected('1click',$url_shortener).'>'.__('1click', 'TweetOldPost').'</option>
and save the changes to the top-admin.php file.
Open the file top-core.php and search for (should be line 153)
153 | //Shorten long URLs with is.gd or bit.ly. |
What I did now is added the following code
} elseif ($shortener=="1click") { $url = "http://1click.at/api.php?action=shorturl&url={$the_url}&format=simple"; $response = send_request($url, 'GET');
AFTER line 176
174 175 176 | } elseif ($shortener=="tinyurl") { $url = "http://tinyurl.com/api-create.php?url={$the_url}"; $response = send_request($url, 'GET'); |
Now you can see in the Tweet Old Post admin panel that there is a new URL shortening service called 1click.
Use it, enjoy it
Related posts:
- WordPress Resources Good evening everyone. This time I spit out my collection...
- WordPress 2.7.1 featured articles plugin Here you will find a featured articles plugin for WordPress...
Related posts brought to you by Yet Another Related Posts Plugin.
Category: WordPress | Tags: Modifying, plugin, Tweet Old Post, WordPress | 6 comments


April 9th, 2010 at 11:17 am
Modifying Tweet Old Post WordPress Plugin http://blog.computer-service-mallorca.co.. (http://blog NULL.computer-service-mallorca NULL.co NULL. NULL.). #webdesign
via Twitoaster (http://twitoaster NULL.com/country-es/invocoes/modifying-tweet-old-post-wordpress-plugin-webdesign/)
April 9th, 2010 at 11:19 am
RT @invocoes: Modifying Tweet Old Post WordPress Plugin http://blog.computer-service-mallorca.co.. (http://blog NULL.computer-service-mallorca NULL.co NULL. NULL.). #webdesign
via Twitoaster (http://twitoaster NULL.com/country-es/invocoes/modifying-tweet-old-post-wordpress-plugin-webdesign/#comment-11871993872)
May 8th, 2010 at 7:49 pm
Modifying Tweet Old Post WordPress Plugin http://blog.computer-service-mallorca.co.. (http://blog NULL.computer-service-mallorca NULL.co NULL. NULL.). #webdesign
via Twitoaster (http://twitoaster NULL.com/country-es/invocoes/modifying-tweet-old-post-wordpress-plugin-webdesign-2/)
May 8th, 2010 at 7:49 pm
Modifying Tweet Old Post WordPress Plugin http://blog.computer-service-mallorca.co.. (http://blog NULL.computer-service-mallorca NULL.co NULL. NULL.). #webdesign
via Twitoaster (http://twitoaster NULL.com/country-es/invocoes/modifying-tweet-old-post-wordpress-plugin-webdesign-2/)
May 9th, 2010 at 3:03 am
RT @invocoes: Modifying Tweet Old Post WordPress Plugin http://blog.computer-service-mallorca.co.. (http://blog NULL.computer-service-mallorca NULL.co NULL. NULL.). #webdesign
via Twitoaster (http://twitoaster NULL.com/country-es/invocoes/modifying-tweet-old-post-wordpress-plugin-webdesign-2/#comment-13638540933)
May 9th, 2010 at 3:03 am
RT @invocoes: Modifying Tweet Old Post WordPress Plugin http://blog.computer-service-mallorca.co.. (http://blog NULL.computer-service-mallorca NULL.co NULL. NULL.). #webdesign
via Twitoaster (http://twitoaster NULL.com/country-es/invocoes/modifying-tweet-old-post-wordpress-plugin-webdesign-2/#comment-13638540933)