Login  Register

Re: Limit number of posts

Posted by Harvey on Oct 18, 2014; 6:37pm
URL: https://support.nabble.com/Limit-number-of-posts-tp7591916p7592045.html

Here's another idea.

Can I modify this code:

<macro name="user_request">
    <script type="text/javascript">
        var posts_today;
        var path = '/template/NamlServlet.jtp?macro=user_response&user=';
        var url = Nabble.userId;
        $.getScript(path+url+Nabble.getClientID() ,function(data){
        posts_today = data;
        if(posts_today > 19){
        $('.reply_link').css('display','none');
        }
        });   
        
    </script>
</macro>

to just apply to specific user IDs?
HTTPS Please!