Shaun Mccran

My digital playground
 
29
A
P
R
2010

Using Feed burner RSS feeds with your Blog and auto tweeting to your Twitter Account

Feed burner is a Google product that allows you to consume and distribute your RSS feeds in a much more in depth way than simply displaying the information in a raw XML format. It allows you to analyse the usage of a feed, add social links into feed articles and push the content onto other web platforms, like Twitter and Facebook.

In this article I will display what I like to call the 'Distributed social circular'. This means that when you create a new Blog article feed burner will automatically consume it, update your RSS feed subscribers, and post a custom formatted Tweet to your Twitter account, hopefully driving more visitors to the original article.

[More]

 
05
A
P
R
2010

Blog redesign and a version update to BlogCFC 5.9.5

I've been running an older version of Blog CFC for a while now, so I thought it was well past due an update to the latest version. It seemed like a good time to give the site a lick of paint, so I have de- web 2.0'd it. At some point I got swept up in the curved corners and shiny gradients of Web 2.0ness, and now I just plain don't like it.

If you didn't know already you can get BlogCFC from RIA forge here: http://blogcfc.riaforge.org/. There seem to have been some nice tweaks in the last few versions, and it's nice to see a software application maturing.

In the process of redesigning the site I came across this recent survey of the installed user base for windows fonts. It is always risky for a developer to use a non standard font, so surveys like this are ideal. http://www.codestyle.org/css/font-family/sampler-WindowsResults.shtml

Also I had a little Photoshop help creating the image header. Here is a pretty painless Photoshop tutorial on "Fade Images in Photoshop Using Layer Masks", http://articles.sitepoint.com/article/photoshop-fade-layer-mask

Lastly I've added some Feedburner integration. Feedburner is a great way of consuming your RSS feeds, it adds a whole load of options, and allows you to push feed content out to other community sources, such as Twitter or FaceBook. It also provides stats, a la Google Analytics style, and its free (requires a Google account)! http://feedburner.google.com.

I think I took two things away from this redesign. Firstly, double check your CSS. The only real issues I had during the entire process were CSS related (thanks IE). Secondly index your database properly. I'm not sure if the previous install was indexed at all, or whether the new version just has better indexing in the installation scripts, but the performance difference is notably quicker!

 
18
O
C
T
2009

Converting Word Press Cumulus plugin to BlogCFC

The other day I saw the Word Press Blog Cumulus plugin (http://wordpress.org/extend/plugins/wp-cumulus/) on a fellow bloggers site, and thought 'I like that, I wonder if it will work inside the Blog CFC framework'. I thought I'd convert it so that it would.

The Cumulus plugin uses the regular Blog category cloud and turns it into a three dimensional rotating globe. It does this using a flash object, and a series of parameters passed in as flashvars.

view plain print about
1<s/cript type="text/javascript" src="#application.rootURL#/includes/swfobject.js"></script>
2    <div id="flashcontent">This will be shown to users with no Flash or Javascript.</div>
3
4    <s/cript type="text/javascript">
5        var so = new SWFObject("#application.rootURL#/includes/tagcloud.swf", "tagcloud", "170", "120", "7", "##ffffff");
6        // uncomment next line to enable transparency
7        //so.addParam("wmode", "transparent");
8        so.addVariable("tcolor", "0x3258B8");
9        so.addVariable("mode", "tags");
10        so.addVariable("distr", "true");
11        so.addVariable("tspeed", "100");
12        so.addVariable("tagcloud", "#variables.tagsList#");
13        so.write("flashcontent");
14    </s/cript>

You need to include the 'swobjects.js' reference call to process to swf, otherwise the 'flashcontent' div will be displayed.

The flashvars include the variable 'tagcloud', this controls which tags are displayed, what their colors are, and where the go (URL). These are generated in a cfsavecontent variable almost as a list.

view plain print about
1<cfsavecontent variable="variables.tagsList"><tags><cfloop query="tags">
2                <cfif tags.tagCount EQ min>
3                    <cfset size="9">
4                <cfelseif tags.tagCount EQ max>
5                    <cfset size="20">
6                <cfelseif tags.tagCount GT (min + (distribution*2))>
7                    <cfset size="16">
8                <cfelseif tags.tagCount GT (min + distribution)>
9                    <cfset size="13">
10                <cfelse>
11                    <cfset size="11">
12                </cfif><a href='#application.rootURL#/index.cfm?mode=cat%26catid=#tags.categoryid#' style='#size#' <cfif len(variables.color)> color='0x#variables.color#' </cfif> <cfif len(variables.hicolor)> hicolor='0x#variables.hicolor#' </cfif> >#lcase(tags.tag)#</a></cfloop></tags></cfsavecontent>

The swf will control the color of the Tags based on their sizing, or you can specify a 'color' and a 'hicolor', which are the regular color and the highlight color respectively. I have placed the swfobject.js and the tagcloud.swf in my site/includes/ directory, but you can put it where you want, just edit the links.

You can download the code from RIA forge here: Link

Thanks to Roy Tanck for the documentation on how the Cumulus plugin works:

http://www.roytanck.com/2008/05/19/how-to-repurpose-my-tag-cloud-flash-movie/

 
10
J
U
L
2009

Upgrading Blog CFC from 5.8.001 to 5.9.3.006

I've been having the odd database login problem, and RSS feed issue when this site gets spidered by search bots. I can't really give my web host much grief about it as I don't know if either of these issues have been fixed in newer releases of Blog CFC.

So last night I set about upgrading to the newest release. Now like most developers I rarely find that an application does exactly what I want out of the box, so I had modified several small areas of the installation to suit my needs. This left me with the dilemma of not being able to just copy the new code over the top.

There is a tool I have used in the past called Beyond Compare from Scooter software http://www.scootersoftware.com/. It is a file and folder comparison tool that allows you to enter individual files and resolve potential conflicts at line level if need be.

After an hour or so of running through the newest release of Blog CFC, which you can get here, http://blogcfc.riaforge.org/ I had merged in all the new change sets into my base code, and run the database scripts and bingo! I was up-to-date. Far more easily done than I would have thought.

My only gripe is that he wrote SQL change scripts for mySQL rather than MSSQL, but then that's just personal preference.

It would be nice to have an entirely separate skinning module, that way you could just replace code bases, but if you are running your Blog then chances are you can deal with that.


This content is purely my opinon, any offence or errors are unintentional, please comment your views appropriately
Site Credits
Aggregated by ColdfusionBloggers.org Powered by Coldfusion

Technology & Science Blogs - BlogCatalog Blog Directory Blog Directory & Search engine