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 January 12th 2023, 12:14 am; edited 2 times in total
$(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");
}
});
|
$(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");
}
});
Ape likes this post
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
Eleven likes this post
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)
Niko and Eleven like this post
Niko likes this post
Problem solved & topic archived.
|