Hello There, Guest! › Register

MySubscriptions 2.2 released.
Looking for a custom plugin for your site? Ask here for a quote.

[Module] Staff applications email 0.1
#1

This module was requested by combus and a few other users.
Here is a summary of what it does:
(on activation) Creates an item called Staff applications.
It has 2 usegroups in a drop down list: Administrators and Moderators (if you wish to add more or edit the names, tell me and Ill tell you how to do it).
If user buys that item (must set a reason) an email will be sent to the email set by the Administrator in this module's options.

This module makes use of the new function to display and calculate modules's settings so you will need to upload the new myplaza_general.php attached to this post.

The module is also attached to this post.


Attached Files
.php   staffapp.php (Size: 4.65 KB / Downloads: 47)
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#2

THANKS! Big Grin I so wanted this Smile I'm installing...

EDIT: I tested it, and it seems to be working fine Smile But I have one question.. does it use the settings MyBB has for mail to send the mails? or just php mail?
#3

It uses MyBB's my_mail function which uses PHP mail as far as I know.
If you want to add more usergroups do the following:
1. in staffapp_activate function, find:
Code:
<select name="application">
<option value="administrators">Administrators</option>
<option value="moderators">Moderators</option>
</select>
Lines 64-67 I think

To add a usergroup called Lollipops:
Code:
<option value="lollipops">Lollipops</option>
Put that below the moderators line or replace the moderators line with that one, I don't know, do what you want.

Then at line 123:
Code:
$available_applications = array('administrators', 'moderators');
Replace moderators with lollipops or just add a new element:
Code:
$available_applications = array('administrators', 'moderators', 'lollipops');

The usegroup chosen by the user must exist in the array above otherwise it will not be valid.
I hope you get it Smile
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#4

yup, you explained it simply Smile

Right now I'm modifing it to something very different... I'm trying to add another field, however, I had to remove the available application check... could this cause troubles?
#5

is it going to be added here?
[Image: 2n80g9h.png]
#6

If the question is for me: I don't think anyone would ever need what I'm doing so.. I gues unless someone request it Tongue
#7

If it was for me: there's no point on doing it lol.

@combus, I don't recommend you to remove the aplication checker, unless you remove the applications part
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#8

mail >.> i'll develop one for myself that is a PM =).
If anyone will want that one, tell me about it..
i won't release it public, only to the one who want it,
will not make it now 'cause i'm busy with other modules atm =).
#9

Hmm for pm, you just need to modify a few things in this module, you can even add a new setting (in my opion it would be better) to allow the admin to choose if it sends via PM or via email. Ill probably add this in the next version.
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#10

oh ok, then i won't worry make it lol..
Thanks Big Grin, it'd be great Smile.
- Shadows.




Users browsing this thread: 1 Guest(s)