blog@fourdown.org


New Twitter Pages, ColdFusion function for Twitter



Added 3 new Twitter pages on the site -

Users' Twitters - follow all the players here at fourdown who have entered their Twitter username into their profile. Want your feed displayed on this page? Click the profile button in the top-right of the site and enter your username! (you don't have to give us your password, don't worry)

Wrestlers' Twitters - follow all the verified wrestler Twitter feeds on one easy page. Know any other wrestlers on Twitter? Let us know!

And the best one..

Chris Jericho vs The Miz - follow the battle between Chris Jericho and The Miz on Twitter and see what other people on Twitter are saying about the feud!

I've also updated all Twitter feeds displayed across the site so links are automatically made hyperlinks, and the special Twitter items - using @ to direct your message to someone and # to talk about a topic - now link either to the user or to the topic!

Here's the ColdFusion function I wrote to parse the Twitter-specific items -

<cffunction name="twitterParse" access="public" output="yes" returntype="string">
<cfargument name="input" required="Yes" type="string">

<cfset inputReturn = REReplaceNoCase(input, '(^|\s)@(\w+)', '\1@<a rel="nofollow" target="_blank" href="http://www.twitter.com/\2">\2</a>', 'ALL') />
<cfset inputReturn = REReplaceNoCase(inputReturn, '(^|\s)##(\w+)', '\1##<a rel="nofollow" target="_blank" href="http://twitter.com/search?q=%23\2">\2</a>', 'ALL') />

<cfreturn inputReturn>
</cffunction>




What our players have said about this blog..
USER COMMENT
You must be logged in to leave a comment.
# Final Verdict
Final Verdict
Administrator of
3 Count Wrestling

Great idea Clet, I haven't used twitter in while, but I may start back up again.

Posted on July 29, 2009 at 1:41 PM
You must be logged in to leave a comment.

Powered by BlogCFC v5.9.004 from Raymond Camden


4down superstars





4down territory

Latest Fantasy Blog Show Posts Author Show Comments Rating 
Huge News for Show Jan 25   TheWrestler WWE Superstars V2 2 0.00 
10/3 WWE Alpha Raw, Episode 11 Feb 13   edawg32 Temporary WWE Alpha 0 0.00 
9/27 WWE Gamma SmackDown Live, Episode 10 Feb 10   edawg32 WWE Gamma 0 0.00 
9/26 WWE Alpha Raw, Episode 10 Feb 09   edawg32 Temporary WWE Alpha 0 0.00 
Wrestlemania 33 Card Update Dec 28   TheWrestler WWE Special Events 3 0.00 
Visit the Fantasy Blog Show Home - Fantasy blog shows are where our players can create their own wrestling company and book TV shows and PPVs using any wrestlers past or present - or even create wrestling personas for players here at the site and put them to battle!
Latest Non-Fantasy Blog Show Posts Author Show Comments Rating 
WrestleMania 34 Jan 24   radschord89 LLWE non fantasy shows 0 0.00 
WrestleManis 33 (Predictions) Apr 02   radschord89 LLWE non fantasy shows 0 0.00 
Wrestlemania 33 Match Predictions Jan 04   radschord89 LLWE non fantasy shows 0 0.00 
Wrestlers with 1 or less days as WWF/WWE Champion Dec 16   radschord89 LLWE non fantasy shows 0 0.00 
Roadblock: End of the Line (Raw Exclusive) Predictions Dec 12   radschord89 LLWE non fantasy shows 4 0.00 
Visit the Non-Fantasy Blog Show Home - Our non-fantasy blog shows are series of blogs that deal with past or current wrestling topics and can also include fantasy booking - how the author would like to see current wrestlers be used on TV or how storylines could play out.