Trackbacks working on my blog
I hopefully have trackbacks working on my blog now. If you want to test the methods given in my trackbacks article you can trackback to this post.
Here's some code I use to check and see if my trackbacks was successful:
<cfset tbError = ReReplaceNoCase(cfhttp.filecontent, ".*<error>()</error>.*", "\1")> <cfif tbError EQ 1> <cfset tbMessage = ReReplaceNoCase(cfhttp.filecontent, ".*<message>([^<>]+)</message>.*", "\1")> <cfoutput>Track Back Error: #tbMessage#</cfoutput> <cfelse> <cfoutput>TrackBack Successful</cfoutput> </cfif>
It's using regular expressions, but you could also just as easily parse the XML with XmlParse.
Like this? Follow me ↯Tweet Follow @pfreitag
Trackbacks working on my blog was first published on March 29, 2005.
If you like reading about trackbacks, cfml, or blog then you might also like:
- Over 90% of trackbacks were spam
- How To Make a Tag Cloud
- Auto-Linking Comments
- Trackback Salt
- Trackbacks with ColdFusion