![]() |
An update to the hack posted by chrispadfield at http://www.vbulletin.com/forum/showt...threadid=8582.
Updates: 1. Modified the look of page to match that of the email page. 2. Added select fields to send message to. 4. Fixed $adminuser and set to a hidden field. Enjoy! PHP Code:
|
oh wicked, glad someone made these changes, saved me doing it ;)
|
very nice man :)
thanks alot.. |
Wow, that was quick and easy --
Is there anyway you can limit who it gets sent to? (using the last visited, or join date fields) Our board is over a year old and I just sent all these old users a test message which is a waste since they are long gone. Since my board is event based, if they are gone for more than a few months they probablyaren't coming back (which is fine!):) |
me2be, it is just a matter of ammending the SELECT user line and adding an extra condition after WHERE. I will try and get the exact command i don't know how to do it with dates at the moment but someone might.
|
How about an addition, to MassPM a specific group so you can send to lets say only moderators, I think that would be nice.
|
I have updated the code which adds the select user statments. Also removed the icons as they really aren't needed... Enjoy!
|
What does this mean? It still shows the forum underneath the errors:
Warning: Cannot add header information - headers already sent by (output started at /usr/local/etc/httpd/***/admin/masspm.php:2) in /usr/local/etc/httpd/***/admin/global.php on line 68 Warning: Cannot add header information - headers already sent by (output started at /usr/local/etc/httpd/***/admin/masspm.php:2) in /usr/local/etc/httpd/***/admin/global.php on line 69 Warning: Cannot add header information - headers already sent by (output started at /usr/local/etc/httpd/***/admin/masspm.php:2) in /usr/local/etc/httpd/***/admin/global.php on line 70 Warning: Cannot add header information - headers already sent by (output started at /usr/local/etc/httpd/***/admin/masspm.php:2) in /usr/local/etc/httpd/***/admin/global.php on line 71 Warning: Cannot add header information - headers already sent by (output started at /usr/local/etc/httpd/***/admin/masspm.php:2) in /usr/local/etc/httpd/***/admin/global.php on line 128 |
Not sure why you would get header errors... Maybe you have a space on the first line of your code?
Try the zipped file attached below... |
Yay!!! It worked!!!!! ** happy dance **
|
I have updated this as well if anyone is interested, here is a screen shot and I added it to the control panel. I eliminated the other queries such as lastpost etc.. since I was only lookin to Mass PM a group or all groups. Here it is:
PHP Code:
find this in admin/index.php below "User Groups and Permissions: Code:
<tr><td><hr></td></tr> Code:
<tr><td> |
needs to be ammeneded to send to just moderators though as moderators arn't a usergroup anymore.
|
Quote:
Administrator [edit][list all users] Moderators [edit] [remove][list all users] Registered [edit][list all users] Super Moderator [edit][list all users] Unregistered / Not Logged In [edit][list all users] Users Awaiting Email Confirmation [edit][list all users] That's all folks They are on my forum...? |
Actually.. Unless you move them into a group on your own they are all set to the Registered User's Group when you upgrade. Moderator permissions are handled through a separate moderators table now.
|
I sent a test message to my moderators' user group last night, which is 5 people. To test it out, I included the $username, $password, and $email variables as it says you can. When it was sent out, instead of doing the person's the message was going to, all 5 messages had the info of the first person it was sent to.
i.e. I sent it to users 5, 49, 65, 100, 105 and in all of them it put the info for user 5. Any ideas? Thanks for a great hack otherwise. :) |
subst:
Code:
$message=str_replace("$email",$user[email],$message); Code:
$message=str_replace("\$email",$user[email],$message); (add slashes before $ otherwise it will parse as a var) :-) |
I don't understand how to install this hack?
|
that is it, the run masspm.php.
I used wreckman's and it went pearshaped and did not send the message for some reason so had to use my old one to do it. Not sure what the bug is but something not quite right i don't think? |
VERSION 2.1 VERSION 2.1!!! PLEASE ADD :D
~Chris |
all right! works fine
|
I have done the below but still getting the problem were the first name in the first message is being sent in all PM'ed messages.
Help! Quote:
|
That is what I am experiencing too
Also, with the next update to this script, if possible could you make an "Are you sure" screen that allows you to select which users should and should not receive the message? |
Solved the problem by running the repair script.
|
great hack !!!
I havent used it yet as i havent thought of a good enough subject to PM my users with !!! here is a screen shot !! :):):) |
ok, found the error regarding the username not correctly parsed:
change this on: PHP Code:
PHP Code:
|
Quote:
|
Is there an updated version with all the fixes?
Thanks, Josh |
yeah i wouldnt mind installin this one but with all the changes and stuff its baffled me a bit so il have 2 leave it for the sake of my forum!!!!!
|
I install this, but it doesn't parsed the information (username, email, password). I also noticed that the user doesn't get a msg pop-up even when they specified to get a pop-up when new PM arrive.
|
is there new version for 2.2.0?
I've just install it to my new version 2.2.0, it works perfectly, just have some suggestions. 1. "search for pass" is meangless now, since new version has encrypted pass, please remove it. 2. We really need Save function that keep all of our mass PM to users in Send Folder box. To keep for the record. |
does it work for 2.2.1 ?
|
I have adjusted the script a little bit.
It's now nearly the same as the "Send eMail to users"-Feature, so now you can test the process before sending and all variables get replaced correct. The Script works perfect for vBulletin 2.2.x! I have attached the script (German an English version!) to this Posting. @NAM Quote:
Search: PHP Code:
PHP Code:
Small update (changed code order) 2002-09-21: Updated the archive with new versions (Bugfix + Automatic redirect Feature when sending over several pages.) 2002-07-12: Updated the archive with new versions (Bugfix + eMail Feature) Greetings, Mystics |
Thanks a lot. Very cool!
Actually there are - in your masspm.php - two lines with <b>All done!</b> (one for first page, another for the multiple pages option) Which of them should I replace with the above INSERT to save the PM in the outbox ? Besides, the INSERT itself contains three identical values: '$fromuserid','$fromuserid','$fromuserid', Is it right (I shall not save the single target of each message...) ? Hwr. that variable is NEVER defined anywhere :stupid: :stupid: Thanks |
Sorry Mystics, but I definetively think your insert queries
PHP Code:
PHP Code:
Thnx |
Quote:
There is one line with <b>All done!</b> and one line with <p><b>All done!</b></p> and as I wrote you should replace the second one! Quote:
PHP Code:
The reason why this variable appears three times in the "Save-Sent-PM-in-My-Outbox" Feature is simple: you are the sender of the pm, you are the receiver of the pm and the PM belongs to you, so all userids have to be of course the same. I have tested all of this before I posted it, so just believe me, it works! :rolleyes: |
Thnx for having cleaned out.
Bye |
Great hack. I'm wondering, is there a way to put to this in my control panel for easy access (rather then enter the url manually)? Thanks.
|
Quote:
Find: PHP Code:
PHP Code:
|
The only problem I see so far with this is that it does not send out a notification email if when someone receives a PM. Is there a way to fix this?
Thanks Josh |
Quote:
I have done the eMail Feature + Bugfix long time ago, sorry ;) Mystics |
All times are GMT. The time now is 04:44 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|