vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Restrict Posting By Forum (https://vborg.vbsupport.ru/showthread.php?t=320912)

akz645 12-16-2015 08:20 PM

Quote:

Originally Posted by akz645 (Post 2560502)
Question:
- If a User's Primary usergroup is [X] and Secondary is [Y]. If usergroup [X] is restricted but usergroup [Y] isn't, the user will not be restricted. Right?

Quote:

Originally Posted by MarkFL (Post 2560519)
If you exclude a certain usergroup, then anyone who is a member of that usergroup, whether primary or secondary, will be excluded.

Answer: Yes.
I just tested myself, to make sure there were no bugs.
We just used different terminology, as I don't think Mark felt comfortable answering my Yes/No question, with the terminology I used.
--------------------------------------
Quote:

Originally Posted by akz645 (Post 2560613)
Question:
- Posting in threads begun by other users only.
Is that settings for both existing & new threads?

Quote:

Originally Posted by MarkFL (Post 2560618)
Here's how the "Nature Of Restriction" setting works:

Thanks for that. But you don't actually answer my question.

So, I'll try and do a quick test now to see.
Then I can explain the question to you further with screenshots and whatnot (real/a more specific example).

Edit: My post below should also be helpful to those who can't specifically discern what the functionality of this mod does (assuming your explanation isn't enough).

akz645 12-16-2015 09:38 PM

Example:
AdminCP settings: http://i.imgur.com/51fEQ4Q.png
Users profile settings: http://i.imgur.com/SYRwzpt.png

This is what happens if you try and go beyond the restriction:
http://tinyurl.com/z57568k OR http://tinyurl.com/oj7pegs
Note: Once you're going to hit the limit, this is what appears: http://i.imgur.com/OucPmeE.png
Basically, you must refresh the page if you want to continue to the post.

Quote:

Originally Posted by MarkFL (Post 2560618)
  • New Threads And Posting In All Existing Threads - A user's posts in all threads in the subforum are counted. If this count is equal to or greater than the maximum allowed, then they will be prevented from posting new threads and replying to all existing threads.

  • My test results:
  • [2] posts at maximum. You can not do the following after the limit (for [2 mins]):
    A) Replying in existing threads created by yourself.
    B) Replying in existing threads created by others.
    C) Creating new threads. Note: Creating a thread, increases your post count by 1.
    D) Replying in new threads created by yourself.
    E) Replying in new threads created by others.
Quote:

Originally Posted by MarkFL (Post 2560618)
  • Posting In All Existing Threads Only - A user's posts in all threads in the subforum are counted. If this count is equal to or greater than the maximum allowed, then they will be prevented from replying to all existing threads, but may start new threads.

  • My test results:
  • [2] posts at maximum. You can not do the following after the limit (for [2 mins]):
    A) Replying in existing threads created by yourself.
    B) Replying in existing threads created by others.
    D) Replying in new threads created by yourself.
    E) Replying in new threads created by others.

    What you can do the following after the limit (for [2 mins]):
    C) Creating new threads. Note: Creating a thread, increases your post count by 1.
Quote:

Originally Posted by MarkFL (Post 2560618)
  • Posting In Threads Begun By Other Users Only - A user's posts in all threads they didn't start in the subforum are counted. If this count is equal to or greater than the maximum allowed, then they will be prevented from replying to all threads they didn't start, but may start new threads..

  • My test results:
  • [2] posts at maximum. You can not do the following after the limit (for [2 mins]):
    A) Replying in existing threads created by others.
    E) Replying in new threads created by others.

    What you can do the following after the limit (for [2 mins]):
    B) Replying in existing threads created by yourself.
    C) Creating new threads. Note: Creating a thread, increases your post count by 1.
    D) Replying in new threads created by yourself.
Quote:

Originally Posted by MarkFL (Post 2560618)
  • New Threads Only - A user's threads in the subforum are counted. If this count is equal to or greater than the maximum allowed, then they will be prevented from posting new threads but may reply to all existing threads.

  • My test results:
  • [2] posts at maximum. You can not do the following after the limit (for [2 mins]):
    C) Creating new threads. Note: Creating a thread, increases your post count by 1.

    What you can do the following after the limit (for [2 mins]):
    A) Replying in existing threads created by yourself.
    B) Replying in existing threads created by others.
    C) Replying in new threads created by yourself.
    E) Replying in new threads created by others.

@MarkFL
1)
What about not being able to do:
A) Replying in existing threads created by yourself.
B) Replying in existing threads created by others.

But still can do:
C) Creating new threads. Note: Creating a thread, increases your post count by 1.
D) Replying in new threads created by yourself.
E) Replying in new threads created by others.

2)
What about not being able to do:
C) Creating new threads. Note: Creating a thread, increases your post count by 1.
D) Replying in new threads created by yourself.
E) Replying in new threads created by others.

But still can do:
A) Replying in existing threads created by yourself.
B) Replying in existing threads created by others.

^ That's basically the two I was referring to in my question above.
Although now that I've formatted it this way, I realise there are far more variations that can be done than I initially expected.

MarkFL 12-16-2015 10:27 PM

Did you find the product did not behave as I stated? If so, where?

I tested it, and everything seemed to work, but at present I would like to know if there is anything you find not working as I stated. Once I know no one is finding any unexpected behavior (you know, bugs), then I will consider adding other features. But for right now, I have several other things I want to get done first.

akz645 12-16-2015 10:43 PM

Quote:

Originally Posted by MarkFL (Post 2560626)
Did you find the product did not behave as I stated? If so, where?

https://vborg.vbsupport.ru/external/2015/12/17.png
Quote:

Originally Posted by akz645 (Post 2560613)
Question:
- Posting in threads begun by other users only.
Is that settings for both existing & new threads?

Direct answer to my question:
- Yes, but for replies only.
The term "posting" is too general and therefore can lead to confusion.

These are the 5 conditions:
A) Replying in existing threads created by yourself.
B) Replying in existing threads created by others.
C) Creating new threads. Note: Creating a thread, increases your post count by 1.
D) Replying in new threads created by yourself.
E) Replying in new threads created by others.

Your explanation doesn't specify between all the terms (which my post above should help users with).
Specifically, you don't distinguish between posts as replies or posts as threads.
- Replying in [own/others] [existing/new] thread OR when creating [own thread] (still increases post count).

Quote:

Originally Posted by akz645 (Post 2560613)
If so, you could add in 2 additional features.
Example:
- Posting in existing & new threads begun by other users only - which you already have called: "Posting in threads begun by other users only".
[1]- Posting in existing threads begun by other users only.
[2]- Posting in new threads begun by other users only.

Quote:

Originally Posted by akz645 (Post 2560624)
@MarkFL
1)
What about not being able to do:
A) Replying in existing threads created by yourself.
B) Replying in existing threads created by others.

But still can do:
C) Creating new threads. Note: Creating a thread, increases your post count by 1.
D) Replying in new threads created by yourself.
E) Replying in new threads created by others.

2)
What about not being able to do:
C) Creating new threads. Note: Creating a thread, increases your post count by 1.
D) Replying in new threads created by yourself.
E) Replying in new threads created by others.

But still can do:
A) Replying in existing threads created by yourself.
B) Replying in existing threads created by others.

^ That's basically the two I was referring to in my question above.
Although now that I've formatted it this way, I realise there are far more variations that can be done than I initially expected.

Summary:

New Suggestion:

Instead of radio buttons, have each condition as a standalone setting, where users can decide what specifically they want to limit (if any). Example:
- Replying in a existing thread created by yourself? [Enter Post Count Number],[Enter Time Duration Number]
Note: Leave Post Count Number blank to leave it as unlimited/the vBulletin default. Set it to 0 if you want to stop them from posting altogether.
Note 2: Leave Time Duration Number blank to as unlimited/the vBulletin default. Setting to 0 means you don't want any positing restrictions to apply.

- Replying in existing threads created by others? [Enter Post Count Number],[Enter Time Duration Number]
- Creating new threads. [Enter Post Count Number],[Enter Time Duration Number]
Note 3: Creating a thread, increases your post count by 1.
- Replying in new threads created by yourself. [Enter Post Count Number],[Enter Time Duration Number]
- Replying in new threads created by others. [Enter Post Count Number],[Enter Time Duration Number]

Other (3) Suggestions (ignore previous post suggestions):

Quote:

Originally Posted by akz645 (Post 2560502)
- Exclude Users &/or Usergroups. (Although it would be better if we could also exclude based on each individual setting, and not just globally.)
Note: If added into the other mod/this mod, it should be on a per forum & usergroup basis.

Feature I would like which are in neither Mods at the moment:
B) If possible, allow us to keep on adding as many conditions as we want.
Example: Usergroup [Z] is limited to [1] post every [10] seconds, [2] posts every [25] seconds, [3] posts every [60] seconds ... in [X] forum.
Note: If added into the other mod/this mod, it should be on a per forum & usergroup basis.

Additional feature:
- The error message the user receives, the admin via adminCP should be able to write out (hyperlink, bold, italics & underlining texts should all be allowed).
Example: "Sorry, you must wait longer to begin posting again. Please read this thread to understand why."
^ Perhaps you can make it so, admins can set different messages on a per usergroup & forum basis.


akz645 12-16-2015 10:59 PM

Quote:

Originally Posted by MarkFL (Post 2560626)
I tested it, and everything seemed to work, but at present I would like to know if there is anything you find not working as I stated. Once I know no one is finding any unexpected behavior (you know, bugs), then I will consider adding other features. But for right now, I have several other things I want to get done first.

I just discovered a bug right now:

- If you press the backspace/have another tab where you aren't restricted, you can still actually reply/create a new thread.

To prevent this, shouldn't you create your mod like the other mod, so an error appears immediately even if the user hasn't refreshed the page?
Example of a method (which you'd need to code in) when replying in a thread that should solve this bug:
https://vborg.vbsupport.ru/external/2015/12/15.png
Example of a method (which you'd need to code in) when creating a thread that should solve this bug:
https://vborg.vbsupport.ru/external/2015/12/16.png

P.S:
My post here is long, because it's mostly to help avoid confusion.
Not just for you to understand me, but for others to understand all your settings better.

jagtpf 12-19-2015 02:48 PM

Quote:

Originally Posted by MarkFL (Post 2560598)
Do you mean a restriction on creating new threads only, while allowing posting to existing threads unrestricted?

I will soon add a setting whereby the admin can choose the unit of time (seconds, minutes, hours and days) for the restriction. :)

My apologies for missing this - all vbulletin.org notifications were flying into our spam box!

Yes. The restriction on creating New Threads - whilst leaving posts/replies as unlimited.

jagtpf 12-19-2015 02:52 PM

I'll download and have a look at this Mark - many thanks for all your work.

One issue I can see is that the restriction can only be set for 1 usergroup? (unless I've read incorrectly).
In other words would it be possible for usergroup A to be restricted to 2 new threads, whilst usergroup X is restricted to 3 .... still allowing no restriction for Staff etc...

Brilliant work, though. Again many thanks.

MarkFL 12-19-2015 03:31 PM

Quote:

Originally Posted by jagtpf (Post 2560807)
I'll download and have a look at this Mark - many thanks for all your work.

One issue I can see is that the restriction can only be set for 1 usergroup? (unless I've read incorrectly).
In other words would it be possible for usergroup A to be restricted to 2 new threads, whilst usergroup X is restricted to 3 .... still allowing no restriction for Staff etc...

Brilliant work, though. Again many thanks.

As of now, the restriction is the same number of posts for all usergroups included in the restriction. :)

akz645 12-19-2015 05:07 PM

Quote:

Originally Posted by MarkFL (Post 2560626)
Did you find the product did not behave as I stated? If so, where?

I tested it, and everything seemed to work, but at present I would like to know if there is anything you find not working as I stated. Once I know no one is finding any unexpected behavior (you know, bugs),

Quote:

Originally Posted by akz645 (Post 2560630)
I just discovered a bug right now:

- If you press the backspace/have another tab where you aren't restricted, you can still actually reply/create a new thread.


What about that Bug.

You never replied back to me, or checked my PM...

https://vborg.vbsupport.ru/external/2015/12/14.png

MarkFL 12-19-2015 05:15 PM

Quote:

Originally Posted by akz645 (Post 2560814)
What about that Bug.

You never replied back to me, or checked my PM...

https://vborg.vbsupport.ru/external/2015/12/14.png

I do plan to investigate this soon...however, I have been receiving many PMs from users for help with their sites (on which I place a high priority) and working on other projects too.

I appreciate your feedback, and I apologize for not responding to your PM to at least let you know I will do my best to address the issue you found with this product. I also plan to allow for more extensive definitions of restrictions, on a per forum/per usergroup/per user basis. :)


All times are GMT. The time now is 03:22 PM.

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.01269 seconds
  • Memory Usage 1,814KB
  • 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
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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