Version: 1.00, by ThorstenA
Developer Last Online: Nov 2023
Category: Private Messages Enhancements -
Version: 3.8.x
Rating:
Released: 01-07-2009
Last Update: Never
Installs: 17
Template Edits
Re-useable Code Translations
No support by the author.
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 What is Mass PM? It's like Mass Mail in admincp. You write one pm to multiple users.
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:
Originally Posted by chikkoo
I installed this product. But I don't want to show this feature to everyone. Is there a way to restrict few usergroups, such as admin, supermoderators and moderators?
You can for example only show this mod for moderators, supermoderators and administrators (usergroups 5,7,6). Note that you have to put this condition for any template edit you want to only show to these usergroups.
Code:
<if condition="in_array($bbuserinfo[usergroupid], array(5,6,7))">
here you do put template edits
</if>
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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))">
here you do put template edits
</if>
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))">
here you do put template edits
</if>
You have to do this for all changed parts of this template (4x).
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?