eMoneySpace
Welcome, Guest. Please login or register.
Did you miss your activation email?
News: Earn your money online safely here at eMoneySpace. Aug 15, 2022 09:25 am




FREE Aurora Mod: Admin messager to single, all, standard, or upgraded members.
Print
Author Topic: FREE Aurora Mod: Admin messager to single, all, standard, or upgraded members.  (Read 4356 times)
757jterrell
Reputation: (+29)
*

Offline

Gender: Male
Posts: 967
Referrals: 0


Get a site from the OWNERS of the script!!!

View Profile WWW
Jun 03, 2010 09:51 pm

Hello all,

We have had tons of request for an admin messenger that allows you to send messages to a single member, all members, standard members only, or upgraded members only.  This mod will be standard in the SDR Basic (Upgrade date 6-15-10) and the SDR 2. Now, since I am sure I am going to be accussed of stealing it, the base code came directly from the members/composeMgs.php file and we first showed the first version here (http://www.earnmoneyspace.com/forum/index.php/topic,72702.0.html). This mod has been released to all of our resellers and sub-resellers who can install it for you if you need help for a small fee. Their info is indicated on the following page:

http://www.scriptsdoneright.com/resellers.html

This is the Admin Messages Page.



It pretty easy to use. And we will go over the functions first, then provide the code at the end. To send a message just pick the group that you want to send to, put in a title and a message. ONLY put in a user name if you are sending a message to only one member. You will get a confirmation message when you message goes out as shown below:



You also get serveral error messages depending on if your forgot the subject, message, or in case of sending it to a single member the user name as show in the next several screen shots:







Now, you want to create a file called admin2/amessages.php. Then insert this code into it:

Code:
<?
$includes[title] = "Admin Message Manager";

if ($action == "send") {
if ($who == singlemember)  {
$sql=$Db1->query("SELECT * FROM user WHERE username='".addslashes($to)."'");
if ($to == "")$errormgs = "<h3>You forgot to enter a user name!<br>Please enter a user name.</h3>";
while ($temp = $Db1->fetch_array($sql)) {
            $to = $temp[username];
    if ($message == "")
                    $errormgs = "<h3>You forgot to enter a message!<br>Please enter a message.</h3>";
                else  {
                    if ($subject == "")
                        $errormgs = "<h3>You forgot to enter a subject!<br>Please enter a subject.</h3>";
                    else
                        $sent="1";
                        $Db1->query("INSERT INTO messages SET
username='$to',
`from`='Site Admin',
dsub='" . time() . "',
title='" . addslashes($subject) . "',
message='" . addslashes($message) . "'
");
        if ($settings["imMailAlert"] == 1 && $theUser['suspended'] == 0) {
                            send_mail($temp['email'], $temp['name'], "New message from site admin at " . $settings['site_title'],
                                "You have received an important message from the site admin at " . $settings['site_title'] .
                                "\n\n" . $settings[base_url] . "/index.php?view=account&ac=messages");
                        }
                        $Db1->sql_close();
                        }
                   }
         }             
 

     if ($who == allmembers) {
$sql = $Db1->query("SELECT username FROM user");
while ($temp = $Db1->fetch_array($sql)) {
           $to = $temp[username];
                if ($message == "")
                    $errormgs = "<h3>You forgot to enter a message!<br>Please enter a message.</h3>";
                else
                    if ($subject == "")
                        $errormgs = "<h3>You forgot to enter a subject!<br>Please enter a subject.</h3>";
                    else {
                        $sent="1";
                        $Db1->query("INSERT INTO messages SET
username='$to',
`from`='Site Admin',
dsub='" . time() . "',
title='" . addslashes($subject) . "',
message='" . addslashes($message) . "'
");
                        if ($settings["imMailAlert"] == 1 && $theUser['suspended'] == 0) {
                            send_mail($temp['email'], $temp['name'], "New message from site admin at " . $settings['site_title'],
                                "You have received an important message from the site admin at " . $settings['site_title'] .
                                "\n\n" . $settings[base_url] . "/index.php?view=account&ac=messages");
                        }
                        $Db1->sql_close();
                   }
        }
     }
     if ($who == standard) {
        $sql = $Db1->query("SELECT username FROM user WHERE type = '0'");
        while ($temp = $Db1->fetch_array($sql)) {
            $to = $temp[username];
                if ($message == "")
                    $errormgs = "<h3>You forgot to enter a message!<br>Please enter a message.</h3>";
                else
                    if ($subject == "")
                        $errormgs = "<h3>You forgot to enter a subject!<br>Please enter a subject.</h3>";
                    else {
                        $sent="1";
                        $Db1->query("INSERT INTO messages SET
username='$to',
`from`='Site Admin',
dsub='" . time() . "',
title='" . addslashes($subject) . "',
message='" . addslashes($message) . "'
");
                        if ($settings["imMailAlert"] == 1 && $theUser['suspended'] == 0) {
                            send_mail($temp['email'], $temp['name'], "New message from site admin at " . $settings['site_title'],
                                "You have received an important message from the site admin at " . $settings['site_title'] .
                                "\n\n" . $settings[base_url] . "/index.php?view=account&ac=messages");
                        }
                        $Db1->sql_close();
                   }
        }
    }
    if ($who == upgraded) {
        $sql = $Db1->query("SELECT username FROM user WHERE type = '1'");
        while ($temp = $Db1->fetch_array($sql)) {
            $to = $temp[username];
                if ($message == "")
                    $errormgs = "<h3>You forgot to enter a message!<br>Please enter a message.</h3>";
                else
                    if ($subject == "")
                        $errormgs = "<h3>You forgot to enter a subject!<br>Please enter a subject.</h3>";
                    else {
                       $sent="1";
                       $Db1->query("INSERT INTO messages SET
username='$to',
`from`='Site Admin',
dsub='" . time() . "',
title='" . addslashes($subject) . "',
message='" . addslashes($message) . "'
");
                        if ($settings["imMailAlert"] == 1 && $theUser['suspended'] == 0) {
                            send_mail($temp['email'], $temp['name'], "New message from site admin at " . $settings['site_title'],
                                "You have received an important message from the site admin at " . $settings['site_title'] .
                                "\n\n" . $settings[base_url] . "/index.php?view=account&ac=messages");
                        }
                        $Db1->sql_close();
                    }
        }
   }
 }       

//*****************************************************************
$includes[content] = "

<small><font color=\"blue\">Send a Message to your Members</font></small>
<br /><br />
<small><center><font color=\"red\">$errormgs</font></center></small>
<div align=\"center\">
".iif($sent==1,"<font color=\"darkgreen\">Your messages have been sent!</font>")."
<form action=\"admin.php?view=admin&ac=amessages&action=send&" . $url_variables . "\" method=\"post\">

<table cellspacing=\"1\" cellpadding=\"0\" border=0>
<tr>
<td valign=\"top\">Subject:</td>
<td><input type=\"text\" name=\"subject\" size=\"45\"></td>
</tr>
<tr>
<td valign=\"top\">Send Messages To:</td>
<td><select name=\"who\">
        <option value=\"singlemember\">Single Member</option>
<option value=\"allmembers\">All Members</option>
<option value=\"standard\">Standard Members</option>
<option value=\"upgraded\">Upgraded Members</option>
    </select>
</td>
<tr>
<td><small><font color=\"blue\">Fill out Recipient ONLY <br>if sending to an indiviual.</font></small>
</tr>
<tr>
<td valigh=\"top\">Recipient:</td>
<td><input type=\"text\" name=\"to\" size=\"45\"></td>
</tr>
<tr> <td valigh=\"top\">Message:</td> </tr>
<tr>
<td colspan=2 align=\"left\"><textarea cols=48 rows=10 name=\"message\">$message</textarea></td>
</tr>
<tr>
<td colspan=2 align=\"center\"><input type=\"submit\" value=\"Send Messages\"></td>
</tr>
</table>

</form>
</div>

";
?>

Now, you will also need to set up a tab under communication as follows:

« Last Edit: Jun 03, 2010 11:03 pm by 757jterrell » Logged

gsbux
Reputation: (+11)
*

Offline

Gender: Male
Posts: 1633
Referrals: 34

View Profile
Reply #1: Jun 04, 2010 04:40 am

I want to ask whether it will work in MRV4 Aurora or not..?
Logged
757jterrell
Reputation: (+29)
*

Offline

Gender: Male
Posts: 967
Referrals: 0


Get a site from the OWNERS of the script!!!

View Profile WWW
Reply #2: Jun 04, 2010 04:48 am

I want to ask whether it will work in MRV4 Aurora or not..?

This mod will work on all auroras  clap
Logged

Legit Sites
Reputation: (+16)
*

Offline

Gender: Male
Posts: 818
Referrals: 2


View Profile WWW
Reply #3: Jun 04, 2010 04:53 am

If you need the mod installing then please check out our install price by going here - http://legitscripts.info/auroraaddons/message all installs will be done within 24 hours

Logged


gsbux
Reputation: (+11)
*

Offline

Gender: Male
Posts: 1633
Referrals: 34

View Profile
Reply #4: Jun 04, 2010 05:53 am

This mod will work on all auroras  clap

Thanks JT for answer Smiley I have just tried it, working well on MRV4  clap
Logged
Addons
Reputation: (+10)
*

Offline

Gender: Male
Posts: 2179
Referrals: 3


View Profile WWW
Reply #5: Jun 04, 2010 06:36 am

Thanks JT, its wonderful, its work perfectly...
Logged

Lead Capture Page, Email Template, Image Croping/removing Background etc... PTCevolution, Gen4, Aurora GPT, Xeon, Zeus (Template, Banners)
kapare1209
Reputation: (+11)
*

Offline

Gender: Male
Posts: 780
Referrals: 0

Born Scientist!

View Profile
Reply #6: Jun 04, 2010 09:34 am

Thanks JT!
This one is great!!!
Logged
Addons
Reputation: (+10)
*

Offline

Gender: Male
Posts: 2179
Referrals: 3


View Profile WWW
Reply #7: Jun 04, 2010 10:12 am

----
« Last Edit: Jun 04, 2010 09:37 pm by Addons » Logged

Lead Capture Page, Email Template, Image Croping/removing Background etc... PTCevolution, Gen4, Aurora GPT, Xeon, Zeus (Template, Banners)
757jterrell
Reputation: (+29)
*

Offline

Gender: Male
Posts: 967
Referrals: 0


Get a site from the OWNERS of the script!!!

View Profile WWW
Reply #8: Jun 04, 2010 10:58 am

Yeah I set this up as a one way message system. We have the support ticket system and the normal message system for routine two way communication.  The reason I did this is so that the admins do not get flooded with messages if they were to send out messages to a large group. It is mainly designed for site support and info.

However, if you would like to modify it to show your admin user name so that people can respond to those messages, just change the user name that is bold to the one you want to use:

username='$to',
`from`='Site Admin',
dsub='" . time() . "',

You will need to do this in all 4 sections,  individual, all, standard, and upgraded.
« Last Edit: Jun 04, 2010 11:07 am by 757jterrell » Logged

Addons
Reputation: (+10)
*

Offline

Gender: Male
Posts: 2179
Referrals: 3


View Profile WWW
Reply #9: Jun 04, 2010 11:10 am

hmmm

i understand ....

u r right, the previous one is better for Admin to save from tons of msg  big grin
« Last Edit: Jun 04, 2010 11:24 am by Addons » Logged

Lead Capture Page, Email Template, Image Croping/removing Background etc... PTCevolution, Gen4, Aurora GPT, Xeon, Zeus (Template, Banners)
JEAdams
Reputation: (+12)
*

Offline

Posts: 423
Referrals: 7

View Profile WWW
Reply #10: Jun 04, 2010 03:34 pm

I will install this for ya in exchange for free advertising credits on your site.

Btw, thanks JT for another great addon.
Logged

Print
 
Jump to:  
Copyright © 2008-2022 eMoneySpace. All rights reserved.