Jake Churchill

… on Flex, ColdFusion, FarCry, and much more …

  • Home
  • About
  • Projects

24

Oct

Farcry Custom Permission Sets

Posted by Jake Churchill  Published in Farcry

I don’t really recall at this point how I got started messing around with this but I think it’s pretty neat.

I was wondering how to create custom permissions for custom types. For example, when I do a custom type, I have traditionally applied the news permissions to it so anyone who has permissions to add/edit news items would be able to add/edit my custom type. But, what if you want specific permissions for your type? Here’s how you do it (in Farcry 3 that is)…


continue reading "Farcry Custom Permission Sets"

no comment

22

Oct

Farcry View Permissions Outside the Tree

Posted by Jake Churchill  Published in Farcry

I have talked before about branch specific permissions on the site tree which go a long way to creating effective “members only” sections to your website. Recently, however, I was tasked with a situation that was slightly different.

CF Webtools works with a lot of financial sites using a product called Finwin. This is one of the first times we have put a financial site into Farcry so the unique challenge was to create a displayTeaser.cfm page for dmNews but have the content of the news stories protected. This sounds easy enough but, here is where I ran into an issue…

Farcry automatically associates an objectid with a “type” and automatically looks for a displayPage.cfm file associated with that type. The branch specific permissions are handled by the display.cfm file inside the core files. So, here is what I did to accomplish this task:


continue reading "Farcry View Permissions Outside the Tree"

no comment

19

Sep

BlogCFC Last ‘n’ Entries

Posted by Jake Churchill  Published in ColdFusion

A question came my way today about Ray Camden’s BlogCFC and I hope I’m not stepping on Ray’s toes by answering it. Someone wanted to know how to configure the default entries that show up. Some of his were dropping off after a certain time frame and he wanted to increase the default time frame. So, here’s how it’s done…

Blog.cfc in org/Camden/blog in the blog’s install folder has a function getEntries() which takes a ‘params’ structure. The ‘params’ structure is passed to the function in index.cfm of your blog instance. Here’s that code:

<cftry>
      <cfset articles = application.blog.getEntries(params)>
      <!--- if using alias, switch mode to entry --->
      <cfif url.mode is "alias">
            <cfset url.mode = "entry">
            </cfset><cfset url.entry = articles.id>
      </cfset></cfif>
      <cfcatch>
            <cfset articles = queryNew("id")>
      </cfset></cfcatch>
</cfset></cftry>


continue reading "BlogCFC Last ‘n’ Entries"

no comment

17

Sep

IE6 PNG Transparency Fix

Posted by Jake Churchill  Published in CSS

I had to use a .png file with alpha transparency on a site which works fine in both IE7 and Firefox 2. However, IE6 does not like it at all. There is a fix out there called pngfix.js which works great if you have an img tag but this was a background image set in the CSS. Here’s what I did:

#wrap {
	margin:0px auto;
	background-image:url('/IMG/wrap_bg.png');
	background-repeat:repeat-y;
}
* html #wrap {
	background-image:none;
	filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/IMG/wrap_bg.png', sizingMethod='scale');
}

This worked like a charm!

3 comments

7

Sep

Farcry Example: BryanLGH College

Posted by Jake Churchill  Published in Farcry

Here’s the latest Farcry site that I did which just went live yesterday. We are still cleaning a couple things up and the client is building a couple of flash widgets to put on here. This takes advantage of Farcry Snippets and has a great calendar built in. This is a re-styled version of a calendar that I’ve been using. Here’s the link:

http://www.bryanlghcollege.org

EDIT: I should also mention that this site is Farcry 3.0.2 running on a Linux/Oracle backend.

no comment

7

Sep

CFMAILPARAM Sender

Posted by Jake Churchill  Published in ColdFusion

I’m writing this to hopefully allow other people to avoid the issues I’ve had with one of the sites I support. This particular client’s business revolves around sending emails so it is obviously important that the end user receive those emails. Spam filters are more and more getting in the way. One thing you have to really think about when sending the email is “What will this email look like to the receiving server?” If you are on domain.com and you send an email using cfmail and the from address is a domain.com address, there is no problem. It’d be like sending that same message through Outlook using a domain.com address and domain.com relay (SMTP) server.

What if you have a form allowing a random user to send an email?This is where SPF filtering can block your message. They put in their from email address and to email address and whatever other data and that information gets stuck into the cfmail tag. Now, you might have an email address FROM someone@from.com TO someone@to.com. The email was sent THROUGH the domain.com server. Now if to.com’s server acknowledges SPF filtering, it will look at the dns record for from.com and look specifically at the TXT record. A smart DNS entry will list IP addresses that are able to send email. If the IP address of domain.com’s mail server does not appear in the DNS record of to.com, then the message will be blocked.

Here’s an example of the TXT record from domain.com:

domain.com       86400   IN         TXT       "v=spf1 ip4:xx.xx.xx.xx ip4:yy.yy.yy.yy ip4:zz.zz.zz.zz -all"

The first 3 ip addresses would be valid mail servers. The –all says to reject anything that is not one of those 3 ip addresses.

The way around this is to use a cfmailparam tag with a valid email address for domain.com (make an email address if necessary like info@domain.com). Here’s what the resulting code looks like:

<cfmail to="#to#"  from="#from#" subject="#subject#" type="html">
<cfmailparam name="sender" value="valid_email@domain.com">
.
.
.
</cfmail>

I hope this helps some people out

no comment

7

Sep

Farcry Images in Containers

Posted by Jake Churchill  Published in Farcry

For whatever reason, the default install of Farcry (I’m using FC 3.0.2) does not allow you to add images to containers. This is extremely easy to fix.

The Handpicked Rule looks at all types installed in COAPI Management and checks for the flag bScheduled=”1″. dmImage does not have that by default. So, to fix this, extend dmImage. dmImage.cfc goes in /farcry/project/packages/types/. The contents of dmImage.cfc are:

<cfcomponent extends="farcry.farcry_core.packages.types.dmImage"
          displayName="Images"
          bSchedule="1"
          bUseInTree="0">

</cfcomponent>

It’s as easy as that!

no comment

6

Aug

Farcry dmCSS How-To

Posted by Jake Churchill  Published in CSS, Farcry

I’ve been developing using Farcry for nearly a year now and the dmCSS type has always puzzled me. I knew it had to be a way to have node-specific CSS but how do you use it? I finally took the time to learn how and here’s what I found.


continue reading "Farcry dmCSS How-To"

no comment

31

Jul

CSS close window link

Posted by Jake Churchill  Published in CSS, Javascript

Honestly, I am blogging this to satisfy a coworker (Axel) who thought this was really cool.

You see this kind of thing all the time, a little X on a window that gets open that allows you to close it. Not the X close button on the title bar of the window but a little close link with an x. I’m a bit of a CSS geek so I made this in CSS. Here’s the code:

<a href="Javascript:window.close()" style="text-decoration:none;">close <span style="border:1px solid gray;width:15px;text-align:center;font-size:8pt;cursor:hand;">X</span></a>

Test It!

no comment

19

Jul

Nice Weather Sucks For Work!

Posted by Jake Churchill  Published in Life & Fun

Nice weather really sucks for work. I mean, there’s nothing that I love more than a good 80 degree day when the sun is shining and people are out and about. It’s days like today that I wish I was an insomniac. I know, I should be careful what I wish for, but follow my logic here. Insomniacs don’t sleep. Programmers write code and rarely talk to customers (at least that’s how I do it :) . If I was an insomniac, I could write code when everyone else is sleeping and be out and about all day. What a life that would be…

no comment

Search

Blog Feed

  • Add blog to any reader
  • Comments Rss
February 2012
M T W T F S S
« Feb    
 12345
6789101112
13141516171819
20212223242526
272829  

 

February 2012
M T W T F S S
« Feb    
 12345
6789101112
13141516171819
20212223242526
272829  

Subscribe to Blog

Your email:

Subscribe   Unsubscribe

Archives

Categories

  • Browsers (3)
  • CFEclipse (2)
  • ColdFusion (7)
  • CSS (9)
  • Farcry (33)
    • Farcry Examples (2)
    • Farcry Users (1)
  • Flash (1)
  • Flex (14)
  • Javascript (5)
  • Life & Fun (3)
  • Microsoft Office (1)
  • Misc (4)
  • Random Posts (1)
  • SQL (2)
  • Uncategorized (2)

Blogroll

  • Axel Jensen
  • Ben Forta
  • Coldfusion Muse
  • Fullasagoog
  • Nicole Rutter
  • Ray Camden
  • Sandy Clark
  • Stillnet Studios

Recent Posts

  • FCKEditor Firefox 3.6 Bug (Year 2010 Bug)
  • ColdFusion using Java for regex replace
  • ColdFusion VirtualMerchant CFC
  • Farcry Navigation Move Permissions
  • Delete Mail via POP Script

Recent Comments

  • James Moberg on FCKEditor Firefox 3.6 Bug (Year 2010 Bug)
  • Jake Churchill on ColdFusion using Java for regex replace
  • Ben Nadel on ColdFusion using Java for regex replace
  • Peter Boughton on ColdFusion using Java for regex replace
  • Peter Boughton on ColdFusion using Java for regex replace

Recent Post

  • FCKEditor Firefox 3.6 Bug (Year 2010 Bug)
  • ColdFusion using Java for regex replace
  • ColdFusion VirtualMerchant CFC
  • Farcry Navigation Move Permissions
  • Delete Mail via POP Script
  • Flex 2 Datagrid not highlighting row (UPDATE)
  • Flex 2 Datagrid not highlighting row
  • Flex Dynamic casting of data
  • Reboot XP PC over Remote Desktop
  • Dynamically instantiate a class

Recent Comments

  • James Moberg in FCKEditor Firefox 3.6 Bug (Year 2010 Bug)
  • Jake Churchill in ColdFusion using Java for regex replace
  • Ben Nadel in ColdFusion using Java for regex replace
  • Peter Boughton in ColdFusion using Java for regex replace
  • Peter Boughton in ColdFusion using Java for regex replace
  • Matthew in ColdFusion using Java for regex replace
  • Matthew in ColdFusion using Java for regex replace
  • Jake Churchill in Flex Channel.Connect.Failed error NetConnection.Ca…
  • Flex Guy in Flex Channel.Connect.Failed error NetConnection.Ca…
  • Dexter in Flex Custom Preloader without SWF
© 2008 Jake Churchill is proudly powered by WordPress
Theme designed by Roam2Rome