Custom Registration and Login for members

4 views
Skip to first unread message

Beenish

unread,
Dec 12, 2005, 5:32:58 PM12/12/05
to farcry-dev
Hi,

I wanted to create an area on the front end where users can register
for access to the Website under the Member user group via a
registration form. Be approved through the admin for access before they
can login and have additional fields (eg. job title) which can be
edited on the front end when they login/register and through the admin.
So I'll need the additional fields to be on the admin side as well for
editing.

Can someone point me in the right direction about how I would go about
doing this using FarCry? I don't want to use any JavaScript.

Up to this point, I've set up a custom login in customadmin by
modifying the original login.cfm. I can login and log out ok (don't
know if I did this the right way). I know how to turn off access for
anonymous so that only a logged in member can access a page.

Thanks

Beenish

Jen

unread,
Dec 13, 2005, 1:59:02 PM12/13/05
to farcry-dev
I'd also like to learn how to do this. It would be a different login
screen than that used by the admin tool.

Thanks,
Jen Looper
Web Developer, Achievement Technologies, Inc.
farcry site: http://farcry.achievementtech.com
live site: http://www.achievementtech.com

Scott Talsma

unread,
Dec 13, 2005, 4:40:15 PM12/13/05
to farcr...@googlegroups.com
If you look in /farcry_core/admin/login.cfm, you will see what is happening.

It tries to include a custom login file:
/farcry/#application.applicationName#/customadmin/login/login.cfm

If the file is not there, it uses the default.
/farcry/farcry_core/tags/navajo/login.cfm

Create the file and make it do whatever you want.


Scott Talsma
CTO
echo.eleven
404.845.3458

Vishnuprasad (sent by Nabble.com)

unread,
Dec 15, 2005, 8:10:05 AM12/15/05
to farcr...@googlegroups.com
Hi

i had seen ur site http://farcry.achievementtech.com/index.cfm?objectid=A7B1294F-C0B6-DA8E-EF55A52784AE7EFA

its was very nice , please tell me how u add those menus ?

Sent from the FarCry - Dev forum at Nabble.com:

Jen

unread,
Dec 16, 2005, 9:20:47 AM12/16/05
to farcry-dev
hi, thanks! These are the brainjar menus. Instructions on downloading
and installing are as follows (thanks, David, Chris, and Jeff):

FarCry Implementation of the Brain Jar menu
DEVELOPERS: Chris Kent; Jeff Coughlin (xCode fixes); David Whiterod

download the zip from here:
http://www.atlas.sa.gov.au/dropzone/files/bjMenu.zip

Installation
Copy _bjmenu.cfm to your site's includes directory
Copy bjmenu.css to your site's CSS directory (example CSS as used on
http://www.atlas.sa.gov.au/go/about)
Copy bjmenu.js to your site's JavaScript directory (Copyright 2000-2004
by Mike Hall. See http://www.brainjar.com for terms of use.)
Add the CSS and JS files in the head section of you dmHeader.cfm file
<link rel="stylesheet" type="text/css"
href="#application.url.webroot#/css/bjmenu.css" media="screen" />
<script language="en" type="text/javascript"
src="#application.url.webroot#/js/bjmenu.js"></script>
<cfmodule> the _bmenu.cfm file where you would like the menu in your
page
<cfmodule template =
"/farcry/#application.applicationname#/webskin/includes/_bjmenu.cfm">
The (optional) arguments are:

startNavID default="#application.navid.home#"
includeHomeLink default="true"

Oblio

unread,
Dec 16, 2005, 9:53:44 AM12/16/05
to farcr...@googlegroups.com
I realize this has probably been covered somewhere, but I just
created a new (my first) copy and I'm getting this error: "java init
failed: net.sf.javainetlocator.InetAddressLocator" on this file -
farcry/farcry_core/packages/farcry/geoLocator.cfc. I suspect that
I'm just missing a mapping somewhere; I'd appreciate any help.

Thanks,
Oblio

Vishnuprasad (sent by Nabble.com)

unread,
Dec 16, 2005, 12:41:55 PM12/16/05
to farcr...@googlegroups.com
Hi
Thks for the menu . its works gr8

Thks for the help

hey what ur email id . do u come online , i can learn a lot from u on farcry

do u come online in any one the follwoig
yahoo
msn
aim
gmail(google talk)

Vishnuprasad (sent by Nabble.com)

unread,
Dec 16, 2005, 12:43:58 PM12/16/05
to farcr...@googlegroups.com
Hi
Looked ur site membership form , can u tell me stpes how to create that
like how u helped me in building menu

Thks  in advance

if i am expericined in farcry i can develop all my app using farcry , and also i can help other here india .

Geoff Bowers

unread,
Dec 16, 2005, 7:52:45 PM12/16/05
to farcr...@googlegroups.com
Oblio wrote:

Geoloacator is a plugin that determines the locale of an inbound
request. Its an optional plugin.

You can either turn it off by getting into the ADMIN>>CONFIG>>PLUGINS --
or drop the InetAddressLocator class into your JAVA class path.

-- geoff
http://www.daemon.com.au/

--
Message protected by MailGuard: e-mail anti-virus, anti-spam and content filtering.
http://www.mailguard.com.au/mg


Andrew Mercer

unread,
Dec 17, 2005, 8:36:43 AM12/17/05
to farcr...@googlegroups.com
Send any questions to this group directly - someone will most likely be able to answer your questions

Jen

unread,
Dec 17, 2005, 10:57:26 PM12/17/05
to farcry-dev
Yes, I'd rather everyone have the benefit of all our shared knowledge.

I'd personally like to know how people are handling creating forms in
general using FarCry. I find this the most difficult to get my hands
around. Creating self-posting forms seems like taking a step backwards
from, say, my old Fusebox forms. Never was able to make the ruleForm
work.

best,
Jennifer Looper
Achievement Technologies, Inc.
live site: http://www.achievementtech.com
farcry site: http://farcry.achievementtech.com

Oblio

unread,
Dec 18, 2005, 4:17:43 PM12/18/05
to farcr...@googlegroups.com
a. It is in my class path (at least it appears to be).
b. I can't run the admin; as soon as I attempt to load anything, I
get the error.

Oblio

unread,
Dec 18, 2005, 5:05:02 PM12/18/05
to farcr...@googlegroups.com
In general, I guess I have a lot of questions on the current
directory structure schema. I'm trying to get FC running on a Linux
install, and things are, or seem, a lot more amorphous than on an IIS
server. Let's say I host all my sites under /home/*sitename*/;
according to the install, I should have the FC folders there, so
/home/farcry_core/, etc. What I'd like to do is isolate the
application files from the site folders, say
/home/applications/farcry[/farcry_core,etc], and still have a site,
/home/site.com/htdocs/index.cfm access the application files. I put
in a path mapping for the admin (site.com/farcry =
/home/applications/farcry/farcry_core/admin/), and a CF mapping to
the core's parent (/farcry = /home/applications/farcry/). Is this
going to acheive what I've discribed? When I run the install, there
are a bunch of things created below the site's doc root - is that normal?

Thanks,
Oblio

Jeff Coughlin

unread,
Dec 18, 2005, 9:18:01 PM12/18/05
to farcr...@googlegroups.com
Oblio,

---

Currently the Farcry CMS only allows you to run your apps (project folders)
from the same folder as the farcry mapping folder.

So all Farcry websites "must" be similar to the following (where <project>
refers to your Farcry project folder):
/Farcry_core
/Fourq
/<project1>
/<project2>

Hope this helps.

---
Jeff Coughlin

Gavin Cooney

unread,
Dec 18, 2005, 10:15:43 PM12/18/05
to farcr...@googlegroups.com
Hi,

We serve our farcry sites from Linux servers. I'll give you a quick
over view of our directory structure etc.

/vhosts/example.com
- holds all info related to a particular url

/vhosts/example.com/conf/
- conf files for this vhost. etc

/vhosts/example.com/httpd/
- all documents for this vhost.

/vhosts/farcry_application/
- all farcry files. in this folder is the apps.cfm and a load of sub folders

/vhosts/farcry_application/fourq
/vhosts/farcry_application/farcry_aura
/vhosts/farcry_application/farcry_core
-farcry app stuff

/vhosts/farcry_application/appname
-farcry folders for a particular site.

so for one farcry site, this is the httpd.conf bit for it. (in this
case a file called /vhosts/example.com/conf/httpd.conf)

Listen 123.456.789.012:80
<VirtualHost 123.456.789.012>
ServerAdmin ga...@example.com
DocumentRoot /vhosts/farcry_application/mysitename/www
ServerName www.example.com
Alias /farcry /vhosts/farcry_application/farcry_core/admin
ErrorLog /var/log/vhosts/example.com/example.com-error_log
CustomLog /var/log/vhosts/example.com/example.com-access_log combined
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
<Directory /vhosts/farcry_application/farcry_core/admin>
AuthType Basic
AuthName "FarcrySecurity"
AuthUserFile /vhosts/example.com/conf/htpasswd
Require user farcryusername
</Directory>
</VirtualHost>

Then we make the
/vhosts/example.com/httpd/ folder a sym link to this:
/vhosts/farcry_application/mysitename/www

Hope this make sense, and it helps.

Cheers

Gav

Geoff Bowers

unread,
Dec 18, 2005, 10:37:40 PM12/18/05
to farcr...@googlegroups.com
Jeff Coughlin wrote:

This is not entirely correct. We routinely locate the FarCry core
library completely separately from the applications.

All you need do is set up a ColdFusion mapping for /farcry/projectname
and you can locate your FarCry project anywhere it suits.

Geoff Bowers

unread,
Dec 19, 2005, 4:17:17 AM12/19/05
to farcr...@googlegroups.com
Jen wrote:
> Yes, I'd rather everyone have the benefit of all our shared
> knowledge.
>
> I'd personally like to know how people are handling creating forms in
> general using FarCry. I find this the most difficult to get my hands
> around. Creating self-posting forms seems like taking a step
> backwards from, say, my old Fusebox forms. Never was able to make the
> ruleForm work.

Self posting forms are pretty common sort of development approach. If
you want to create a fusebox like form, you can always make the self
posting form a controller/switch, and keep your actions and displays in
a subdirectory of includedobj. Does that make any sense?

Scott Talsma

unread,
Dec 19, 2005, 8:18:08 AM12/19/05
to farcr...@googlegroups.com
Here is our approach. Note that our forms limit themselves to simple
"contact-esque" submissions.

The forms themselves are stored as dmHTML pages. The form content is
usually created in Dreamweaver. They submit to a dmInclude object,
which wraps a Fusebox app which handles dealing w/the data, which in our
case serializes the form data into a string and sends it via
email/DB/Salesforce.com for processing.

Downside is that I have essentially hard-coded the action="...objectid"
into the form presentation. FU would help abstract this a little.
Upside is that I have multiple forms all submitting to the same action,
and it requires no special knowledge to create/modify a form in
Dreamweaver and very quickly get it on the site.

For more complex forms (wizards, etc.), I have simply taken the
self-posing approach, sending the results to a dmInclude/Fusebox app.

Jen

unread,
Dec 19, 2005, 9:38:13 AM12/19/05
to farcry-dev
hi, Scott, thanks very much for your reply. Is there a way you could
post some code so I could take a look?

I have three forms, including 4 flavors of "contact us", a "refer a
friend" form, and a registration form for sample lessons. They are
pretty straightforward Fusebox 4 forms right now. So, according to your
site structure, I would:

1. create a displaypageContactSales.cfm form in /webskin/dmHTML that
would contain my old fusebox form display code.
2. Make that submit to http://farcry.achievementtech.com/go/FormSubmit
(or object ID - I don't think friendly URLs will work if this included
object is in the utility folder) which would be an included obj in the
includedObj folder referencing the Fusebox folder's stuff.

Wow, that is innovative. Glad I asked, I will give it a spin. Does my
take above sound right?

Thanks!

Jen Looper
Web Developer, Achievement Technologies, Inc.

Scott Talsma

unread,
Dec 19, 2005, 1:01:43 PM12/19/05
to farcr...@googlegroups.com
You are on the right track. Have a look at our site,
http://www.echoeleven.com/

1) The contact page is dmHTML page
(http://www.echoeleven.com/go/contact-us/e-mail-us/index.cfm), whose
contents (stobj.Body) property contains the HTML code for the form itself.

<FORM name=ContactForm action=?objectid=AEC90515-40CA-39AD-7AD90C6C15CF7B43
method=post>
<INPUT type=hidden value="E-Mail Form from website" name=EMailSubject>
<INPUT type=hidden value=postm...@echo11media.com name=EMailRecipient>
<INPUT type=hidden
value=index.cfm?objectid=AEE72AAC-40CA-39AD-7A80585AE9473736
name=RedirectURL>


2) It submits to a dmInclude w/name Web Form Mailer (ID:
AEC90515-40CA-39AD-7AD90C6C15CF7B43) in the utilities folder. I am simply
including my e11WebFormMailer.cfm file. It wraps my FuseBox app, which I
call w/ the following code:


/////////begin e11WebFormMailer.cfm//////////
<cfsetting enablecfoutputonly="yes">


<cfscript>
if( IsDefined("URL.method") ) {
Attributes.method = URL.method;
}
else if( IsDefined("Form.method") ) {
Attributes.method = Form.method;
} else {
Attributes.method = "home.ProcessWebForm";
}
</cfscript>

<cfmodule template="../includes/e11Registration/index.cfm"
method="#Attributes.method#">

<cfsetting enablecfoutputonly="no">
/////////end e11WebFormMailer.cfm//////////


Fusebox does the rest, as all the url/form vars are converted to attributes.
I then forward on to #attributes.RedirectURL#


Scott Talsma
CTO
echo.eleven
404.845.3458

-----Original Message-----
From: farcr...@googlegroups.com [mailto:farcr...@googlegroups.com] On
Behalf Of Jen

Oblio

unread,
Jan 3, 2006, 2:21:40 PM1/3/06
to farcr...@googlegroups.com
Since I'm still having trouble with this, I removed the CFTRY around
the statement. Apparently, the real error is
"net.wetters.InetAddressLocator" on line 90. Any idea what it is or
what's causing it?

Oblio

unread,
Jan 3, 2006, 3:00:53 PM1/3/06
to farcr...@googlegroups.com
Actually, I think I'm beginning to understand the problem, and it all
relates to mappings. As I'm doing this on Linux, and I was trying to
use Gavin's example, I've got files in two different directories. It
seems the real issue is in the _serverSpecificVars.cfm, where it
takes apart the getCurrentTemplatePath(). See, my app.path.project
is "/home/example.com", and app.path.core is
"/home/app_lib/farcry/farcry_core". The dynamic translator can't
find things correctly.

So, having done that, I think I'm on my way, but I found a semantic
error. On Linux, we're case sensative. We can get past it in
Apache, but CF won't when using fileExists(). So,
farcry_core/packages/types/types.cfc: line 56 can't find the right
file; displayPageLanding.cfm != displaypageLanding.cfm.

Oblio

unread,
Jan 3, 2006, 4:06:36 PM1/3/06
to farcr...@googlegroups.com
I also don't seem to have an ADMIN>>CONFIG>>PLUGINS -- is that only
on localhost?
Reply all
Reply to author
Forward
0 new messages