PDA

View Full Version : Disabling attachments/uploads per forum


TheGorf
10-12-2009, 09:42 PM
I've been spending a little time this afternoon with Google and the VB.org search trying to find a solution to my problem. I am running VB 3.8.4, and I would like to disable attachments per forum. I realize that I can do it globally, and I also realize that I can do it with usergroups, however here is my issue. We have many sub-forums that are protected by permissions based around usergroup membership. Some are assigned, some are open to anyone joining. The point is that I have a single forum that I have need to disable users from attaching images to posts, but still allow the use of the img tag to hotlink. I don't want to have to burden my admin and moderator staff with the chore of editing that one forums permissions for 40 usergroups and then update it every time we edit or create a new usergroup.

I found some stuff that might have done what I wanted, but it was for VB 3.5, and the searches I have done seem to come up with nothing but explanations about how to disable it using usergroups. I even took a hack at trying to do it with a plugin, but I just don't know enough about VB coding interfaces to be very productive.

Anyone have any good suggestions?

Seven Skins
10-12-2009, 09:52 PM
Have you tried "Forum permission manager" in this you can disable "Can Upload Attachments"

EDIT: Oh you did ... ignore this.

.

Lynne
10-12-2009, 11:20 PM
I would do it with a plugin. Set 'canpostattachment' to false. So, for the newreply page, I woud use the newreply_start hook location and do something like:

if ($forumid == x)
$vbulletin->bf_ugp_forumpermissions['canpostattachment'] = false;x should be changed to the correct forumid. You can do something similar for other pages where attachments can be added (newthread.php page).

TheGorf
10-13-2009, 05:57 PM
I would do it with a plugin. Set 'canpostattachment' to false. So, for the newreply page, I woud use the newreply_start hook location and do something like:

if ($forumid == x)
$vbulletin->bf_ugp_forumpermissions['canpostattachment'] = false;x should be changed to the correct forumid. You can do something similar for other pages where attachments can be added (newthread.php page).

That is exactly what I was looking for and it works perfectly! Thank you so much!