Next Page

1

Previous Page

Thread: Twitter pod

Created on: 03/03/09 12:08 PM

Replies: 3

pcsilva


New Member


Joined: 03/03/09

Posts: 2

Twitter pod
03/03/09 12:08 PM

Hi all,

this is my first topic here, my name is Pedro Claudio, I'm in Brazil and I hope you enjoy what I did.

I write a pod twitter, and is working on my blog http://blog.pcsilva.com

Add in blog.ini.cfm
in line 37#blog.ini.cfm
usertwitter=<twitter username>

And add in blog.cfc
in line 97#blog.cfc
<cfset instance.usertwitter = variables.utils.configParam(variables.cfgFile, arguments.name, "usertwitter")>


in line 2566#blog.cfc
<cffunction name="getTwitter" returntype="any" output="false">
<cfset var retuned = StructNew() >
<cfset retuned.query = ArrayNew(1) >
<cfset retuned.fallowme = '' >
<cfset retuned.xml = '' >
<cfif Len(Trim(instance.usertwitter))>
<cfhttp url="http://twitter.com/statuses/user_timeline/#instance.usertwitter#.rss" />
<cfset returned.xml = xmlParse(replace(cfhttp.FileContent,'#instance.usertwitter#:','','all')) >
<cfif NOT StructKeyExists(returned.xml,'hash')>
<cfset retuned.query = xmlSearch(returned.xml,'//item') >
<cfset retuned.fallowme = xmlSearch(returned.xml,'//link') >
<cfset retuned.fallowme = retuned.fallowme[1].xmlText >
</cfif>
</cfif>
<cfreturn retuned >
</cffunction>


then you can use Twitter pod, which is the link below.
http://blog.pcsilva.com/download.cfm?filename=blogcfc%5Fpcsilva%2Ezip&post=Galleon_Forum

zip file has the file of a logo and internationalization pt_BR

[]s
<pcsilva />

Link | Top | Bottom

pcsilva


New Member


Joined: 03/03/09

Posts: 2

RE: Twitter pod
06/25/09 10:29 AM

I am using now for API who builds
http://cftwitterlib.riaforge.org/
and that was approved in APIs' List of twitter
http://apiwiki.twitter.com/Libraries#Coldfusion

Link | Top | Bottom

AnthonyKatgert


Member


Joined: 12/07/09

Posts: 16

RE: Twitter pod
12/20/09 10:01 AM

Silva

I have amended the code in blog.cfc and blog.ini but now I am lost, can you help.

Link | Top | Bottom

AnthonyKatgert


Member


Joined: 12/07/09

Posts: 16

RE: Twitter pod
12/21/09 9:54 AM

Silva

I got it working, just a little fine tuning that's all. Thanks for the additional pod

Link | Top | Bottom

Next Page

1

Previous Page

New Post

Please login to post a response.