![]() |
Mass Private Messages
1 Attachment(s)
Notice: This mod uses Re-usable Code, so please feel free to port it to vbulletin 4 under your username. Thanks.
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))"> |
hey do you think you could make a different hack but similiar to this where you can mass pm from within the admincp (I'd like to mass pm certain usergroups sometimes, but I can only email them currently) you would rock if you could do that version.
anyway, thanks for this release, it might come in handy down the track. |
This modificationen makes use of memberlist template and therefore has to be completely rewritten for an admincp version. That is why I will not write an admincp version. I'd be glad if another one would complete this task.
|
I am unsure as to what needs to be done to restrict this to certain user groups. Where exactly does this go and what gets placed in the "here you do put template edits"?
HTML Code:
<if condition="in_array($bbuserinfo[usergroupid], array(5,6,7))"> |
Quote:
|
Sould I would put "<if condition="in_array($bbuserinfo[usergroupid], array(5,6,7))">" at the beginning of your edits and then </if> at the end of your edits?
So your last edit HTML 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> Would be HTML Code:
<if condition="in_array($bbuserinfo[usergroupid], array(5,6,7))"> |
Only changes from template should be within new <if conditions>. For last change it would be like this:
HTML Code:
<if condition="in_array($bbuserinfo[usergroupid], array(5,6,7))"> |
Why was this left out? I'm still confused. Not that advanced of a coder.
</tr> $memberlistbits |
Quote:
|
Would it be possible to get each of the required edits with the additional usergroup code? If so, can you PM it to me?
|
Sorry, this mod is unsupported.
|
Can you at least help with the second edit. I have the one you already helped with and I try and do the other two on my own. I'm afraid I won't be able to figure out the big edit.
|
Sorry, this mod is unsupported. If you want to code yourself and have questions about coding, please go to appropriate forums on vbulletin.org. Thank you.
|
Re-Use: This code may be used in other modifications as long as the original author is credited.
|
Is there a way to select all?
|
Quote:
|
Notice: This mod uses Re-usable Code, so please feel free to port it to vbulletin 4 under your username. Thanks.
|
just installed this and reinstalled it like 3 times... i really doubt i'm doing something wrong but you never know :)... it does't work for me... every time i click on "send a private message to selected users" it says "no users selected"...
v3.8.2 here... any help is appreciated... |
Where is demo ?
|
No demo available, sorry. I upgraded my board to vb 4 and did not port this product to vb 4.
Notice: This mod uses Re-usable Code, so please feel free to port it to vbulletin 4 under your username. Thanks. |
These instructions aren't very precise. There are multiple instances of </form> in the memberlist template. If you don't specify which one to make the edit to, people will mess up their Member List page.
|
I am unfimiliar with this modification for now. I am using vb 4.0.x and do not use this any more.
You may try to take the first </form> on the template. |
Quote:
|
Thanks for your clarification! I have updated my description.
|
We are waiting for somebody to make it available for vb 4.x ?
Thanks,, |
in 4.x this does not appear in the template:
</tr> $memberlistbits so I can't do the last template edit. Anyone have any ideas about how to change this for 4.x? I did the other template edits OK. Anyone have any success with this for 4.x? |
Any luck porting this to 4.x yet?
thanks |
Not works with 3.8.7
|
All times are GMT. The time now is 10:38 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:
|