vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Super Private Message (https://vborg.vbsupport.ru/showthread.php?t=82389)

uae 06-01-2005 10:00 PM

Super Private Message
 
-------------------------------------
Super Private Message

-------------------------------------
Hack Version: 1.0.1
vB-version: 3.0.7
Developer: 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):
  1. User's Usergroup is Y.
  2. User's has posts greater than x posts.
  3. User's has posts less than x posts.
  4. User's Join Date is After (yyyy-mm-dd).
  5. User's Join Date is Befor (yyyy-mm-dd).
  6. User's Last Activiy is After (yyyy-mm-dd).
  7. User's Last Activiy is Befor (yyyy-mm-dd).
  8. User's Last Post is After (yyyy-mm-dd).
  9. 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 )

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/" 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

Quote:

Originally Posted by nexialys
@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

Quote:

Originally Posted by mholtum
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

Quote:

Originally Posted by LloydSev
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

Quote:

Originally Posted by hunterscentral
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

Code:


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

Replace with

Code:


$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

Quote:

Originally Posted by realace
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 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

Code:

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:
Code:

                                $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:
Code:

                                $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.

PHP Code:

if ($user['emailonpm'] AND $user['usergroupid'] != 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

Quote:

Originally Posted by mprjr41510
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

Quote:

Originally Posted by princessfrozen
I think I fixed it...

In superpm.php on Line 404
Found:
Code:

                                $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:
Code:

                                $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

Quote:

Originally Posted by rs_fmr
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 ?


All times are GMT. The time now is 04:28 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01837 seconds
  • Memory Usage 1,840KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (1)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete