Back to vBulletin 4.x Add-ons

PHPKD - Usergroup Attachment Moderation
Mod Version: 4.0.100, by Omranic

vB Version: 4.0.x Rating: (3 votes - 5.00 average) Installs: 10
Released: 21 Mar 2010 Last Update: Never Downloads: 51
Not Supported DB Changes Uses Plugins Code Changes Additional Files Re-usable Code Translations  

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!.................. Brought to you by PHP KingDom (http://www.phpkd.net) ..................!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Please remember to click Mark as Installed if you use this product.
Support requests from members who have not marked this as installed will be considered low priority.


Name: PHPKD - Usergroup Attachment Moderation
Version: 4.0.100

Description: This product adds new permission per usergroup "Follow Forum Moderation Rules", which if set to 'no' it will force all attachments posted by this usergroup to be placed into moderation queue by default.

Compatible with: All 3.8.x/4.0.x vBulletin versions.

Requirements:
  • vBulletin version 3.8.x/4.0.x


Related Products:
  • http://go.phpkd.net/en/product/vbasn/


Helpful links:
  • http://forum.phpkd.net/project.php?do=issuelist&projectid=2&issuetypeid=bug
  • http://forum.phpkd.net/project.php?do=issuelist&projectid=2&issuetypeid=feature


Features:
  • General Features:-
    • MD5 checked.
    • Fully Phrased.
    • Fully Supported.
    • Accurate Processing.
    • Professionally Coded.
    • Detailed Documentation.
    • Zero Additional Queries.
    • Requires only one manual edit.
    • Doing all default vBulletin checks & vBulletin Fully Compatible.
  • Specific Features:-
    • Per usergroup permission "Follow Forum Moderation Rules" (If no, attachments are always placed into moderation queue by default).


Installation Procedure:
  1. Upload required files to their appropriate places:
    • includes
      • xml
        • bitfield_phpkd_vbuam.xml
      • md5_sums_phpkd_vbuam.php
  2. Do the following small manual edit, open the file "includes/class_upload.php" (follow instructions relative to your vB version):
    3.8.x:
    Search for:
    Code:
    if (isset($this->foruminfo['moderateattach']))
    			{
    				$visible = ((!$this->foruminfo['moderateattach'] OR can_moderate($this->foruminfo['forumid'], 'canmoderateattachments')) ? 1 : 0);
    			}
    Replace with:
    Code:
    // PHPKD - Usergroup Attachment Moderation
    			if (isset($this->foruminfo['moderateattach']) OR isset($this->registry->bf_ugp_attachpermissions['followforummoderation']))
    			{
    				$visible = (((!$this->foruminfo['moderateattach'] OR can_moderate($this->foruminfo['forumid'], 'canmoderateattachments')) AND ($this->registry->userinfo['permissions']['attachpermissions'] & $this->registry->bf_ugp_attachpermissions['followforummoderation'])) ? 1 : 0);
    			}
    4.0.x:
    Search for:
    Code:
    $this->data->setr_info('thumbnail', $this->upload['thumbnail']['filedata']);
    Add under it directly the following code:
    Code:
    		// PHPKD - Usergroup Attachment Moderation
    		if (isset($this->registry->bf_ugp_attachpermissions['followforummoderation']) AND !($this->registry->userinfo['permissions']['attachpermissions'] & $this->registry->bf_ugp_attachpermissions['followforummoderation']))
    		{
    			$this->data->set('state', 'moderation');
    		}
    Save the modified file "includes/class_upload.php" and upload it to it's place again (ALLOW OVERWRITE).
  3. Import the product's XML file "product-phpkd_vbuam.xml" from AdminCP.
  4. Configure usergroup settings -if required-.
  5. You're Done .


Upgrade Procedure:
  1. Same as "Installation Procedure", but "Allow Overwrite" for both file uploads & product import.


Controls:
  • Usergroup Permissions:
    vBulletin AdminCP » Usergroups » Usergroup Manager » Select usergroup to edit » Attachment Permissions » Follow Forum Moderation Rules


License:
http://info.phpkd.net/en/license/free/
--------------- --------------- --------------- ---------------
Creative Commons - Attribution-Noncommercial-Share Alike 3.0
http://creativecommons.org/licenses/by-nc-sa/3.0/
--------------- --------------- --------------- ---------------
  • You are free:
    • To Share — to copy, distribute and transmit the work
    • To Remix — to adapt the work

  • Under the following conditions:
    • [Attribution]: You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
    • [Noncommercial]: You may not use this work for commercial purposes.
    • [Share Alike]: If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.

  • For any reuse or distribution, you must make clear to others the license terms of this work. The best way to do this is with a link to http://creativecommons.org/licenses/by-nc-sa/3.0/.
  • Any of the above conditions can be waived if you get explicit permission from the copyright holder.
  • Nothing in this license impairs or restricts the author's moral rights.
--------------- --------------- --------------- ---------------
Your fair dealing and other rights are in no way affected by the above.
This is a human-readable summary of the Legal Code (the full license).
http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode
--------------- --------------- --------------- ---------------

Help with:
  • Translations to benefit more users.
  • Suggestions & feature requests to develop this product.
  • Contributing any updates, upgrades and/or any new features.
  • Spreading this product. Yes, you're free to re-distribute this product as it is (See 'Free License' details).


Known Issues:
  • Nothing till now!


Future TO-DO-LIST:
  • Post your suggestions!


History:
  • v3.8.100 31/12/2008 08:00 AM UTC: First 3.8.x release (public)
  • v4.0.100 19/03/2010 08:00 AM UTC: First 4.0.x release (public)


Screen Shots:
  • Available down there.


Technical Notes:
  • New Plugins: 0
  • New Phrases: 1
  • New Templates: 0
  • Manual Template changes: 0
  • Auto Template changes: 0
  • New Files: 2
  • Manual File Changes: 1
  • New vBulletin Settings: 0
  • New Usergroup Permissions: 1
  • New Moderator Permissions: 0
  • New Administrator Permissions: 0
  • New Forum Options: 0
  • New DB Tables: 0
  • DB Alterations: 1
  • New Cronjobs: 0
    --------------------------------
  • Installation Level: V.Easy
  • Installation Time: ~15 seconds


Recent Products:
  • http://go.phpkd.net/en/product/vblvb/ New !
  • http://go.phpkd.net/en/product/vbaqr/ New !
  • http://go.phpkd.net/en/product/vbaqe/

Download

File Type: %1$s PHPKD_VBUAM_4.0.100.zip (33.8 KB, 61 downloads)

Screenshots

Click image for larger version
Name:	phpkd_vbuam_admincp.png
Views:	239
Size:	14.2 KB
ID:	114457  

Similar Mods

Moderators Functions PHPKD - Usergroup Attachment Moderation vBulletin 3.8 Add-ons
Moderators Functions PHPKD - Usergroup Attachment Moderation vBulletin 3.7 Add-ons
Moderators Functions PHPKD - Usergroup Attachment Moderation vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024