[MODDB] Application form

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
User avatar
JimA
Community Team Leader
Community Team Leader
Posts: 7618
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn
Contact:

[MODDB] Application form

Post by JimA » Tue May 05, 2009 6:49 pm

Modification Name: Application form
Author: JimA

Modification Description: This form allows users to apply for a certain team positions. The applications are send to a hidden forum where the administrators can read them and see if the users are good enough for the position.
Modification Version: 1.0.0 RC

Modification Download: --

Demo URL: http://jim-a.com/mods/application.php
Demo Username: tester
Demo Password: tester

Support can now be obtained here: http://www.phpbb.com/community/viewtopi ... &t=1738385
Last edited by JimA on Sat Aug 15, 2009 7:29 am, edited 3 times in total.
Image Jim Mossing Holsteyn - Community Team Leader
Knowledge Base | Documentation | Board rules

If you're having any questions about the rules/customs of this website, feel free to drop me a PM.

manic2
Registered User
Posts: 435
Joined: Thu Jun 12, 2008 9:16 pm

Re: [BETA] Application form 0.0.1

Post by manic2 » Tue May 05, 2009 11:03 pm

Firstly this is a great idea. It can be modified to capture any sort of form data. I have already started modding it for new account requests (as on my board new users can only be nominated by existing users).

There are a couple of small typos where you have used 'postion' rather than 'position' however as these are consistent it doesn't stop the mod working.

First thing I've noticed. If you try to edit the generated post in the hidden forum this results in the loss of the post content (but not the post subject). Any way to make this 'permanent'?
manic

User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3471
Joined: Wed Oct 27, 2004 11:35 pm
Name: William
Contact:

Re: [BETA] Application form 0.0.1

Post by bonelifer » Wed May 06, 2009 3:49 am

Since they have to signup and log in, why not just pull their email address from their user data?
Knowledge Base | phpBB Board Rules | Search Customisation Database
Image
Please don't contact me via PM or email for phpBB support .

User avatar
pascal24
Registered User
Posts: 60
Joined: Mon Apr 06, 2009 7:12 am
Location: Netherlands
Contact:

Re: [BETA] Application form 0.0.1

Post by pascal24 » Wed May 06, 2009 8:11 am

How about an extra security for emty fields? :)
-Pascal

Support will not be given via PM, MSN or e-mail

User avatar
zake black
Registered User
Posts: 694
Joined: Fri Jan 23, 2009 8:34 am
Location: Milton Keynes (UK)
Contact:

Re: [BETA] Application form 0.0.1

Post by zake black » Wed May 06, 2009 9:19 am

great idea, watching this one :)

User avatar
JimA
Community Team Leader
Community Team Leader
Posts: 7618
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn
Contact:

Re: [BETA] Application form 0.0.1

Post by JimA » Wed May 06, 2009 3:22 pm

bonelifer wrote:Since they have to signup and log in, why not just pull their email address from their user data?
This is a good idea, which I will add in the next release.
manic2 wrote:First thing I've noticed. If you try to edit the generated post in the hidden forum this results in the loss of the post content (but not the post subject). Any way to make this 'permanent'?
I cannot reproduce that on my testboard. Can you please give me a link to your board and send me a PM with the login of a test account?
pascal24 wrote:How about an extra security for emty fields? :)
Thanks for the idea, I'll see if can add this in the next release.
Image Jim Mossing Holsteyn - Community Team Leader
Knowledge Base | Documentation | Board rules

If you're having any questions about the rules/customs of this website, feel free to drop me a PM.

manic2
Registered User
Posts: 435
Joined: Thu Jun 12, 2008 9:16 pm

Re: [BETA] Application form 0.0.1

Post by manic2 » Wed May 06, 2009 8:55 pm

JimA wrote:
manic2 wrote:First thing I've noticed. If you try to edit the generated post in the hidden forum this results in the loss of the post content (but not the post subject). Any way to make this 'permanent'?
I cannot reproduce that on my testboard. Can you please give me a link to your board and send me a PM with the login of a test account?
Sorry that was completely my fault :oops: connected with some other edits. Your mod loads just perfect :) .
manic

User avatar
Geek Host
Registered User
Posts: 9
Joined: Wed Sep 10, 2008 12:10 am

Re: [BETA] Application form 0.0.1

Post by Geek Host » Thu May 07, 2009 9:45 am

Very nice idea will test this out Hope you get this finished off. Seem like a good idea could come in handy for bigger forums.

ddatchi
Registered User
Posts: 9
Joined: Tue Apr 07, 2009 11:26 am

Re: [BETA] Application form 0.0.1

Post by ddatchi » Fri Jun 05, 2009 1:22 am

Here's a question. When the form is submitted to the "hidden" forum, will the user be notified that someone has responded to the application? I have the modification that send the entire post content in the notification email and would now want someone to see negative comments.

User avatar
JimA
Community Team Leader
Community Team Leader
Posts: 7618
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn
Contact:

Re: [BETA] Application form 0.0.1

Post by JimA » Fri Jun 05, 2009 5:13 am

No, he won't. As the user isn't subscribed to the topic this won't happen. And even if the user was, I'm not sure if a e-mail would have been send, because the user can't read the forum.
Image Jim Mossing Holsteyn - Community Team Leader
Knowledge Base | Documentation | Board rules

If you're having any questions about the rules/customs of this website, feel free to drop me a PM.

TerminILL
Registered User
Posts: 9
Joined: Fri Jun 05, 2009 5:00 am

Re: [BETA] Application form 0.0.1

Post by TerminILL » Fri Jun 05, 2009 6:06 am

Looks useful, especially for growing forums. Will watch this space.

manic2
Registered User
Posts: 435
Joined: Thu Jun 12, 2008 9:16 pm

Re: [BETA] Application form 0.0.1

Post by manic2 » Fri Jun 05, 2009 8:45 am

Just thought I'd report back & say how useful I am finding this mod.

With some modification / tinkering currently using it for:-
1. New account applications (all my users have to be nominated by existing users).
2. Request for updates to accounts & profile fields that the users can't normally update.
3. Having a structured set-up for new threads.
4. Allowing users to start new topics in forums in which they wouldn't normally be able to start new threads & allowing moderator approval of these before they are visible to all.

I think that the original description:-
Modification Description: This form allows users to apply for a certain team positions. The applications are send to a hidden forum where the administrators can read them and see if the users are good enough for the position.
doesn't display just how good this mod is & what potential it has.

Many thanks JimA, very nice work. :D
manic

User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: [BETA] Application form 0.0.1

Post by ChriZathens » Fri Jun 05, 2009 9:00 am

If I write in Greek, then it displays ???????
Could you please fix this?
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...

-tribe-
Registered User
Posts: 144
Joined: Thu Jan 31, 2008 4:06 pm

Re: [BETA] Application form 0.0.1

Post by -tribe- » Fri Jun 05, 2009 3:14 pm

this is a great mod, im looking for something like this but also allows the user to upload a picture, would be great full if you could work that into future version

keep it up looking good so far

lugsciath
Registered User
Posts: 316
Joined: Tue Oct 02, 2007 11:12 am

Re: [BETA] Application form 0.0.1

Post by lugsciath » Sat Jun 06, 2009 10:03 am

Works well under 3.05.

For utf-8 support change /application.php

search for

Code: Select all

$apply_post		= sprintf($user->lang['APPLICATION_MESSAGE'], $user->data['username'], request_var('name', ''), request_var('email', ''), request_var('postion', ''),utf8_normalize_nfc(request_var('why', '', true))r('why', ''));
replace through

Code: Select all

$apply_post		= sprintf($user->lang['APPLICATION_MESSAGE'], $user->data['username'], utf8_normalize_nfc(request_var('name', '', true)), request_var('email', '', true), request_var('postion', '', true), utf8_normalize_nfc(request_var('why', '', true)));
cosmetics for the form template:

/styles/prosiver/template/appform_body.html

Code: Select all

<!-- INCLUDE overall_header.html -->

<div class="panel">
   <div class="inner"><span class="corners-top"><span></span></span>

   <div class="content">
      
        <h2>{L_APPLICATION_PAGETITLE}</h2>
        
        <span style="font-size: 1.3em;">{L_APPLICATION_WELCOME_MESSAGE}<br /><br /><br />
       
        <form method="post" action="{PROCESS_APPFORM}" id="appform"> 
        {L_APPLICATION_REALNAME} <br /><input type="text" name="name" /><br /><br />
        {L_APPLICATION_EMAIL} <br /><input type="text" name="email" /><br /><br />
        {L_APPLICATION_POSITION}<br />
        <select name="postion">
        <option value="{L_APPLICATION_TEAM1}">{L_APPLICATION_TEAM1}</option>
        <option value="{L_APPLICATION_TEAM2}">{L_APPLICATION_TEAM2}</option>
        <option value="{L_APPLICATION_TEAM3}">{L_APPLICATION_TEAM3}</option>
        </select>
        <br /><br />
       
        {L_APPLICATION_WHY}<br />
        <textarea rows="5" cols="50" name="why"></textarea>
        
        <br /><br />
        
        <input type="submit" name="submit" id ="submit" value="{L_SUBMIT}" class="button1" />
       
        </span>
      
   </div>

   <span class="corners-bottom"><span></span></span></div>
</div>


<!-- INCLUDE overall_footer.html --> 
And last, but not least:

In overall_header.html

search

Code: Select all

<li class="icon-users">
replace
<li class="icon-members">

german languagefile

/language/de/application.php

Code: Select all

<?php
/**
*
* application [English]
*
* @package language
* @copyright (c) Jim http://beta-garden.com 2009
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine

$lang = array_merge($lang, array(
	'LOGIN_APPLICATION_FORM'		=> 'Du musst dich vorher einloggen bevor du deinen Antrag absenden kannst.',
	'APPLICATION_SUBJECT'			=> 'Antragsformular von %s',
	'APPLICATION_MESSAGE'			=> 'Ein neuer User sandte einen Antrag ab, genannt [b] %1$s[/b].<br /><br />[b]Wirklicher Name[/b]: %2$s<br />[b]E-mail Adresse[/b]: %3$s<br />[b]Antrag bezug [/b]: %4$s<br /><br />[b]Warum sollten wir dich nehmen?[/b]<br /> %5$s',
	'APPLICATION_SEND'				=> 'Dein Antragsformular wurde zu einem Administrators dieses Bords gesendet. Er wird entscheiden ob deinem Antrag stattgegeben wird und wird sich mit dir in den kommenden Tagen in Verbindung setzen.',
	'APPLICATION_PAGETITLE'			=> 'Antragsformular',
	
	'APPLICATION_WELCOME_MESSAGE'	=> 'Willkommen beim Antragsformular. Seitdem wir eine wachsende Gemeinschaft sind, suchen wir neue Mitglieder. Wenn du dich bewerben willst, dann schreibe deine Angaben in die Felder des untenstehenden Antrags und wir setzen uns mit dir in Verbindung.',
	'APPLICATION_REALNAME'			=> 'Wirklicher Vor- und Zuname',
	'APPLICATION_EMAIL'				=> 'E-mail Adresse',
	'APPLICATION_POSITION'			=> 'Welche Position möchtest du?',
	'APPLICATION_TEAM1'				=> 'Team 1',
	'APPLICATION_TEAM2'				=> 'Team 2',
	'APPLICATION_TEAM3'				=> 'Team 3,
	'APPLICATION_WHY'				=> 'Weshalb sollten wir dich nehmen?',

));

?>
Have fun :)

Locked

Return to “[3.0.x] MODs in Development”