![]() |
Mass Private Messages on Memberlist
What does this modification do?
On memberlist select multiple users for Mass Private Messages them. This is done by only 2 template edits :D What is Mass PM? It's like Mass Mail in admincp. You write one pm to multiple users. How to In template memberlist_resultsbit replace Code:
</tr> Code:
<td class="$bgclass"><input type="checkbox" name="deletebox[$userinfo[userid]]" value="$userinfo[userid]" /></td> Code:
<form action="profile.php?do=deleteusergroups&usergroupid=$usergroupid" method="post"> Code:
<script type="text/javascript"> Code:
</form> Code:
<input type="button" class="button" value="$vbphrase[send_private_message_to_selected_users]" onclick="pm(this.form);" title="title" style="float:right"/> Code:
</tr> Code:
<td class="thead" align="right"><input type="checkbox" name="allbox" title="$vbphrase[check_uncheck_all]" onclick="js_check_all(this.form);" />$vbphrase[check_uncheck_all]</td> How does this template modification work? This template edit puts a checkbox right to each user. If you click on "Send PMs", the small javascript generates a custom url "private.php?do=newpm&userid[]=1&userid[]=2&userid[]=3" and refreshes actual window with this url. Javascript code is mostly from Quick Links > Open Buddy List. FAQ Quote:
Code:
<if condition="in_array($bbuserinfo[usergroupid], array(5,6,7))"> |
:erm: what is Mass PN :confused:
|
It's like Mass Mail in admincp. You write one pm to multiple users.
|
Quote:
|
Finally, great job.
I tried to get this very same edit to work for me long ago. I assume this picks up usergroup permissions? |
Quote:
This template edit just puts a checkbox right to each user. If you click on "Send PMs", the small javascript just generates a custom url "private.php?do=newpm&userid[]=1&userid[]=2&userid[]=3" and refreshes actual window with this url. Nothing special here, javascript code is mostly from Quick Links > Open Buddy List. |
Awesome, Thank you.
|
I am also working on a "Select All" checkbox, help is appreciated :D
|
Quote:
Code:
<td class="thead" align="right"><input type="checkbox" name="allbox" title="Check All" onclick="js_check_all(this.form);" />Check All</td> |
Quote:
|
All times are GMT. The time now is 11:30 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|