Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Staff Application v1.2

Asked Modified Viewed 10,505 times
G
Grimloch
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Started this discussions
  • Answered 2 questions
asked
Senior Member

[mp]553[/mp]
0 replies

11 posts

S
Sanhuevon
S
  • Junior Member, joined since
  • Contributed 35 posts on the community forums.
  • Started 8 threads in the forums
answered
Junior Member

I'm trying to add fields to the application. I'm trying to change it from a Staff Application to a Clan Application. Anyway I'm getting an error when I try to insert new fields.

i.e. I want an age field. I defined the variable and inserted it where all the others are. I still get the following.

Unknown column 'stf_age' in 'field list'


UPDATE: I also get the successful message that the application was sent, however on the Admin section it does not appear anymore.
0 replies
— 3 months later —
G
Grimloch
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Started this discussions
  • Answered 2 questions
answered
Senior Member

That's because you must also add the new database fields for the inputs you are adding. And also the db query that writes the application to the db, has to have the new inputs added.
0 replies
— 4 months later —
F
FredrikBroberg
F
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
  • Started 2 threads in the forums
answered
Newbie

I would like to include which group a person is added/denied access to in the PM that is sent to the applicant after admin changed the status....
0 replies
G
Grimloch
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Started this discussions
  • Answered 2 questions
answered
Senior Member

Quote

FredrikBroberg wrote:

I would like to include which group a person is added/denied access to in the PM that is sent to the applicant after admin changed the status....


Haven't logged on in a while, sorry.I'll take a look at this and give you some code to modify soon I promise.

B)
0 replies
G
Grimloch
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Started this discussions
  • Answered 2 questions
answered
Senior Member

I have the fix for you as requested to show the requested user_group in the PM.

In the infusions admin folder, 'application_admin.php' file right after line 70 which is:
$result = dbquery("UPDATE ".DB_USERS." SET user_groups='".$users_ug['user_groups'].".".$get['stf_type']."' WHERE user_id='".$get['stf_user_id']."'");

Add the following:
$result = dbquery("SELECT group_id, group_name FROM ".DB_USER_GROUPS." WHERE group_id='".$get['stf_type']."'");
      while ($data = dbarray($result)) {
      $req_group = $data['group_name'];
}

Then delete the following code:

require_once INCLUDES."infusions_include.php";
$success = ($locale['stf_102'].$get['stf_site_name']."<br /><br />".$locale['stf_103']);
send_pm($get['stf_user_id'], $sender, $locale['stf_079'], $success);
}
      
if ($_POST['stf_status'] =='2' && $approve =='1'){
$result = dbquery("UPDATE ".DB_STF_APPLICATIONS." SET stf_status = '$stf_status', stf_admin='".$userdata['user_id']."', stf_approver_comment='$stf_approver_comment' WHERE stf_id='".$_GET['stf_id']."'");
require_once INCLUDES."infusions_include.php";
      
$unsuccess = ($locale['stf_102'].$get['stf_site_name']."<br /><br />".$locale['stf_104']);
   send_pm($get['stf_user_id'], $sender, $locale['stf_079'], $unsuccess);

And change to:

require_once INCLUDES."infusions_include.php";
$success = ($locale['stf_102'].$get['stf_site_name']."<br /><br />".$locale['stf_103'].$req_group.$locale['stf_103a']);
send_pm($get['stf_user_id'], $sender, $locale['stf_079'], $success);
}
      
if ($_POST['stf_status'] =='2' && $approve =='1'){
$result = dbquery("UPDATE ".DB_STF_APPLICATIONS." SET stf_status = '$stf_status', stf_admin='".$userdata['user_id']."', stf_approver_comment='$stf_approver_comment' WHERE stf_id='".$_GET['stf_id']."'");
require_once INCLUDES."infusions_include.php";
      
$unsuccess = ($locale['stf_102'].$get['stf_site_name']."<br /><br />".$locale['stf_104'].$req_group.$locale['stf_104a']);
send_pm($get['stf_user_id'], $sender, $locale['stf_079'], $unsuccess);


Then open up the English locale file and delete $locale['stf_103'] and $locale['stf_104'].
Replace them with this:

$locale['stf_103'] = "Your application to join the group ";
$locale['stf_103a'] = " has been accepted.<br />We look forward to your input and ideas.<br /><br />Regards,<br />The Management Team.<br /><br /><small>Automated notification- do not reply!</small>";
$locale['stf_104'] = "<br />Thank you for your interest in joining a staff group.<br /><br />Unfortunatley, we are unable to offer you a position in the ";
$locale['stf_104a'] = " you requested at this time.<br />We will keep your request on file and perhaps in the near future we may be in a better position to ask you onboard.<br /><br />Regards,<br />The Management Team.<br /><br/><small>Automated notification- do not reply!</small>";


That's it; you're done.
Edited by Grimloch on 11-03-2014 18:19,
0 replies
J
JoiNNN
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
answered
Veteran Member

Just a small tip, instead of adding extra locales you can use sprintf.
0 replies
D
DanishFlipper
D
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
answered
Newbie

im quite new to this php fusion, an i would like to know, is it possible to change the application form an to changes it to danish???
0 replies
— 2 years later —
S
SkeeredOfMyMind
S
[size=24]HELP WANTED FOR PHP-FUSION PROJECTS[/size]
[size=12]I am seeking Web Developers & Designers, Graphic Developers & Designers, Web, Mobile App & Computer Program Coders & Programmers & Beta & Alpha Testers for new PHP-Fusion Add-Ons like Themes, Infusions, BB-Codes and ETC, as well as Websites, Mobile App & Computer Programs to help me develop, design, code & program new PHP-Fusion Add-Ons, Websites, Mobile Apps & Computer Programs and I also need some people to test those in the Beta & Alpha stages both. All jobs are paid and are freelance jobs. Please message me here if interested for a list of available positions and projects. [/size]
  • Member, joined since
  • Contributed 120 posts on the community forums.
  • Started 44 threads in the forums
answered
Member

For some reason, when I installed this Infusion, it did not automatically create a Site Link to the Staff Application. Isn't it supposed to do that? How do I link to the Staff Application so users can submit an application?

I answered my own question. Although it did not create the link, I played around until I got it figured out. For those with this problem the solution is to create a site link to: http://CHANGETOYOURSITE.com/infusions/staff_application/application.php.
0 replies
— 1 year later —
F
FreedomIOPList
F
My Sites
Freedom IOP List
http://www.freedomioplist.com


Heaven's Handmades
http://www.heavenshandmades.com


PHP-Fusion Projects Portal
http://www.phpfusionprojectportal.tk


Addiction Help By Addicts
http://www.addictionhelpbyaddicts.com

  • Member, joined since
  • Contributed 94 posts on the community forums.
  • Started 30 threads in the forums
answered
Member

I installed this Infusion on my site, figured it would be much faster than creating my own Staff Application system and reviewing all applications via email. Is this Infusion not compatible with the Forum SubCategories Mod available here or my version of PHPFusion perhaps (7.02.07). I created everything as recommended in the Installation file and I tried submitting a random application just to see if it works. While it DID create a new thread in the appropriate category, when I opened that thread, there was no text inside. It was just blank and it threw my entire page off, like some of the panels were above the banner and etc. Any ideas what the cause could be?

This is an excellent, handy infusion if I were able to get it working right. Does anyone know if it would be possible to send the applications via a PM to a single site Admin rather than posting the applications in forums?
0 replies
G
Grimloch
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Started this discussions
  • Answered 2 questions
answered
Senior Member

Like I said on my main website forum; it's been a while. Gimme some time to look at it again and I'll get back to you. No it is not coded to use the forum sub-cats at this time.
0 replies
— 3 months later —
G
Grimloch
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Started this discussions
  • Answered 2 questions
answered
Senior Member

I am in the process of upgrading Staff App to work on Fusion9.0. Will post a d/l link when I'm done with it.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 11 posts
  • Votes 0 votes
  • Topic users 7 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet