How do I restrict starting topics for lower ranks
4 posters
Page 1 of 1
How do I restrict starting topics for lower ranks
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
Re: How do I restrict starting topics for lower ranks
Tell me forum version and minimum posts required to open new topic by your standards.
Guest- Guest
Re: How do I restrict starting topics for lower ranks
Modernbb and a minimum of 5 posts to start topics
Re: How do I restrict starting topics for lower ranks
I will write a script, give me some time
Guest- Guest
Re: How do I restrict starting topics for lower ranks
Take your time I’ll get in front of a desktop tomorrow
Re: How do I restrict starting topics for lower ranks
Go to CP - Modules - Javascript and make a new script. Name it "Disable new topics for low ranks" and past this code:
Apply in all pages. Variable
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("pointer-events", "none");
}
});
Apply in all pages. Variable
|
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");
}
});
Guest- Guest
Re: How do I restrict starting topics for lower ranks
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
- Modify the permission of the different forums/sub-forums/blogs to allow posting only to members that are part of this group
- Done
Isn't that much complicated that simple script? xD
Guest- Guest
Re: How do I restrict starting topics for lower ranks
@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)
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)
Eleven likes this post
Re: How do I restrict starting topics for lower ranks
They will be able if they post in already opened topics.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)
Guest- Guest
Re: How do I restrict starting topics for lower ranks
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.
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.
Niko and Eleven like this post
Re: How do I restrict starting topics for lower ranks
The only topics that will have this rule is for advertising, not for everywhere. thank you for the help it works
Niko likes this post
Re: How do I restrict starting topics for lower ranks
@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.
Please remember to do this on all solved topic's
Thank you.
Ape.
Re: How do I restrict starting topics for lower ranks
Problem solved & topic archived.
|
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» Question about Starting Topics
» anyway to restrict what appears in the latest topics
» Lower thirds
» starting a project
» Problem starting my forum
» anyway to restrict what appears in the latest topics
» Lower thirds
» starting a project
» Problem starting my forum
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum