Quote:
Originally Posted by hanhdn
You find {vb:raw template_hook.memberaction_dropdown_items} in memberaction_dropdown template, then add above it:
PHP Code:
<vb:if condition="$bbuserinfo[usergroupid] == 6||$bbuserinfo[usergroupid] == 7||$bbuserinfo[usergroupid] == 5||$bbuserinfo[usergroupid] == 10">
<li class="left">
<img src="{vb:stylevar imgdir_siteicons}/moderation.png" alt="" />
<a href="#" class="spam" onclick="window.open('decimator.php?userid={vb:raw post.userid}&threadid={vb:raw post.threadid}&postid={vb:raw post.postid}','spam_decimator','statusbar=yes,menubar=yes,toolbar=yes,scrollbars =yes,resizable=yes,width=850,height=600'); return false;"><font color="red">Spam</font></a>
<span class="seperator"> </span>
</li>
</vb:if>
You can change the groupid number depend on your forum 
|
This code is not working in 4.2. It seems like it should, but it pops open a spam decimator window with empty strings for userid, postid, etc.