Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

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
  #162  
Old 11-05-2011, 04:43 AM
addamroy addamroy is offline
 
Join Date: Sep 2010
Posts: 352
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What happens to my existing usergroup permissions and promotions if I install this mod??

I see many of the options are the same as the default permissions in vbulletin, so will this product automatically take my current settings by default?

I've got an active forum with private areas and several different promotions that must continue working as they are.

Can you tell me what happens to my existing usergroup permissions and promotions when I install this?
Reply With Quote
  #163  
Old 11-05-2011, 05:15 PM
Valter Valter is offline
 
Join Date: Aug 2005
Location: Sarajevo
Posts: 2,432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your usergroup/permission settings will be untouched.

This is only addition to standard forum features, all based on user post counts.
Reply With Quote
  #164  
Old 11-05-2011, 05:31 PM
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Location: PA
Posts: 1,014
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tpearl5 View Post
Has anyone modified this to only restrict downloading attachments in specific forums?
Valter, if I make a $50 donation will you consider adding this feature and updating for that latest version of vBulletin?
Reply With Quote
  #165  
Old 11-11-2011, 03:13 PM
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Location: PA
Posts: 1,014
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

FYI, this mod was causing a depricated message in PHP for me (since I'm running php 5.3):

Function ereg() is deprecated in /home/site/public_html/includes/class_postbit.php(340) : eval()'d code on line 65

If you really want to get rid of this the ereg's in "VSa - APBOUPC - P2 (PB)" plugin needs to be replaced with preg_match. Since it's not an error I haven't changed things over yet.
Reply With Quote
  #166  
Old 11-11-2011, 03:37 PM
Virus81 Virus81 is offline
 
Join Date: Jan 2011
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice mod. thank you
Reply With Quote
  #167  
Old 11-11-2011, 05:17 PM
HHelp1's Avatar
HHelp1 HHelp1 is offline
 
Join Date: May 2011
Location: Florida
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

SWEET MAN!this is what im looking for !
Reply With Quote
  #168  
Old 11-16-2011, 09:21 AM
Scyther's Avatar
Scyther Scyther is offline
 
Join Date: Jul 2009
Location: Planet Earth
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One of my most loved Mods..

Downloaded, Marked installed and Nomination for MOTM!!

Good luck!
Reply With Quote
  #169  
Old 11-22-2011, 12:25 AM
rafiul's Avatar
rafiul rafiul is offline
 
Join Date: Jun 2009
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tpearl5 View Post
FYI, this mod was causing a depricated message in PHP for me (since I'm running php 5.3):

Function ereg() is deprecated in /home/site/public_html/includes/class_postbit.php(340) : eval()'d code on line 65

If you really want to get rid of this the ereg's in "VSa - APBOUPC - P2 (PB)" plugin needs to be replaced with preg_match. Since it's not an error I haven't changed things over yet.
How to fix this problem ? can you please describe how to get rid of this error.?
Reply With Quote
  #170  
Old 11-23-2011, 03:44 PM
rafiul's Avatar
rafiul rafiul is offline
 
Join Date: Jun 2009
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have solved the erorr. You have to replace "ereg" with "preg_match" in "VSa - APBOUPC - P2 (PB)" plugin . Here is an example-

Code:
if ( ereg( "bmp|gif|jpg|png", $file )

// can become

if ( preg_match( "/(bmp|gif|jpg|png)/i", $file )
Reply With Quote
  #171  
Old 12-02-2011, 03:00 AM
Carpesimia Carpesimia is offline
 
Join Date: Jun 2011
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I have a new issue with this.

I seems that with this plugin enabled, I am unable to SOFT DELETE posts. Not threads, just posts. Perm Deletes work fine.

A little more info. When I do a soft delete, i get a FATAL ERROR message. I traced it to into the editpost.php, and near the bottom it passes the $foruminfo array into the DM class in order to decrement the reply_count by one. When it makes the call to the method "set_existing()", the fatal error occurs, that the value passed is not an array.

Disabling the plugin makes the error go away.

For grins, I added a line of code:

"$foruminfo = fetch_foruminfo($threadinfo['forumid'], false);"

right before the line that is crashing. This fixes the issue also.

But, something in the plugin is killing the $foruminfo array which is filled at the beginning of editpost.php and changed in one of the hooks this plugin is using.

I may research more, I may not. Ive been staring at this code for 8 hours now, which is how i found this much so far.

Anyone else have a similar issue?
Reply With Quote
Reply

Thread Tools

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 06:33 AM.


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.10635 seconds
  • Memory Usage 2,358KB
  • 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_code
  • (2)bbcode_quote
  • (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
  • (1)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