Plugin Directory

Changeset 527041


Ignore:
Timestamp:
04/04/2012 03:55:04 AM (13 years ago)
Author:
clarklab
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • make-clickable-tweet/trunk/readme.txt

    r527036 r527041  
    1111== Description ==
    1212
    13 In a recent project, I had a bunch of tweet content saved and needed a way to convert all URLs, hashtags, and user mentions contained within into clickable links. WordPress has a built-in function called [make_clickable()](http://codex.wordpress.org/Function_Reference/make_clickable), so I took it an extra step to make_clickable_tweet(). It’s basically a fancy regular expression, but I figured someone else out there might need it.
     13In a recent project, I had a bunch of tweet content saved and needed a way to convert all URLs, hashtags, and user mentions into clickable links. I found that WordPress has a built-in function called [make_clickable()](http://codex.wordpress.org/Function_Reference/make_clickable), but it just works with plain URLs, so I took it an extra step to make_clickable_tweet(). It's basically a regular expression, but I figured someone else out there might need it.
    1414
    1515== Installation ==
    1616
    17 Using the plugin is pretty dang simple, as the function only has one parameter, the content you wanted returned in a clickable form. To use the plugin, simply activate it then start using the function in your templates like so:
     17Using the plugin is pretty dang simple, as the function only has one parameter: the content you wanted returned in a clickable form. To use the plugin, simply activate it then start using the function in your templates like so:
    1818
    1919`<?php make_clickable_tweet($tweetcontent); ?>`
    2020
    21 Of course, that above function will simply return the tweet content, if you'd like to display it you might want to toss an echo in front of there.
     21Of course, that above function will simply return the tweet content, if you'd like to display it in your templates you might want to toss an echo in front there.
    2222
    2323== Frequently Asked Questions ==
     
    2929== Screenshots ==
    3030
    31 None yet
     31None yet (or probably ever)
    3232
    3333== Changelog ==
     
    4343== Upgrade notice ==
    4444
    45 None yet
     45None yet (or probably ever)
Note: See TracChangeset for help on using the changeset viewer.