vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Conditional if has not reached specific number of posts (https://vborg.vbsupport.ru/showthread.php?t=326688)

Inna 08-27-2018 05:51 AM

Conditional if has not reached specific number of posts
 
Hello, I want to restrict the content of each post on my forum in this way:

If user has more than 40 post counts, he can see the content of every post. Else here should reach that number .

Is it possible to do such via coding?

Inna 11-03-2018 06:55 PM

Any updates?

MarkFL 11-03-2018 10:18 PM

What I would do is use promotions. When a user reaches a post count of 40 they would be automatically promoted to a usergroup with permissions to view posts.

I don't recommend doing this at all though, to be honest. A user who cannot read posts is simply going to be discouraged and go somewhere where they can actually read posts.

Inna 11-07-2018 09:46 AM

Thanks MarkFL, I know using promotions, but I want to show a message who have not reached post count of 40 that they're not able to see the content.
Does promotions do this?

MarkFL 11-07-2018 01:25 PM

You could use a notice for that, but let me ask you...how is a user supposed to get to 40 posts if he/she can't see any content and reply to it?

I've seen on many forums where users cannot do this or that until they reach a certain post count, and depending on what features are being held over their head, this can lead to very spammy posts as they try to get past the post count barrier.

Inna 11-07-2018 01:28 PM

I forgot to say:

I want to do this on some specific forums.

Suppose there are "One", "Two" and "Three" forums.
When a member post count is below 40 and is trying to see any post content of Two, he should face this.

On One and Three, anyone can send post with any post count.

MarkFL 11-07-2018 01:42 PM

Here is a product of mine that should do what you need:

Restricted Forums By Post Count

This restricts them from posting, but if I recall correctly, they can still see the content.

Inna 11-07-2018 01:52 PM

I'll check it out.

Thanks


All times are GMT. The time now is 04:55 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.01054 seconds
  • Memory Usage 1,718KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete