Version: 1.5, by MARCO1
Developer Last Online: Jan 2022
Category: Show Thread Enhancements -
Version: 4.0.x
Rating:
Released: 01-16-2010
Last Update: Never
Installs: 70
Uses Plugins Auto-Templates
No support by the author.
Members Can't Download Attachments Before Reply
Or X Usergroup
As ARP Request, He want a separate Mod From MARCO1 Hide All to prevent members or X usergroup to download the Attachments before reply.
Features :
Hide Attachments before reply for Members.
Hide Attachments for guests.
Hide Attachments for X Usergroup can edit from admincp.
Message Manager : To edit the No Attachments Phrase.
Working with all vBulletin 4.X Versions.
Mod Info :
Coder : MARCO1
Version : 1.5
vBulletin Compatible Versions : All vBulletin 4.x versions
Installation time : 2 Seconds
Install :
Auto-installation Just upload the Mod from AdminCp.
Screen-shots & Download :
In Attachments, Remember you can't download this attach before Mark As Installed.
Translations :
You didn't have any permission to translate or edit or copy any part of this Mod, You should contact me first via PM, Just to let me know you will translate or edit in this Mod.
Same as above .. MARCO1 could please look at this as soon as you can its needed asap
And i know as Pearson of your infinite talent could get this going again in no time what so ever
if ( !$vbulletin->db->query_first ( "SELECT postid FROM " . TABLE_PREFIX . "post WHERE userid='".$vbulletin->userinfo[userid]."' AND threadid=$threadinfo[threadid]" ) ) :
and in ( post WHERE userid='" )
write your usergroup this will be have permission to see attachments without reply the thread
example :
PHP Code:
post WHERE userid='2,3,4,5,6"
Rather than edit the attacment.php I noticed the hooks exist in the plugin code, so I tried to replicate it like this.
PHP Code:
global $db ,$vbulletin;
$p=$db->query_first("SELECT userid from post where threadid='$post[threadid]' AND userid=22,24,25" . $vbulletin->userinfo[userid] . "");
$m=$p[userid];
if($vbulletin->userinfo[userid]!= $m AND can_moderate($forumid, 'canremoveposts') == false or $vbulletin->userinfo[userid] == 0)
{
eval('$this->post[\'imageattachmentlinks\'] = $vbphrase[MARCO1_At];');
eval('$this->post[\'thumbnailattachments\'] = $vbphrase[MARCO1_At];');
eval('$this->post[\'imageattachments\'] = $vbphrase[MARCO1_At];');
eval('$this->post[\'otherattachments\'] = $vbphrase[MARCO1_At];');
eval('$this->post[\'moderatedattachments\'] = $vbphrase[MARCO1_At];');
}
}
The 3 usergroups I want to allow to to download attachments without replying are 22, 24 & 25 and of course the 3 staff usergroups 5, 6 & 7, but I believe the staff usergroups are covered by this statement.
PHP Code:
if($vbulletin->userinfo[userid]!= $m AND can_moderate($forumid, 'canremoveposts') == false or $vbulletin->userinfo[userid] == 0)
Looking at the attachment.php I don't see the same hook info.
Many thanks for your hard work Marco is there any chance on an update for 4.1.0 pl2.Cos my forum needs it and is such a useful way to keep tabs on all that input stuff to my site.