The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How do I restrict starting topics for lower ranks

4 posters

Go down

Solved How do I restrict starting topics for lower ranks

Post by Eleven 11/1/2023, 12:40

Hi, I would like there to be a minimum of 10 posts before people can start topics in certain areas?


Last edited by Eleven on 11/1/2023, 17:14; edited 2 times in total
Eleven
Eleven
Forumember

Posts : 41
Reputation : 2
Language : English

https://promotionforyour.forumotion.com/

Back to top Go down

Solved Re: How do I restrict starting topics for lower ranks

Post by Guest 11/1/2023, 12:59

Tell me forum version and minimum posts required to open new topic by your standards.
avatar
Guest
Guest


Back to top Go down

Solved Re: How do I restrict starting topics for lower ranks

Post by Eleven 11/1/2023, 13:04

Modernbb and a minimum of 5 posts to start topics 🙂
Eleven
Eleven
Forumember

Posts : 41
Reputation : 2
Language : English

https://promotionforyour.forumotion.com/

Back to top Go down

Solved Re: How do I restrict starting topics for lower ranks

Post by Guest 11/1/2023, 13:07

I will write a script, give me some time Razz
avatar
Guest
Guest


Back to top Go down

Solved Re: How do I restrict starting topics for lower ranks

Post by Eleven 11/1/2023, 13:08

Take your time I’ll get in front of a desktop tomorrow 🙂
Eleven
Eleven
Forumember

Posts : 41
Reputation : 2
Language : English

https://promotionforyour.forumotion.com/

Back to top Go down

Solved Re: How do I restrict starting topics for lower ranks

Post by Guest 11/1/2023, 14:21

Go to CP - Modules - Javascript and make a new script. Name it "Disable new topics for low ranks" and past this code:
Code:
$(document).ready(function() {

    var total_posts = _userdata["user_posts"];
    var minimum_posts = 5;

    if (total_posts < minimum_posts) {
        $('a[href*="/post?f="][href*="&mode=newtopic"]').css("pointer-events", "none");
    }

});

Apply in all pages. Variable
Code:
minimum_posts
is your own choise on how many posts user must have before posting a new message.
If you want button completely gone, you can just say:

Code:
$(document).ready(function() {

    var total_posts = _userdata["user_posts"];
    var minimum_posts = 5;

    if (total_posts < minimum_posts) {
      $('a[href*="/post?f="][href*="&mode=newtopic"]').css("display", "none");
    }

});
avatar
Guest
Guest


Back to top Go down

Solved Re: How do I restrict starting topics for lower ranks

Post by Niko 11/1/2023, 14:53

Coucou,

the other solution, with only the native forumotion features would be to:
  • Create a group adding the automatic option to include only members with X posts published
    How do I restrict starting topics for lower ranks Screen37

  • Modify the permission of the different forums/sub-forums/blogs to allow posting only to members that are part of this group

  • Done :wouhou:


Niko
Niko
Helper
Helper

Male Posts : 3285
Reputation : 254
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Ape likes this post

Back to top Go down

Solved Re: How do I restrict starting topics for lower ranks

Post by Guest 11/1/2023, 15:04

Niko wrote:Coucou,

the other solution, with only the native forumotion features would be to:
  • Create a group adding the automatic option to include only members with X posts published
    How do I restrict starting topics for lower ranks Screen37

  • Modify the permission of the different forums/sub-forums/blogs to allow posting only to members that are part of this group

  • Done :wouhou:



Isn't that much complicated that simple script? xD
avatar
Guest
Guest


Back to top Go down

Solved Re: How do I restrict starting topics for lower ranks

Post by Niko 11/1/2023, 15:23

@System32 using the native functions you can choose easily WHERE they cannot open new topics in that scenario

because if you allow only people with 5 messages to open a new topic, then new members will never be able to reach those 5 posts because they will never be able to open a topic (it's a loop) farao
Niko
Niko
Helper
Helper

Male Posts : 3285
Reputation : 254
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Eleven likes this post

Back to top Go down

Solved Re: How do I restrict starting topics for lower ranks

Post by Guest 11/1/2023, 15:29

Niko wrote:@System32 using the native functions you can choose easily WHERE they cannot open new topics in that scenario

because if you allow only people with 5 messages to open a new topic, then new members will never be able to reach those 5 posts because they will never be able to open a topic (it's a loop) farao
They will be able if they post in already opened topics.
avatar
Guest
Guest


Back to top Go down

Solved Re: How do I restrict starting topics for lower ranks

Post by Ape 11/1/2023, 16:26

The more Javascripts you have the more problems you will have with slowing your forum down or a clash on codes on the system if you have a tool already made for this then why use a code? You are always told to use the ones tested on the Admin page before making a change with codes.

I would have gone with what @Niko has posted it's much better then using a code but I guess the choice is there for the member who wanted the help.


How do I restrict starting topics for lower ranks Left1212How do I restrict starting topics for lower ranks Center11How do I restrict starting topics for lower ranks Right112
How do I restrict starting topics for lower ranks Ape_b110
How do I restrict starting topics for lower ranks Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19435
Reputation : 2010
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Niko and Eleven like this post

Back to top Go down

Solved Re: How do I restrict starting topics for lower ranks

Post by Eleven 11/1/2023, 16:43

The only topics that will have this rule is for advertising, not for everywhere. 🙂 thank you for the help it works 👍
Eleven
Eleven
Forumember

Posts : 41
Reputation : 2
Language : English

https://promotionforyour.forumotion.com/

Niko likes this post

Back to top Go down

Solved Re: How do I restrict starting topics for lower ranks

Post by Ape 11/1/2023, 16:46

@Eleven If this topic is now solved Please press the marked solved button found at the top of this topic.

Please remember to do this on all solved topic's

Thank you.

Ape.


How do I restrict starting topics for lower ranks Left1212How do I restrict starting topics for lower ranks Center11How do I restrict starting topics for lower ranks Right112
How do I restrict starting topics for lower ranks Ape_b110
How do I restrict starting topics for lower ranks Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19435
Reputation : 2010
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: How do I restrict starting topics for lower ranks

Post by SLGray 11/1/2023, 17:21

Problem solved & topic archived.
Please read our forum rules:  ESF General Rules


How do I restrict starting topics for lower ranks Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51554
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum