>> GreenByte.info By Nick Tong (quiksilv) | Supported by: TalkWebSolutions.co.uk

New site launch: talkingjobs.net

My company TalkWebSolutions have just finished a new website called talkingjobs.net. The site is aimed at school kids looking for careers:

TALKING JOBS is a web based video resource for careers teaching and services in secondary schools, suitable for both classroom and independent use.

The site is built on fusebox 5.5 with Transfer and coldspring lexicons which made the development rather rapid. It also uses a rather intuitive flash player to show the interviews which was developed by Simon Hamilton.

Anyway please take a look and let me know if you spot anything wrong :) talkingjobs.net

Any comments welcomed.


coldfusion community website - DNS issue

Over the past couple of days the DNS host (123-reg) for coldfusioncommunity.org have been having some issues and as a result you may not have been able to get onto the site. They appear to have resolved these issues now, so you should be able to access it.

If (and I really I hope it doesn't) this should happen again you can do what Sean Corfield suggest and add the following to your local hosts file

[More]


Add Meebo to blog cfc

If you've not yet used Meebo head over to their site and check it out or read the extract below - it's a great webclient for instant messaging and a good example of what web2.0 is all about.

meebo.com is a website for instant messaging from absolutely anywhere. Whether you're at home, on campus, at work, or traveling foreign lands, hop over to meebo.com on any computer to access all of your buddies (on AIM, Yahoo!, MSN, Google Talk, ICQ and Jabber) and chat with them, no downloads or installs required, for free!

Now that you know what it is maybe you want it on your blog so here's what you do. In your admin area create a text block and add your meebo code i.e.

<!-- Beginning of meebo me widget code. Want to talk with visitors on your page? Go to http://www.meebome.com/ and get your widget! --> <embed src="http://widget.meebo.com/mm.swf?YOURCODEHERE" type="application/x-shockwave-flash" wmode="transparent" width="160" height="250"></embed>

Then create a page called meebo.cfm in the includes/pods directory and make this call the blocktext you just created

<cfsetting enablecfoutputonly=true>
<cfprocessingdirective pageencoding="utf-8">
<!---
   Name : meebo.cfm
   Author : Nick Tong
   Created : Dec 2006
   Last Updated :
   History :
   Purpose       : Display links box
--->


<cfmodule template="../../tags/podlayout.cfm" title="Meebo">
<!--- here we use the textblock to get information for the pod --->
<cfset request.textBlock = application.textblock.getTextBlock("meebo") />
<cfoutput>
<!--- check to make sure that the body exists (this may get updated at some point so we need this check) --->
<cfif structKeyExists(request.textBlock,"body")>
#request.textBlock.body#
<cfelse>
Text block failed
</cfif>

</cfoutput>

</cfmodule>

<cfsetting enablecfoutputonly=false>

Then in your tags/layout.cfm file add the incude to the pod

<cfinclude template="../includes/pods/meebo.cfm">

And that's it, you've got meebo on your blog. See mine on the left and say hi!!


Adding report abusive comments to blogCFC

You may notice i;ve been making a few changes to blogCFC over the past couple of days - here's another.

Have ever have people adding bad comments to you blog entries? Do you have nice readers who are willing to let you know about them?

If you've answered yes to the above questions you may wish to do the following to enable your uses to report bad comments - hell you may just want to do it for the fun of it!

[More]

Changes to more tag in blogCFC for rich text editors

Due to the rich text editor changing the way the <more/> tag/snippet is rendered (it makes it disappear) I've changed admin/entry.cfm to check for [more/] instead.

Change lines 21 and 131 from <more/> to [more/].

If you don't know what "more" does:

<more/>: Sometimes a blog entry may be very long. It is preferable to show only a portion of the entry on the main blog and have the detailed link contain the entire entry. By using the <more/> tag in your blog entry, any text after the <more/> tag will only show up on the individual entry display. You must include the closing / in the tag. When blog entries are emailed, only the text before the <more/> tag is included.

Obviously we use [more/] now not <more/> as take from the docs.

Be careful - The position of this tag/snippet can cause errors with the layout of your blog (as with <more/>) If this tag is placed after say a div i.e. <div><p>[more/] this will cause your blog display to go out of kinder.

Adding TinyMCE to blogCFC admin area

It's quite easy to get the admin entries editor to use tinyMCE. All you have to do is edit the textArea.cfm file which is found in /blog/tags/.

Updating the editor page

Add this code to the textArea.cfm page (just beneith the output tag)

<cfsavecontent variable="request.tinyMCE">

<!-- tinyMCE -->
<script language="javascript" type="text/javascript" src="#application.rooturl#/includes/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
   tinyMCE.init({
      mode : "textareas",
      theme : "advanced",
      plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print,contextmenu,paste,directionality,fullscreen",
      theme_advanced_buttons1_add : "fontselect,fontsizeselect",
      theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor",
      theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
      theme_advanced_buttons3_add_before : "tablecontrols,separator",
      theme_advanced_buttons3_add : "emotions,iespell,flash,advhr,separator,print,separator,ltr,rtl,separator,fullscreen",
      theme_advanced_toolbar_location : "top",
      theme_advanced_toolbar_align : "left",
      theme_advanced_statusbar_location : "bottom"
   });
</script>

<!-- /tinyMCE -->

</cfsavecontent>
<cfhtmlhead text="#request.tinyMCE#" />

As the tinyMCS javascript needs to be in the header of the page we save the JS content to a variable called request.tinyMCE using cfsavecontent - we then post this to the header of the page using coldfusions cfhtmlhead tag.

Setting up tinyMCE - As easy as 1,2,3

1. Create a folder called 'tinymce' in the /includes/ folder (/blog/includes/)
2. Copy the jscripts folder (from your tinyMCE download) into the includes folder so you should have this structure /blog/includes/tinymce/jscripts/
3. Test - go into your admin area, click add entry watch it load.

You can call this textArea.cfm from the page.cfm and textblock.cfm

<cfmodule template="../tags/textarea.cfm" fieldname="body" value="#htmlEditFormat(form.body)#" class="txtArea">

Remember to brake out of the cfoutput when calling this module.

What is TinyMCE

TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL by Moxiecode Systems AB.

Controlling blogCFC PODs with textBlocks

If you use/change PODs a lot in blogCFC then it might be an idea to pass control of the POD content to the admin area. You can do this using the TextBlock feature.

Once you have created and uploaded your pod (code shown below) you will no longer have to upload the pod page again to make changes as this can be done via the textBlocks feature in the admin area.

How?

1. Create a 'Textblock' in the Admin area and take note of the Label. The body/text you enter here will show in your POD. Note: CF in not valid.

2. Create your POD page in your \blogname\includes\pods\ folder. This should be the only time you touch this.

3. Add your pod to your \blogname\tags\layout.cfm page (with a cfinclude) i.e.

4. Upload your pages (yourNewPod.cfm and layout.cfm) - you can do this in the file manager

Use this code in your POD page:

<cfsetting enablecfoutputonly=true>
<cfprocessingdirective pageencoding="utf-8">

<cfmodule template="../../tags/podlayout.cfm" title="Links">
<!--- here we use the textblock to get information for the pod --->
<cfset request.textBlock = application.textblock.getTextBlock("YourTextBlock") />
<cfoutput>
<!--- check to make sure that the body exists (this may get updated at some point so we need this check) --->
<cfif structKeyExists(request.textBlock,"body")>
#request.textBlock.body#
<cfelse>
Text block failed
</cfif>

</cfoutput>

</cfmodule>
   
<cfsetting enablecfoutputonly=false>

Many thanks to rwhaun.

blogcfc pages and google reader mashup

I not really sure if this is a true mashup but I thought i'd used a 'hot' word.

I have used the new feature in blogCFC - Pages and the Google reader javascript function to create a dynamic aggregator of my rss feeds.

Click here to view it

Running on BlogCFC 5.1 RC1

Ray Camden is a man possessed. He released the latest version of BlogCFC into its release candidate format. In the latest version we have:

  • Spry and AJAX in the admin
  • You can include textblocks in pages and blog entries. Simply use this format:
  • Some small UI changes
  • Caching to the RSS page
  • Rich Text Editor support - a easy to edit custom tag (this is where you would add you RTE)
  • Gravatars support
    Gravatars are icons you can use to represent yourself across a whole network of sites.

So if you've not grabbed the latest version then I suggest you do. You can get it from the repository link @ blogCFC

Running on BlogCFC 5.1 Alpha Part 2

No sooner I update to blogCFC alpha Ray decides to release another. This time the admin area contains a link for text blocks?

What the heck are text blocks?

Text blocks allow you to create... wait for it.... text blocks. These newly created text blocks can then be output on your screen, in pods the site layout - where every you like.

An example of using a text block could be that you want to advertise a local events in your area. You create a pod add the output code (show below) and away you go. Hang on... why not just add the event info directly to the pod and upload that? Well if the event changes a lot why would you want to play about with the pod code each time, you can just edit the text block.

To output your newly created text blocks add this to your code/pod etc

<cfoutput>#application.textblock.getTextBlockContent("textBlockName")#</cfoutput>

To see what else you can do/use with text blocks just dump the textblock function:

<cfdump var="#application.textblock#" label="textblock" />

What this would be great is if you could output coldfusion within the 'Pages' (see related link). This way you could stay away from the blog code even more.

MSSQL for textBlocks table:

CREATE TABLE [dbo].[tblBlogTextBlocks] (
   [id] [nvarchar] (35) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
   [label] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
   [body] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
   [blog] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

More Entries

BlogCFC was created by Raymond Camden. This blog is running version 5.5.1.