vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Cyb - Advanced Permissions Based on Post Count (https://vborg.vbsupport.ru/showthread.php?t=96523)

Valter 09-17-2005 10:00 PM

Cyb - Advanced Permissions Based on Post Count
 
=======
Release of this hack for vB v3.6:
https://vborg.vbsupport.ru/showthread.php?t=123002
=======


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,
-sending private messages,
-sending e-mails.

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.

*-When you set in some forum "Minimum Post Count To View Thread Listing In This Forum" option to different value than "0" guests will not be able to see thread listing in that forum through Archive. For logged-in users this function works normally regarding user's post count.
-When you set in some forum "Minimum Post Count To View Threads Content In This Forum" option to different value than "0" guests will not be able to read threads in that forum through Archive. For logged-in users this function works normally regarding user's post count.

How it works and why it's better than vB Promotions system...
First of all it's very easy to use.

Forum is shown on forumhome but if you have no needed post count you'll see lock icon and predefined error message when try to access. 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.

Thanks to:
grog6 - plugin was inspired by his original hack for vB 3.0.x.
macooper - for help with creating first version of plugin for vB 3.5.0.

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

To set options:
Go to: AdminCP > vBulletin Options > Cyb Advanced Permissions Based on User's Post Count - set options here

Versions:
v1.0 - Sep 16.2005.
-First release
v1.1 - Sep 19.2005.
-Updated to disallow users to view forum or threads through printthread or archive
-Changed modification name to "Access Permissions Based on User's Post Count"
v1.2 ? Oct 10.2005.
-Added option to set permissions based on user's post count for creating threads
-Added option to set permissions based on user's post count for posting replies
-Added plugin for archive. No more need to edit any files (this was optional step in v1.1).
v2.0 - Nov 20.2005.
-Now user can not search posts in restricted areas.
-Now "Locked" icon is shown on forumhome for restricted forums (if "Show Lock Icons to Users" is choosen in vB Options).
-Fixed ALL known bugs.
v2.1 - Nov 21.2005.
-Bug fixed - search problems
v2.5 - Jan 29.2006.
-Added Attachment Permissions
-Added Private Messages Permissions
-Added ability to turn off whole system or some parts
v2.5.1 - Jan 30.2006.
-Fixed version info
-Fixed forum manager error
v2.5.2 - Feb 26.2006.
-Archive bug fixed.
*When you set in some forum "Minimum Post Count To View Thread Listing In This Forum" option to different value than "0" guests will not be able to see thread listing in that forum through Archive. For logged-in users this function works normally regarding user's post count.
*When you set in some forum "Minimum Post Count To View Threads Content In This Forum" option to different value than "0" guests will not be able to read threads in that forum through Archive. For logged-in users this function works normally regarding user's post count.
v2.6 - May 02.2006.
-In previous version it was possible to view part of thread when you move mouse over thread title (if configured that users can see thread listing but not thread content)... this is fixed now, please upgrade
-Added e-mail permissions
-Hack renamed from "Access Permissions Based on User's Post Count" to "Cyb Advanced Permissions Based on User's Post Count"
v2.7 - May 04.2006.
-Attachments permissions bug fixed
v2.8 - May 26.2006.
-Added - Now users with no permissions to send PMs can post PMs to usergroups you choose
-Added - Link Posting Permissions. Member must have x posts before can post links.
-Added - Now you can easily exclude usergroups from any restrictions (see screenshots)
v2.9 - May 27.2006.
-Added ability to hide last post info for choosen forums
-"To view attachments..." phrase is now more flexible. Now required post count number must NOT be at the end. Add {1} where you wish to show required post count number and add {2} where you wish to show user's post count in phrase.
v3.0 - May 31.2006.
-Bug fixed. Usergroups who are excluded from "Forum/Thread Permissions" will be able to see last post info in forums where you have choose to hide it.
v3.1 - June 03.2006.
-Added "Excluded groups" to PMs Permissions
-Users with no permissions to send PMs (except to allowed usergroups you choose) will see note on New PM page (see screenshots)
v3.2 - Aug 04. 2006.
- Release of this hack for vB v3.6
v3.3 - Aug 05. 2006.
- Attachment Permissions error message fixed
v3.4 - Aug 24. 2006.
- Fixed bug in "Links Posting Permissions" (user can post link when replying to thread)
- Added "Product Version Checking" - https://vborg.vbsupport.ru/showthread.php?t=124679
v3.5 - Aug 25. 2006.
- Another "Link Permissions" bug fixed
v3.6 - Sep 02. 2006.
- If user has no permissions to view forum/thread he will see standard no permission message instead of "post count needed" one
- Fixed error messages for archive
- Added: "Links Viewing Permissions" (regular post view, printthread view, thread preview, archive view)
- Added: Forums can be excluded from "Links Posting Permissions" restrictions
- Added: Forums can be excluded from "Attachment Permissions" restrictions
v3.7 - Sep 04. 2006.
- Added ability to easily set forum/thread-permissions to the same level for all existing forums (only SuperAdmin can do this)
v3.8 - Sep 20. 2006.
- Fixed bug (posting links permissions doesn't work)
v3.9 - Feb 23. 2007.
- Fixed bug (guests can't see attachments even there are no post count requirements)
- Fixed bug (links not hidden in showpost)
- In "Links Posting Permissions" added option to additionally disallow members to post e-mail addresses
- Several code improvements for better compatibility
v4.0 - Apr 04. 2007.
-Post count requirements to view attachments, view links/images, and post links/images, moved to Forum Manager (different settings for individual forums possible)
-Quote is now enabled when user has no permissions to view links/images but they are not shown inside quote tags.
-You must not rebuild forum info manually after setting up parameters for all forums ("Global-set" page). This is now done automatically.
-"Links/Images Viewing Permissions" much better hides links/images, now including ones in search results post titles and notification e-mails.
-Added option to hide links/images in signatures
-Fixed bug (vBulletin RSS Feed Robot stops working when post count is required to create threads)
-"Global-set" page improved with new options, list of forums with current settings, quick forum edit links,...
-General code cleanup, optimizations, improvements,...
v4.1 - Aug 18. 2007.
-Fixed bug with errors in Archive
-Group membership checking works now for supplementary usergroups too
-Some minor security and compatibility improvements...
v4.2 - Sep 01. 2007.
-Definitely fixed bug with blocking RSS Poster
-Improved "Attachments Viewing Permissions" (now user can not download attachment when attachment id is known)
-New in "Attachments Viewing Permissions": Option to allow users to view image thumbnails, but not full size images
-New in "Private Messages Sending Permissions": With no-permissions error affected user gets list of allowed recipients too
-Minor bug fixes...

Valter 09-18-2005 09:50 PM

Nevermind...

Boofo 09-18-2005 10:56 PM

Let me play the devil's advocate here for a second. If you set that number any higher than 0, then how would new users ever be able to see anything until they can post? And if they can't see it, they can't post. A catch-22? ;)

Or am I missing something somewhere, which has been known to happen quite a bit lately, it seems. ;)

Andreas 09-18-2005 11:01 PM

I don't want to sound arrogant or anything, but IMHO this Hack is useless: Promotions are a built-in Feature of vBulletin and are the way to go.

Jenta 09-18-2005 11:02 PM

its a per forum setting boofo
so u have some forums where they can post and others....well u get the picture ;)

Jenta 09-18-2005 11:04 PM

Quote:

Originally Posted by KirbyDE
I don't want to sound arrogant or anything, but IMHO this Hack is useless: Promotions are a built-in Feature of vBulletin and are the way to go.

but that requires additional usergroups
maybe its good if you only want one registered group to hassle with and then keep them out of certain forums till they post enough

i personally hate managing any more groups that really need too
this will save me a group if i find a need for this hack

Boofo 09-18-2005 11:05 PM

Quote:

Originally Posted by Jenta
its a per forum setting boofo
so u have some forums where they can post and others....well u get the picture ;)

I understand that but unless it's sets to 0, they never will be able to see the forum it is turned on for. ;)

And Kirby is right, in his non-arrogant way (;)), promotions are excellent for this kind of stuff. They don't really get used enough.

But the idea is good. ;)

Jenta 09-18-2005 11:07 PM

they can surely see them on forumhome ;)

nexialys 09-18-2005 11:09 PM

Quote:

Originally Posted by Jenta
well u get the picture ;)

remember, Boofoon is the Blind guy here... he never get the picture, you need sounds and structure for him to understand images...

(me is hilarious tonight!)

nexialys 09-18-2005 11:11 PM

people usually don't use promotions because nobody use them... and more promotions means more usergroups to manage, and that, is not good on mega forums...

i prefer myself some hardcoded features like this one, so i'm not always making new promotions for forums i visit less...

Andreas 09-18-2005 11:12 PM

They can also view single posts, print threads, use the archive to view everything, subscribe to threads (and thus get replies emailed), reply to threads, use search (and see some part of the threads there) ... very insecure

Valter 09-19-2005 01:00 AM

Quote:

Originally Posted by KirbyDE
They can also view single posts, print threads, use the archive to view everything, subscribe to threads (and thus get replies emailed), reply to threads, use search (and see some part of the threads there) ... very insecure

Sure?

Did you tried this plugin?

Valter 09-19-2005 01:08 AM

Quote:

Originally Posted by nexialys
people usually don't use promotions because nobody use them... and more promotions means more usergroups to manage, and that, is not good on mega forums...

Agree!

You set for example that user must have 10 posts to access forum "x".
User is posting his 10th post.
Now he must wait until promotions task is executed. How much he will wait it depends on settings in AdminCP Scheduled Tasks. If you set smaller value it will push your server.

Here you can access forum automatically after posting your 10th post. And whole forum is not hidden on forumhome. You just get "no permission" error message when trying to access forum which requires post count xx to access.

Boofo 09-19-2005 02:01 AM

So you're saying 10 posts board-wide (in your example)? I thought each forum had it's own setting. Then this would make more sense if it was board wide. Sorry I didn't catch on sooner. ;)

Valter 09-19-2005 02:22 AM

You can set these permissions for each forum/subforum separately ;)

Boofo 09-19-2005 02:50 AM

Quote:

Originally Posted by Cybernetec
You can set this permissions for each forum/subforum separately ;)

But do posts in other forums count towards the setting in a forum? If not, that brings me back to the "how can you get access to a forum if you can't post in it?" I guess I still don't get it. Don't mind me. Time for my nap. ;)

Paul M 09-19-2005 03:00 AM

Quote:

Originally Posted by KirbyDE
I don't want to sound arrogant or anything, but IMHO this Hack is useless:

Such encouraging words from the staff ......

Boofo 09-19-2005 03:02 AM

Quote:

Originally Posted by Paul M
Such encouraging words from the staff ......

Personal obsevations are not representative of the staff, Paul. We've all done this, even you, sir, and it was not meant in any way to slam or belittle anyone. I know Kirby better than that, and so do you. ;)

Andreas 09-19-2005 03:44 AM

Quote:

Originally Posted by Cybernetec
Sure?

Yes, 100%.

Quote:

Did you tried this plugin?
Not when I made my original Post, but did try it now.

Quote:

Please try plugin before writting such things...
Tried it now.
And I am sorry having to say it, but: All the Problems I mentioned are there.
You can view all content through Archive, Printthread, make Replies, etc.

macooper 09-19-2005 07:01 AM

Quote:

Originally Posted by KirbyDE
I don't want to sound arrogant or anything, but IMHO this Hack is useless: Promotions are a built-in Feature of vBulletin and are the way to go.

This hack is useless to you because you don't have a use for it. I use this hack for my board because it simplifies things. To do the same with promotions, I need multiple seperate user groups per forum. I have 4 forums that require access control in this way, so that's a large number of user groups to manage, each with it's own configuration.

Your right in the sense that you can do the same thing without this hack. But there are a large number of hacks that just make things more convenient. This is one such hack.

Valter 09-19-2005 12:56 PM

Quote:

Originally Posted by Boofo
But do posts in other forums count towards the setting in a forum?

Yes.

You set for example:
-0 posts needed to access forum "x".
-20 posts needed to access forum "y"


User can post in forum "x" regularly and when his post count is "20" then he can access forum "y". Until that he will get "no permission" error message when trying to access forum "y".

Andreas 09-19-2005 12:59 PM

@Cybernetec
Did you read my last post?

Valter 09-19-2005 02:06 PM

Quote:

Originally Posted by KirbyDE
Tried it now.
And I am sorry having to say it, but: All the Problems I mentioned are there.
You can view all content through Archive, Printthread, make Replies, etc.

Version 1.1 released.
All these problems fixed ;)

john1744 09-19-2005 03:40 PM

Thanks a ton, I just installed it, I like this much better than having tons of usergroups and having to worry about permissions.

Andreas 09-19-2005 04:19 PM

Quote:

Originally Posted by Cybernetec
Version 1.1 released.
All these problems fixed ;)

I don't wanna be an arse, but:
It is still possible to
  • Read the content by subscribing them
  • Reply to Threads (and thus also view the Content by using Quote)
  • Use Search and View parts of the Thread content there
  • View conteht through Content Syndication

Btw: There is a global Hook for the archive ;)

Loki12 09-19-2005 05:09 PM

I think this hack is very useful and convenient, thanks! I will install...

Valter 09-19-2005 10:00 PM

Quote:

Originally Posted by KirbyDE
I don't wanna be an arse, but:
It is still possible to
  • Read the content by subscribing them
  • Reply to Threads (and thus also view the Content by using Quote)
  • Use Search and View parts of the Thread content there
  • View conteht through Content Syndication

Btw: There is a global Hook for the archive ;)

How to subscribe to thread which you can't see?
How to reply to thread which you can't see? And if you reply then you can not see your own post.

john1744 09-21-2005 06:13 AM

Anyway this could be altered to include days registered as well?

carrie31 09-30-2005 06:16 PM

this hack is really useful for me ! many thanks for Cybernetec's effort ! will try it later !

... it's another choice, someone like the promotion system, someone like this i think :P

MissKalunji 10-01-2005 12:43 AM

installed very usefull! thanks man!!

Valter 10-01-2005 08:15 PM

I forget to mention:
Any Coder interested in improving this hack - feel free to do it and let me know about changes.

PennylessZ28 10-01-2005 08:40 PM

I have a classifieds forum, and I'd like to keep users with less than 10 posts from posting in it.

Will this work for that?

Valter 10-01-2005 11:40 PM

Quote:

Originally Posted by HR3rdGen
I have a classifieds forum, and I'd like to keep users with less than 10 posts from posting in it.

Will this work for that?

Yes, it will work.

PennylessZ28 10-01-2005 11:43 PM

Installed

csidlernet 10-05-2005 03:02 AM

/me installs

Kihon Kata 10-10-2005 03:01 AM

Quote:

Originally Posted by Cybernetec
I forget to mention:
Any Coder interested in improving this hack - feel free to do it and let me know about changes.

How can I have a 30 post min before you can POST or REPLY to threads in a certain forum?(Not deny them access to that particular forum all together or deny them opening new threads)

How can I do this?

PennylessZ28 10-10-2005 03:26 AM

This was an awesome hack, thank you

Valter 10-10-2005 02:43 PM

Quote:

Originally Posted by TonysDesigns
How can I have a 30 post min before you can POST or REPLY to threads in a certain forum?(Not deny them access to that particular forum all together or deny them opening new threads)

How can I do this?

Simply upgrade to version 1.2 :D

Version 1.2 just released:

-Added option to set permissions based on user's post count for creating threads
-Added option to set permissions based on user's post count for creating replies
-Added plugin for archive. No more need to edit any files (this was optional step in v1.1).

Please uninstall first older version before upgrade to version 1.2.

adielsh 10-16-2005 09:24 AM

When i go to add new forum i recived this:
Code:

Parse error: parse error, unexpected $ in /home/borecas/domains/mlf.co.il/public_html/forum/admincp/forum.php(113) : eval()'d code on line 6

Nutz 10-16-2005 12:03 PM

This is a very nice hack :)

Thanks,
Mat


All times are GMT. The time now is 06:27 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01541 seconds
  • Memory Usage 1,851KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete