To Top
(8) (1) (2) (1) (1) (1) (3) (1) (2) (5) (1) (1) (1) (2) (1) (1) (1) (1) (1) (12) (14) (1) (1) (1) (1) (1) (2) (1) (2) (2) (1) (1) (1) (1) (2) (2) (1) (1) (1) (2) (2) (1) (2) (1) (1) (1) (2) (1) (1) (16) (1) (1) (2) (1) (2) (1) (3) (1) (1) (1) (1) (1) (2) (1)
   Tags

Latest Tweets

Tweet

…just my two cents.


Modifying Tweet Old Post WordPress Plugin

Want to share this article? Please use this short URL: http://1click.at/52

Modifying Tweet Old Post Plugin

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 ;-)

VN:F [1.9.3_1094]
Rating: 0.0/5 (0 votes cast)
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •   (http://www NULL.tumblr NULL.com/share?v=3&u=http%3A%2F%2Fblog NULL.computer-service-mallorca NULL.com%2F2010%2F03%2F05%2Fmodifying-tweet-old-post-wordpress-plugin%2F&t=Modifying+Tweet+Old+Post+WordPress+Plugin)
  •   (http://twitter NULL.com/home?status=Modifying+Tweet+Old+Post+WordPress+Plugin+-+http://1click NULL.at/52&source=shareaholic)
  •  

Related posts:

  1. WordPress Resources Good evening everyone. This time I spit out my collection...
  2. 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: , , , | 6 comments

Twitter Trackbacks

Facebook comments:

6 Replies to “Modifying Tweet Old Post WordPress Plugin”

  1. invocoes
    invocoes (http://twitoaster NULL.com/country-es/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. paulmilford
    paulmilford

    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)

  3. invocoes
    invocoes (http://twitoaster NULL.com/country-es/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/)

  4. invocoes
    invocoes (http://twitoaster NULL.com/country-es/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/)

  5. comike011
    comike011

    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)

  6. comike011
    comike011

    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)




Leave a Reply



CommentLuv Enabled
Maximum 2 links per comment. Do not use BBCode.

Back to top