PDA

View Full Version : Super Private Message


uae
06-01-2005, 10:00 PM
-------------------------------------
Super Private Message
-------------------------------------
Hack Version: 1.0.1
vB-version: 3.0.7
Developer: WwW.UAEWEB.CoM (http://www.uaeweb.com/)
Install-difficulty: Easy


What is it:
Ever wanted to send a mass private message to a group of members?
well, yeah, but what if you want to specify who gets to send this private message and to whome it should be sent.

Private Messages being an effective tool at times Administrators or Moderators are forced to send mass number of private messages. Currently the limitation of sending private messages for various reasons (such as announcement for certain groups, with certain criteria ?etc) is frustrating and that is why the idea of current hack came along.

Super Private Message will give you the convinous and enable you to provide many different options for sending mass private messages to users by any one you choose to assign this task to based on Conditionals (if):

User's Usergroup is Y.
User's has posts greater than x posts.
User's has posts less than x posts.
User's Join Date is After (yyyy-mm-dd).
User's Join Date is Befor (yyyy-mm-dd).
User's Last Activiy is After (yyyy-mm-dd).
User's Last Activiy is Befor (yyyy-mm-dd).
User's Last Post is After (yyyy-mm-dd).
User's Last Post is Befor (yyyy-mm-dd).Settings in the Admin CP:

Specify who gets to use the Super Private Message System by Assigning their User Names or User IDs.
Specify the usergroup they can send a mass pm to.
Select what usergroup to be visible for selection(s).
Select to have the assignee change his identity when sending.
Control what fields to be visible for each assignee.
List All assignee, delete/edit them.Super Private Message 1.0.1 Updates:
- New Addition: Can send messages to individuals who are in the usergroup as a Secondary Usergroup instead of just the Primary. ( Credit goes to msgotit (https://vborg.vbsupport.ru/member.php?u=84672) )

Installation Update For Super Private Message 1.0.1
You may install v1.0.1 fresh
You may upgrade from v1.0.0 -> 1.0.1 (Read UPGRADE.txt)


Screenshots:

See attachments.

Hack Installation Details:

New files for this Hack: 2
/admincp/adminsuperpm.php
/superpm.php

New templates for this Hack: 1
pm_newsuperpm

File-edits: 1
/admincp/index.php

Template-edits: 1
pm_newpm

DB Tables modified for this Hack: 1
user
-------------------------------------

PLEASE REMEMBER TO BACKUP BEFORE YOU BEGIN!


If you like this hack, please be kind and click on "https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=82389)" Link.

nexialys
06-02-2005, 10:53 AM
/me click I LOVE uae

/me tested the original and think this hack is MAJOR for all clans and groups...

Barakat
06-02-2005, 09:17 PM
thanks man for that great hack.

BarHopper
06-03-2005, 07:43 AM
/me installs

Thug
06-03-2005, 12:20 PM
ive got this already so how is it new

mholtum
06-03-2005, 12:42 PM
is there no link to the superpm.php file? How do the usergroups you specified access the option? Or did I not get enough sleep last night?

nexialys
06-03-2005, 01:55 PM
@Thug, impossible, uae coded this one completely independant this week... so if you have something similar, it's possible, but nothing in the Releases ever look like that one.

@mholtum... read the install doc, you will find where are the permissions... did you edited the templates ?!

mholtum
06-03-2005, 02:33 PM
@Thug, impossible, uae coded this one completely independant this week... so if you have something similar, it's possible, but nothing in the Releases ever look like that one.

@mholtum... read the install doc, you will find where are the permissions... did you edited the templates ?!
Yea and everything works, but how do I actually send a mass PM? I must be retarded

mholtum
06-03-2005, 10:48 PM
Bump

LloydSev
06-04-2005, 04:00 AM
Yea and everything works, but how do I actually send a mass PM? I must be retarded

It appears you do a normal message, then after typing the message, select "Send Super Private Message" at the top. That will let you select the usergroups or such to send it to.

mholtum
06-04-2005, 04:11 AM
It appears you do a normal message, then after typing the message, select "Send Super Private Message" at the top. That will let you select the usergroups or such to send it to.Thank you, I cant believe I missed that.. :Bangs head on keyboard:

yoyoyoyo
06-04-2005, 05:01 AM
excellent hack!

wolfgrrl
06-04-2005, 07:45 AM
Super easy to install......I love this hack!

eNforce
06-06-2005, 02:31 AM
This was indeed a sinch to install, thanks.

/me installs

HC.
06-07-2005, 05:43 AM
I installed this hack which is a outstanding hack BUT i would like the option to add a specific user group to have the option to use this

I dont want to go through and find the names or user id's

Is there any way to a usergroup to this hack?

HC.
06-07-2005, 05:50 AM
I would also like to see that it have the option to save to the confirm list
I just tested it and it does not save to the confirm list in PM's is there anyway to add this and the above request That I have?

egyptsons
06-07-2005, 02:55 PM
:rambo: great :) work I like this

uae
06-09-2005, 06:31 AM
I would also like to see that it have the option to save to the confirm list
I just tested it and it does not save to the confirm list in PM's is there anyway to add this and the above request That I have?

I don't know if you want to keep track of that list if let's say that message has been sent to 1000 members in your forum, I wouldn't do that!

but let's try this

in superpm.php

Find


// $show['trackpm'] = $cantrackpm = $permissions['pmpermissions'] & CANTRACKPM;


Replace with


$show['trackpm'] = $cantrackpm = $permissions['pmpermissions'] & CANTRACKPM;

realace
06-09-2005, 02:41 PM
Can this also send messages to individuals who are in the usergroup as a Secondary Usergroup instead of the Primary?

I have all my useres set up as "Registered User" in the primary usergroup, and have special additional groupings by adding them to secondary usergroups.

(GREAT HACK as it stands, BTW!)

uae
06-12-2005, 05:10 AM
Can this also send messages to individuals who are in the usergroup as a Secondary Usergroup instead of the Primary?
I have all my useres set up as "Registered User" in the primary usergroup, and have special additional groupings by adding them to secondary usergroups.

(GREAT HACK as it stands, BTW!)
No, it's only sending to the primary usergroup.
I'll try adding that into maybe the next version of the hack :rolleyes:

uae
06-15-2005, 07:15 AM
Super Private Message v1.0.1 has been released and with the new update, you will be able to send messages to individuals who are in the secodary usergroup instead of just the primary usergoup.

Thanks goes to msgotit (https://vborg.vbsupport.ru/member.php?u=84672) for this addition.

You may upgrade by replacing the existing superpm.php with the new one included in the zip file.

SilverBoy
06-20-2005, 07:22 PM
I get a dangerous problem

when I send a one message to all my members (more than 36,000) the server is hang up, because it sending an email notification to all members without breaking time between emails.

any idea?

EricaJoy
06-21-2005, 10:30 AM
Brilliant!

Now if there was a way to automate the PM sending when a person is added to a group, that would be fantastic!

EricaJoy
06-21-2005, 02:51 PM
/me clicks install

EricaJoy
06-22-2005, 11:36 PM
Database error in vBulletin 3.0.*:

Invalid SQL: INSERT INTO pmtext (fromuserid, fromusername, title, message, iconid,
dateline, showsignature, allowsmilie) VALUES (, '', 'Welcome to the Premiere Users
Group', 'Welcome to the Premiere Users group. Enjoy your stay!', 0, 1119469648, 1, 1)

mysql error: You have an error in your SQL syntax. Check the manual that
corresponds to your MySQL server version for the right syntax to use near ' '',
'Welcome to the Premiere Users Group', 'Welcome to the Pre

mysql error number: 1064 I get thise when I attempt to send a Mass PM to a specific Usergroup. :( I hate error 1064 mainly because I don't know what it means. Any help please?

EricaJoy
06-23-2005, 02:42 AM
I think I fixed it...

In superpm.php on Line 404
Found:
$DB_site->query("INSERT INTO " . TABLE_PREFIX . "pmtext (fromuserid, fromusername, title, message, iconid, dateline, showsignature, allowsmilie) VALUES ($pm[userid], '" . addslashes($pm['username']) . "', '$title', '$message', $iconid, " . TIMENOW . ", $signature, $disablesmilies)");
Replaced with:
$DB_site->query("INSERT INTO " . TABLE_PREFIX . "pmtext (fromuserid, fromusername, title, message, iconid, dateline, showsignature, allowsmilie) VALUES ($bbuserinfo[userid], '" . addslashes($bbuserinfo['username']) . "', '$title', '$message', $iconid, " . TIMENOW . ", $signature, $disablesmilies)");

mprjr41510
06-26-2005, 04:44 PM
I'm interested in using this hack but have a concern...

Let's say you send 5000 private messages.. Is there a way to "mass delete" them all after a certain amount of days? Otherwise won't this take up a whole lot of extra memory if you do mass messaging often?

Great idea by the way :)

mprjr41510
06-26-2005, 04:46 PM
SilverBoy,

Are you still having trouble using this hack with your large forum? I have about as many members as you and want to avoid any problems.

SilverBoy
06-26-2005, 05:03 PM
yes mprjr41510 the trouble still exist.

my server dieng when I send a private message, I think the hack must be modified to send a specific amount of private message evrytime maybe 500 pm at once, to avoid server hang.

mprjr41510
06-26-2005, 05:14 PM
SilverBoy,

Yes, that is a good idea... Similar to the way you can email users through vBulletin. It let's you choose a certain number of messages to send so you can do it in batches.

Hey uae, is this something you can add to the hack? :)

SilverBoy
07-01-2005, 05:28 PM
uae Are u there? :d

we waiting ur help

msgotit
07-12-2005, 06:33 PM
SilverBoy,

I have looked at the code a little bit and I think that if you didn't care to have an email sent out then you could delete that code out of the superpm.php file. That is one option. 36000 emails are a lot to send. I don't think sending the PM itself should matter, but I don't deal with that many people. Maybe when UAE comes back he can shed some more light on the situation. I haven't tried this but I think that if you deleted this code out of the file it wouldn't send the email.

if ($user['emailonpm'] AND $user['usergroupid'] != 3 AND $user['usergroupid'] != 4)
{
$touserinfo = &$user;
eval(fetch_email_phrases('pmreceived', $touserinfo['languageid'], '', 'email'));
vbmail($touserinfo['email'], $emailsubject, $emailmessage);
}
Like I said, I have NOT tried this, and it will likely make it so they don't get an email. I think that it will keep the server from getting hung up (assuming that it gets hung up because of the email).

msgotit
07-12-2005, 08:23 PM
SilverBoy,

Yes, that is a good idea... Similar to the way you can email users through vBulletin. It let's you choose a certain number of messages to send so you can do it in batches.

Hey uae, is this something you can add to the hack? :)
PMs are a lot different then email in that they are inserted into the database, they are not sent out, you may be right however that by doing a certain amount at one time may help, but I don't think so.

I got thinking about this, and you could be right, especially if you sent it to 36000 people. I haven't done much with database optimization, but that may be what you want to look at. I was reading that you could 'lock' the table and insert multiple records at once, which may be what you want to do, that is, eliminating that many insert statements could help. I don't know for sure however.

Mike_K
07-18-2005, 08:26 AM
I think I fixed it...

In superpm.php on Line 404
Found:
$DB_site->query("INSERT INTO " . TABLE_PREFIX . "pmtext (fromuserid, fromusername, title, message, iconid, dateline, showsignature, allowsmilie) VALUES ($pm[userid], '" . addslashes($pm['username']) . "', '$title', '$message', $iconid, " . TIMENOW . ", $signature, $disablesmilies)");
Replaced with:
$DB_site->query("INSERT INTO " . TABLE_PREFIX . "pmtext (fromuserid, fromusername, title, message, iconid, dateline, showsignature, allowsmilie) VALUES ($bbuserinfo[userid], '" . addslashes($bbuserinfo['username']) . "', '$title', '$message', $iconid, " . TIMENOW . ", $signature, $disablesmilies)");


This works. Thank you very much!

the1maxim
07-30-2005, 01:23 AM
Installed. It works great, and sends out the messages.....except I get this error, any ideas:

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 354 bytes) in /srv/www/htdocs/includes/functions.php on line 316

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 40 bytes) in Unknown on line 0

Thanks.

blueuniverse
08-23-2005, 06:09 PM
Thanks great hack. I'd love it if you could do the 500 private messages at a time thing as well. Not too much of a problem now with 3500 members but I can see it becoming one in the end.

Thanks for a great hack,

Ed :)

MajorFm.com
09-04-2005, 06:15 AM
Will this work with 3.0.3 ok?

blueuniverse
10-15-2005, 02:06 PM
I'm just getting a page cannot be displayed error when I click count & confirm now. Anybody shed some light as to why?

It's pretty urgent.

rs_fmr
11-06-2005, 05:38 AM
I tried installing Super Private Message Mod Version: 1.0.1 over vbulletin 3.5.0 but the modifications required in admincp/index.php do not match. Is there any way by which Super PM can be used in Vbulletin 3.5.0

Mike_K
11-06-2005, 07:50 PM
I tried installing Super Private Message Mod Version: 1.0.1 over vbulletin 3.5.0 but the modifications required in admincp/index.php do not match. Is there any way by which Super PM can be used in Vbulletin 3.5.0


I am also interested in usign Super PM with 3.5.

I used it with 3.0.7 and it was fantastic!

Is there a way to get it in 3.5 ?

tekram
12-18-2005, 12:12 PM
Thx Dude for this Hack. Testet on vb 3.0.10 and its running great

mhuckaby
02-01-2006, 09:47 PM
Will this work in 3.5 or greater?

Thanks,
Mark

Tralala
02-01-2006, 10:34 PM
When I use this to send PM's, recipients do not get email notifications about the PM (even though they have that preference checked in their User CP options, and even though they get email notifications about other "individually sent" PM's.)

NOW, I'm not saying this is a bad thing, for some "mass PM's" I actually prefer it. But it's unexpected behavior.

Ideally what I'd like to see is a pulldown/confirmation when I create a Super PM. Something like:

-Follow users' setting, with regards to email notification
-Do not send email notification, regardless of users' setting
-Send email notification, regardless of users' setting (including a disclaimer/explanation is suggested.)

XJeepguy
04-28-2006, 02:21 PM
Had the exact same error , thanks for the fix :banana: :banana:

XJ


I think I fixed it...

In superpm.php on Line 404
Found:
$DB_site->query("INSERT INTO " . TABLE_PREFIX . "pmtext (fromuserid, fromusername, title, message, iconid, dateline, showsignature, allowsmilie) VALUES ($pm[userid], '" . addslashes($pm['username']) . "', '$title', '$message', $iconid, " . TIMENOW . ", $signature, $disablesmilies)");
Replaced with:
$DB_site->query("INSERT INTO " . TABLE_PREFIX . "pmtext (fromuserid, fromusername, title, message, iconid, dateline, showsignature, allowsmilie) VALUES ($bbuserinfo[userid], '" . addslashes($bbuserinfo['username']) . "', '$title', '$message', $iconid, " . TIMENOW . ", $signature, $disablesmilies)");

Nizar
05-31-2006, 10:09 AM
Will this work in 3.5 or greater?

Thanks,
Mark

I repeat the question. did somebody try it ??

Tralala
06-03-2006, 02:31 PM
Works for me in 3.5.3.

FatalBreeze
06-07-2006, 10:23 AM
Hi, i've got a bit of a problem with this hack. Every time I try send PMs, it just stops and gives me a blank page. I mean, I click on "Count & Confirm" and then a blank page appears and nothing happens... What is the problem?

Mysticales
07-17-2006, 07:41 AM
Hey I have 40k users on my forums.. Um.. if I used Super PM to msg them all at the same time.. I take it that would cause me a issue right? Table locking?

Or whats the deal? Is there batch processing? Or something secure? Or should I just not use this?

Dennis Olson
08-28-2006, 04:25 PM
Will this work in 3.6.x?

Slyfox1
08-31-2006, 10:59 AM
No, all seems to be fine, but sending the message doesn't do anything. There are other MassPM hacks that also fail with 3.6, so I assume there's something broken between versions :(

Pitty, this is a VERY usable hack.

SilverBoy
06-23-2007, 07:54 PM
is there a 3.6.x version?