PDA

View Full Version : Can't Download Attchments Before Hitting Thanks



admin
15-05-2011, 09:21 AM
Can't Download Attchments Before Hitting Thanks



Mark as Installed Please
(http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=263385)

First Let me point out this is not my ORIGINAL work

This is a fix / upgrade of Abe1 (http://www.vbulletin.org/forum/member.php?u=49809) Cant Download attachments (http://www.vbulletin.org/forum/showthread.php?t=104845)


I been reading people wanting an updated version

This works well in vB3.8 and vB4 i have also added usergroup permissions

Staff (Moderators etc) it already dont apply to.

To edit user groups you DONT want this to apply to

Edit attached product and search for

is_member_of($vbulletin->userinfo,

after the , add usergroups you want to disable this from. Mine looks like this

is_member_of($vbulletin->userinfo, 9,10,13

Also if you want to disable for images edit out these lines in same product

eval('$this->post[\'imageattachmentlinks\'] = construct_phrase("$vbphrase[cant_see_attachements_before_thanksing_a_post]");');
eval('$this->post[\'thumbnailattachments\'] = construct_phrase("$vbphrase[cant_see_attachements_before_thanksing_a_post]");');
eval('$this->post[\'imageattachments\'] = construct_phrase("$vbphrase[cant_see_attachements_before_thanksing_a_post]");');

Done!