Status
Not open for further replies.

Ozzy47

Former Developer
Customer
Is their a way to disable sending a shout pm per usergroup, instead of global disabling it
 
Ok After playing around in the templates I found a way to do it. vB 4.x

Open your dbtech_vbshout_memberaction_dropdown in your style, find the following code:

HTML:
<vb:if condition="$canpm">
        <li class="right">
            <a href="javascript://" onclick="return vBShout{vb:var instance.instanceid}.create_pm('{vb:var userid}', '{vb:var jsusername}');" title="{vb:raw usertitle}">
                <img src="{vb:stylevar imgdir_siteicons}/message.png" alt="" />
                {vb:rawphrase send_private_message}
            </a>
        </li>
        </vb:if>
And Replace with this:

HTML:
<vb:if condition="is_member_of($bbuserinfo, 6)">        
        <vb:if condition="$canpm">
        <li class="right">
            <a href="javascript://" onclick="return vBShout{vb:var instance.instanceid}.create_pm('{vb:var userid}', '{vb:var jsusername}');" title="{vb:raw usertitle}">
                <img src="{vb:stylevar imgdir_siteicons}/message.png" alt="" />
                {vb:rawphrase send_private_message}
            </a>
        </li>
        </vb:if>
                 </vb:if>
In the first line of the new code is where you can set the usergroups you want to allow the pm feature: <vb:if condition="is_member_of($bbuserinfo, 6)"> seperate groups with a comma, ie; 6,7,8,9
 
Last edited:
Can be done in vB 3.8.x also.

Open your dbtech_vbshout_memberaction_dropdown in your style, find the following code:

HTML:
<if condition="$canpm"><tr><td class="vbmenu_option"><a href="javascript://" onclick="return vBShout{$instance[instanceid]}.create_pm('{$userid}', '{$jsusername}');" title="{$usertitle}"><phrase 1="$musername">$vbphrase[send_private_message_to_x]</phrase></a></td></tr></if>

And Replace with this:

HTML:
<if condition="is_member_of($vbulletin->userinfo, 6)">
    <if condition="$canpm"><tr><td class="vbmenu_option"><a href="javascript://" onclick="return vBShout{$instance[instanceid]}.create_pm('{$userid}', '{$jsusername}');" title="{$usertitle}"><phrase 1="$musername">$vbphrase[send_private_message_to_x]</phrase></a></td></tr></if></if>

In the first line of the new code is where you can set the usergroups you want to allow the pm feature: <vb:if condition="is_member_of($bbuserinfo, 6)"> seperate groups with a comma, ie; 6,7,8,9
 
Status
Not open for further replies.

Similar threads

Legacy vBShout

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
3,177
Customer rating
5.00 star(s) 1 ratings
Back
Top