Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
VSa - Advanced Permissions Based on Post Count Details »»
VSa - Advanced Permissions Based on Post Count
Version: 5.2.1, by Valter Valter is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 01-22-2010 Last Update: 06-01-2012 Installs: 896
DB Changes Uses Plugins Auto-Templates
 
No support by the author.

Info:

This product allows you to set permissions based on user’s post count for:
-viewing forum (threads listing),
-viewing threads content,
-creating new threads,
-replying to threads,
-viewing attachments,
-Viewing/Posting links/images and e-mail addresses,
-adding links to signatures
-voting on polls,
-sending private messages,
-sending e-mails,
-posting Visitor messages
-viewing Albums
-creating new Albums
-posting Picture comments
-viewing Social Groups
-creating new Social Groups
-posting Group messages

This will disallow members with no permissions to view forums/threads/posts/links through normal view, printthread, search, archive, thread preview. Note that you can set Forum/Thread Permissions for each forum/sub-forum separately. Screenshot shows additional options in Forum Manager and error messages shown to user when trying to view restricted area.

How it works and why it's better than vB Promotions system?!
Forum is shown on forumhome but with "Locked" icon and if you have no needed post count you'll get "no permission" error message. When you set this via vB Promotions system forum is hidden on forumhome and you must create additional usergroup to make all this working. When user collect needed amount of posts he will be able to access protected forum immediately. When you set this via vB Promotions system then user must wait until Promotions task is executed ... then he will be able to access protected forum. How much time user must wait it depends on settings in AdminCP/Scheduled Tasks... and if you set this to run every minute it pushes your server. If you set it to 2 or more minutes then user must wait more and more... and nobody like it.

Installation:
Import XML file (as product) through AdminCP > Plugin System > Manage Products > [Add/Import Product]

Versions:
v1.0 - Sep 16.2005.
-First release
v4.4 - Jun 19. 2008.
-Latest 3.x version
v5.0 - Jan 23. 2010.
-Updated for vBulletin 4.x
-Option to hide or not "Last post info"
-Minor bugs fixed...
-Mod prefix (Cyb) changed to 'VSa'
v5.1 - May 02. 2010.
-Fixed: LPI hidden for excluded groups
-Fixed: Upgrade errors (vB3.x to vB4.x)
-Fixed: Some PHP errors, and minor bugs
v5.2 - May 26. 2012.
-New: Permissions applied to What's New/Activity streams
-New: Permissions applied to subscription logs in member profiles
-New: Warnings in messages replaced by "Hidden Content" where you get more info on click
-New: Disallow links/emails in signatures
-New: Disallow voting on polls
-Fixed: Threads visible in Search results
-Fixed: Links visible in post search results
-Fixed: Links visible in subscription emails
-Fixed: SendPM possible via BCC
-Fixed: PHP 5.3 errors
-Fixed: Style issues on "set all forums" page
-Fixed: Signature perminfo errors
-Fixed: Forum locks
-Fixed: Minor bugs
v5.2.1 - Jun 02. 2012.
-Minor bug fixed (submit form error phrase)

Download Now

File Type: zip VSa - Advanced Permissions Based on Post Count v5.2.1.zip (10.9 KB, 2491 views)

Screenshots

File Type: jpg acp.jpg (99.8 KB, 0 views)
File Type: jpg setall.jpg (171.6 KB, 0 views)
File Type: jpg error_forum.jpg (39.9 KB, 0 views)
File Type: jpg error_lpi.jpg (52.5 KB, 0 views)
File Type: jpg error_pm.jpg (102.5 KB, 0 views)
File Type: jpg error_link_attach.jpg (67.3 KB, 0 views)
File Type: jpg error_linkpost.jpg (85.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #172  
Old 12-02-2011, 03:52 PM
Scyther's Avatar
Scyther Scyther is offline
 
Join Date: Jul 2009
Location: Planet Earth
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this mod prohibit a new user with, lets say '0' posts, from posting links in his/her signature?
Reply With Quote
  #173  
Old 12-18-2011, 11:06 AM
thompson thompson is offline
 
Join Date: Jul 2007
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does it work in 4.1.8 ?
Reply With Quote
  #174  
Old 12-23-2011, 06:20 PM
thompson thompson is offline
 
Join Date: Jul 2007
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a chance to disallow viewing the img tag for guests ??
Reply With Quote
  #175  
Old 02-04-2012, 08:53 PM
too_cool_3's Avatar
too_cool_3 too_cool_3 is offline
 
Join Date: Sep 2007
Location: ON, Canada
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone installed this on 4.1.10 yet?
Reply With Quote
  #176  
Old 02-05-2012, 05:16 AM
xgreatescapex xgreatescapex is offline
 
Join Date: Feb 2012
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Noob question, but how do we use this plugin exactly?
Reply With Quote
Благодарность от:
  #177  
Old 02-05-2012, 04:33 PM
OmerE OmerE is offline
 
Join Date: Jan 2004
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Few issues with this:
  1. It is trivial to get around the PM limits check, simply use BCC when writing the message - the code only checks recipients, not BCC recipients
  2. The add-on only checks the main user group, and not membergroups, when testing for which groups it is OK to send PM to despite limit

Suggested fix for both issues, replace body of private_insertpm_process plugin with below (tested in 3.8 but should be similar in 3.6/3.7/4.x):
PHP Code:
if ($vbulletin->options['apboupc_global_enable'] AND $vbulletin->options['apboupc_pms'])
{
    if (!
is_member_of($vbulletin->userinfosplit(','$vbulletin->options['apboupc_pm_excludedgroups'])) AND ($vbulletin->options['apboupc_pm_amount'] !='0') AND ($vbulletin->userinfo[posts] < $vbulletin->options['apboupc_pm_amount']))
    {
        
$recs = &$pmdm->info['recipients'];
        foreach(
$recs as $userid => $user) {
            if(!
is_member_of($usersplit(','$vbulletin->options['apboupc_pm_allowed']))) {
                
$db->hide_errors();
                
$apboupc_get_allowedrecs $vbulletin->db->query_read("SELECT userid, username, usergroupid FROM `" TABLE_PREFIX "user` AS user WHERE `usergroupid` IN (".$vbulletin->options['apboupc_pm_allowed'].") ");
                while (
$apboupc_allowedrecs $vbulletin->db->fetch_array($apboupc_get_allowedrecs))
                {
                    
$apboupc_allowedrec[] = $apboupc_allowedrecs['username'];
                    
$allowed_recipients .= ', <a href="private.php?do=newpm&u='.$apboupc_allowedrecs['userid'].'">'.fetch_musername($apboupc_allowedrecs).'</a>';
                }
                
$db->show_errors();
                
$allowed_recipients substr($allowed_recipients1);
            
                
standard_error(fetch_error('error_postcount_too_low_pm'$vbulletin->options['apboupc_pm_amount'], $vbulletin->userinfo[posts], $allowed_recipients));
            }
        }
    }

Note this will still only list 'possible target users' with usergroup equal to exclusion group; this is intentional in our case, but YMMV.
Reply With Quote
  #178  
Old 02-08-2012, 10:31 AM
massrealtorpro massrealtorpro is offline
 
Join Date: Feb 2012
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can someone say if this is working without glitch's for 4.1.10 ? i need this mod more then anything else, but want to make sure its up; and running for 4.1.10 first?

also, i have just installed VB for the first time and i am 100% new to this stuff (took me a full day just to install VB), can someone please give me exacting step by step instructions on how to add this into my forum? TY
Reply With Quote
  #179  
Old 02-08-2012, 07:49 PM
Valter Valter is offline
 
Join Date: Aug 2005
Location: Sarajevo
Posts: 2,432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PM sent.
Reply With Quote
  #180  
Old 02-17-2012, 01:02 PM
SuperDude SuperDude is offline
 
Join Date: Jul 2010
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
i want that older users (which mean they have at least 300 messages) may have to wait only X seconds between posting and not Y seconds as all.
Can you add something like this?
Reply With Quote
  #181  
Old 02-18-2012, 09:44 AM
Tahooma Tahooma is offline
 
Join Date: Aug 2010
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I`d love to have the option that you forbid users to send PM`s to a specific usergroup.

So a user has the permission to send Private Messages, but not to a specific usergroup.

Would also be great to do all settings based on usergroup.

any chance ?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:52 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08978 seconds
  • Memory Usage 2,372KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (13)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (8)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete