Revision history for TwitterFeed


Revision [23402]

Last edited on 2016-05-20 07:38:48 by PezHore [Replaces old-style internal links with new pipe-split links.]
Additions:
Thoughts? Questions? Let me know. I'm on [[http://wikkawiki.org/TheLounge | IRC]] as Pezhore.
Deletions:
Thoughts? Questions? Let me know. I'm on [[http://wikkawiki.org/TheLounge IRC]] as Pezhore.


Revision [20597]

Edited on 2009-05-07 13:49:18 by PezHore [uploaded version 0.8]
Additions:
- Automatically converts #hashes to a clickable link to search.twitter.com
**Current Version:** 0.8
* Version 0.8
* 0.8 Added clickable #hashes
// Replace #topic with valid link to search.twitter.com
$str_desc = preg_replace("/#(\w+)/", "<a href=\"http://search.twitter.com/search?q=$1\">#$1</a>", $str_desc);
// Replace #topic with valid link to search.twitter.com
$str_desc = preg_replace("/#(\w+)/", "<a href=\"http://search.twitter.com/search?q=$1\">#$1</a>", $str_desc);
Deletions:
* Version 0.7


Revision [20595]

Edited on 2009-05-07 11:52:41 by PezHore [uploaded version 0.7]
Additions:
* Version 0.7
* 0.7 Fixed underscore nick bug not being clickable
$str_desc = preg_replace("/@([a-z,A-Z,0-9,_]*)/", "<a href=\"http://www.twitter.com/$1\">@$1</a>", $str_desc);
$str_desc = preg_replace("/@([a-z,A-Z,0-9,_]*)/", "<a href=\"http://www.twitter.com/$1\">@$1</a>", $str_desc);
Deletions:
* Version 0.6
$str_desc = preg_replace("/@([a-z,A-Z,0-9]*)/", "<a href=\"http://www.twitter.com/$1\">@$1</a>", $str_desc);
$str_desc = preg_replace("/@([a-z,A-Z,0-9]*)/", "<a href=\"http://www.twitter.com/$1\">@$1</a>", $str_desc);


Revision [20593]

Edited on 2009-05-07 09:46:41 by PezHore [uploaded version 0.6]
Additions:
- Automatically converts @username to a clickable link to www.twitter.com/username
* Version 0.6
* 0.6 Added clickable @Nicks
// Replace http:// with valid links

// Replace @username with valid link
$str_desc = preg_replace("/@([a-z,A-Z,0-9]*)/", "<a href=\"http://www.twitter.com/$1\">@$1</a>", $str_desc);
// Replace http:// with valid links

// Replace @username with valid link
$str_desc = preg_replace("/@([a-z,A-Z,0-9]*)/", "<a href=\"http://www.twitter.com/$1\">@$1</a>", $str_desc);
Deletions:
**Future Features**
- Will convert @username to a clickable link to www.twitter.com/username
* Version 0.5


Revision [20592]

Edited on 2009-05-07 08:07:59 by PezHore [uploaded version 0.6]
Additions:
- Fixed in Version 0.5 and above


Revision [20591]

Edited on 2009-05-07 08:07:17 by PezHore [Added version 0.5 of the TwitterFeed action]
Additions:
* Version 0.5
* 0.5 Fixed Nick Bug
$str_desc = $item['description']; // Only using the description for our feed
$pos = strpos($str_desc, $nick); // Find the location of the beginning of the tweet
$pos = $pos + 2; // Add two for the ':' and ' ' characters
$str_desc = substr($str_desc, $pos); // Get everything after the "TwitterNick: "
// Check to see if replies are to be included
} elseif ($replies == 1) // If replies are wanted, show them
else // If this was called improperly, display usage
Deletions:
* Version 0.4
// $cached_output = "<h3>".$meta['title']."</h3>";
// $cached_output .= "<li><a href=\"".$item['link']."\">".$item['title']."</a><br />\n";
$str_desc = $item['description'];
$str_desc = substr($str_desc, 9);
} elseif ($replies == 1)
else


Revision [20590]

Edited on 2009-05-07 07:55:36 by PezHore [Added version 0.5 of the TwitterFeed action]
Additions:
=====Known Bugs=====
- The coding for dropping "Username: " isn't quite up to par. Change line #133 to $str_desc = substr($str_desc, #); where # is the number of characters from of your twitter name + 2 (for ':' and ' '). Working on the fix.


Revision [20584]

Edited on 2009-05-06 21:29:29 by PezHore [Added version 0.5 of the TwitterFeed action]
Additions:
=====Twitter Feed=====


Revision [20583]

Edited on 2009-05-06 14:53:04 by PezHore [Added category]
Additions:
CategoryUserContributions


Revision [20582]

Edited on 2009-05-06 14:50:55 by PezHore [Minor edit adding line breaks]
Additions:
----
----
----


Revision [20581]

The oldest known version of this page was created on 2009-05-06 14:49:53 by PezHore [Minor edit adding line breaks]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki