Dragonfly Guild application form

Dragonfly integration forum

Re: Dragonfly Guild application form

Postby IslandStyle » Fri Nov 17, 2006 12:45 pm

Excellent work on this ...
I have a simple question,
If I want to add more then one email address for the form to be sent to, what would be the best way to do it if it can be done.

Can I just seperate the names in the list by commas?

Thanks in advance
Image
Image
User avatar
IslandStyle
WR.net Apprentice
WR.net Apprentice
 
Posts: 41
Joined: Tue Jul 11, 2006 8:57 am

Dragonfly Guild application form

Postby robojerk » Fri Nov 17, 2006 1:20 pm

I just made an email rule for my gmail account to forward it to my recruitment officer so we both got copies of the applications..

I'll look into how to do it.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

Re: Dragonfly Guild application form

Postby ironforceguild » Sat Nov 18, 2006 4:22 am

I'm not trying to sound greedy here, but is this being implemented into the module? If this allows "accept" applications then i can completely switch our website over to the DragonflyCMS system.

Actually, an important question I have... Are you saying that the applicant has to have a forum registered name before they fill out the application? or does filling out the application give them a pending approval forum name? make any sense?



robojerk wrote:Don't know why I didn't add this earlier. If you use the DragonflyCMS module and want to include the forum name of your applicants on the applications do the following.

Open up apply.php, and look for
Code: Select all
$ffname Fix_Quotes($_POST['ffname']); 

After it add
Code: Select all
if (is_user()) {
    
$userid $userinfo['user_id'];
    
$username $userinfo['username'];


Then look for the line
Code: Select all
$App "Name: $GamerName

After it add
Code: Select all
Forum Name$username


Now your applications will include the account name of your applicants so if accepted you can quickly grant them forum access.
Last edited by ironforceguild on Sat Nov 18, 2006 4:46 am, edited 1 time in total.
ironforceguild
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Thu Nov 16, 2006 3:22 am

Dragonfly Guild application form

Postby Anaxent » Sat Nov 18, 2006 5:20 am

From what I can tell this is being created into a DF module not sure on the full out come as of yet, but as of now this module will take the app and email you the results. Im not too sure if this could be designed into being a regisration module that would give the user a forum name but would rather allow one with a forum name to apply to the guild from there maybe instead of emailing us the resaults it would post them to a forum of choice and maybe allow us from there to add them to the correct forum group.
User avatar
Anaxent
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 642
Joined: Tue Jul 04, 2006 6:27 am
Location: Phoenix, Az

Re: Dragonfly Guild application form

Postby IslandStyle » Sat Nov 18, 2006 5:30 am

I tried to add multiple(well 2 anyway) email address for who the emails should be sent through by seperating them with a comma. It was sent to both of my email addresses.
So just so you know you don't keed to foward the messages, you can have it go directly to multiple recipients.
Image
Image
User avatar
IslandStyle
WR.net Apprentice
WR.net Apprentice
 
Posts: 41
Joined: Tue Jul 11, 2006 8:57 am

Dragonfly Guild application form

Postby Lusiphur » Sat Nov 18, 2006 5:34 am

Many thanks for the standalone version, saved me the work of doing it myself .

For those not using Dragonfly (like me) the easiest way to integrate this into whatever CMS you use is with an iframe. I use mkportal and simple machines forum. I just created an internal HTML page in mkportal and used an iframe

Code: Select all
<iframe src="http://linktotheappgoeshere.com" FRAMEBORDER="0" class="tabnews" width="100%" height="1300"></iframe>
Last edited by Lusiphur on Sat Nov 18, 2006 5:35 am, edited 1 time in total.
Lusiphur
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Sat Aug 26, 2006 4:01 am

Re: Dragonfly Guild application form

Postby robojerk » Sat Nov 18, 2006 5:54 am

ironforceguild wrote:I'm not trying to sound greedy here, but is this being implemented into the module? If this allows "accept" applications then i can completely switch our website over to the DragonflyCMS system.

Actually, an important question I have... Are you saying that the applicant has to have a forum registered name before they fill out the application? or does filling out the application give them a pending approval forum name? make any sense?

My website uses DragonflyCMS so that's why I am writing this into a module and planning on doing all that Dragonfly only stuff. I made it as a stand alone script too since a lot of people seemed really interested in how I crafted my guild's application page so I wanted to have them use it too without requiring dragonfly.. If someone wants to make these native modules for other CMS's I'll add them to the downloads section if they work..

The things I want to do with this I will probably do for Dragonfly only but I don't see why someone couldn't port over to some other CMS.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

Dragonfly Guild application form

Postby robojerk » Mon Nov 27, 2006 3:17 pm

If you're getting "\" marks on the application a quick fix is to remove all of the Fix_Quotes on the apply.php page.

Example:
Code: Select all
$ffname Fix_Quotes($_POST['ffname']); 

Becomes
Code: Select all
$ffname = ($_POST['ffname']); 
Last edited by robojerk on Mon Nov 27, 2006 3:18 pm, edited 1 time in total.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

Dragonfly Guild application form

Postby robojerk » Wed Dec 06, 2006 5:59 am

Another suggestion to fix the \'s marks. I'm currently taking an extended break from WoW and don't know if/when I'll return. In my spare time I'll work on this if I feel like it.

http://dfaddons.com/index.php?name=Foru ... 15&start=0
djdevon3 wrote:Try FixQuotes() instead of MagicQuotes()

Code: Select all
//1 Do your form elements
<form name='application' action=".adminlink(Join_Us&amp;file=apply')." method='POST'>
<
input type='hidden' name='mode' value='JUSave'>
<
input type='submit' value='"._SAVECHANGES."'>

//3 Cleaned variables from case get put into the db
function themecpSave ($xname $xclass$xcharacter) {
    global 
$prefix$db;
    
$db->sql_query("UPDATE ".$prefix."_Join_Us SET name='$xname', class='$xclass', character='$xcharacter'");
    
url_redirect(adminlink('Join_Us'));
}


//2 Setup your case switch to mode (create url parses such as Join_Us&mod=)
$mod = isset($_POST['mod']) ? $_POST['mod'] : 'Join_Us';
switch(
$mod) {

    case 
"JUSave ":
        
// clean the form variables and handle the fixing of quotes here
        
$xname = isset($_POST['xname']) ? Fix_Quotes($_POST['xname']) : '';
        
$xclass = isset($_POST['xclass']) ? Fix_Quotes($_POST['xclass']) : '';
        
$xcharacter = isset($_POST['xcharacter']) ? Fix_Quotes($_POST['xcharacter']) : '';
        
JUSave ($xname $xclass $xcharacter);
        break; 


Here's how it happens and how most modules are coded.
1. A user clicks on submit and the form is processed using the value JUSave
2. JUSave goes into it's own case where all the variables in the form are defined and cleaned.
3. Output variables are assigned aliases such as xname and are put back into their normal variable but now they are cleaned and php uses that cleaned data to put into the database. I've labeled them numerically in order of process though they are out of order chronologically here because you want the cases to be last for file organizational purposes.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

Dragonfly Guild application form

Postby Bang » Tue Dec 12, 2006 6:39 pm

Is there a way to make this post directly to a phpbb forum? if so could you give me some more info, i love the mailer but it makes it hard for the officers in my guild to review apps :(

ty in advance for any help you can provide...
User avatar
Bang
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Tue Jul 04, 2006 10:56 pm

Re: Dragonfly Guild application form

Postby robojerk » Tue Dec 12, 2006 6:43 pm

I quit WoW and am not working on any of these scripts anymore. I was looking into making it post to forums, or make another area in the database to hold onto apps and access them through another module or something.. Someone just needs to sit down and do it.
Last edited by robojerk on Tue Dec 12, 2006 6:44 pm, edited 1 time in total.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

Dragonfly Guild application form

Postby johnnydement » Mon Jan 01, 2007 4:46 pm

would be really great if someone with understanding in DF code could make this to post it in a forum instead of sending it via mail

Anyway, it's a pretty nifty sign up form, thx for sharing :D
johnnydement
WR.net Apprentice
WR.net Apprentice
 
Posts: 66
Joined: Wed Jul 12, 2006 5:50 pm

Dragonfly Guild application form

Postby Nitearrow » Wed Jan 03, 2007 3:47 am

How can i get this to work with PHP-NUKE i would love to add this to my site
Nitearrow
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Thu Jul 06, 2006 9:30 am

Dragonfly Guild application form

Postby johnnydement » Mon Jan 08, 2007 4:15 pm

use the non DF one that robojerk did, is in this same thread
johnnydement
WR.net Apprentice
WR.net Apprentice
 
Posts: 66
Joined: Wed Jul 12, 2006 5:50 pm

Dragonfly Guild application form

Postby cynthetiq » Fri Jan 12, 2007 6:38 am

I've been trying to get this to work with a Form to Post mod for phpbb but no luck so far, if I do get this to work I'll be happy to post it here.

I didn't realize the nonDF one may give me some additional help. I'll look at that too. Thanks
cynthetiq
WR.net Apprentice
WR.net Apprentice
 
Posts: 29
Joined: Sat Oct 21, 2006 10:09 am

PreviousNext

Return to Dragonfly

Who is online

Users browsing this forum: No registered users and 1 guest

cron