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.
The forum of the forums
5 posters

    Stop a member from contributing in a particular discussion

    peter59
    peter59
    Forumember


    Male Posts : 145
    Reputation : 0
    Language : English
    Location : Kent

    Solved Stop a member from contributing in a particular discussion

    Post by peter59 January 4th 2015, 4:51 pm

    Is it possible to exclude an

    Individual member from Participating in a particular discussion.

    Thanks in advance.

    Ape
    Ape
    Administrator
    Administrator


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

    Solved Re: Stop a member from contributing in a particular discussion

    Post by Ape January 4th 2015, 5:21 pm

    Not that i know of sorry



    Stop a member from contributing in a particular discussion Left1212Stop a member from contributing in a particular discussion Center11Stop a member from contributing in a particular discussion Right112
    Stop a member from contributing in a particular discussion Ape_b110
    Stop a member from contributing in a particular discussion Ape1010
    brandon_g
    brandon_g
    Manager
    Manager


    Male Posts : 10113
    Reputation : 923
    Language : English
    Location : USA

    Solved Re: Stop a member from contributing in a particular discussion

    Post by brandon_g January 4th 2015, 6:50 pm

    Not to 1 conversation no, you can make that user a group of own and prevent from posting in the section. That is about it besides simply deleting his posts.



    Stop a member from contributing in a particular discussion Brando10
    Remember to mark your topic Stop a member from contributing in a particular discussion Solved15 when a solution is found.
    General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

    Stop a member from contributing in a particular discussion Scre1476
    Team Leader
    Review Section Rules | Request A Review | Sticker Points
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    Solved Re: Stop a member from contributing in a particular discussion

    Post by _Twisted_Mods_ January 4th 2015, 8:16 pm

    you can try this

    create a new javascript set it to in topics
    Code:

    $(function(){
    var notallow = ['1','97664']; // list of user id's
    var nopassurl = "member-from-contributing"; // url to block
    var redirurl = "/"; // redirect url
    var redorremv = "remove"; // remove or redirect
    var alrmsg = "You Can Not View This";  // alert message on redirect
    var gusrid = _userdata.user_id;
    var cururl = location.href;
    for(var i = 0; i< notallow.length; i++){
    if (redorremv == "redirect"){   
    if    (cururl.match(nopassurl)){}else{return;};
       if (gusrid == notallow[i]){
          alert(alrmsg);
          location.href = redirurl;   
       }}
       if (redorremv == "remove"){   
          if    (cururl.match(nopassurl)){}else{return;};
       if (gusrid == notallow[i]){
                $('a[href*="&mode=reply"]').attr('style','display:none');
                $('#quick_reply').attr('style','display:none');
       }}}
    });



    notallow = ['1','97664']; < list of user id's you want to prevent
    var nopassurl = "member-from-contributing"; << url you want to to block
    var redirurl = "/"; < url you want to redirect the prevented member to
    var redorremv = "remove"; << two choices remove and redirect .. remove removes the reply & quick reply options and redirect takes them to another page
    var alrmsg = "You Can Not View This"; << message that will be displayed on page redirect
    peter59
    peter59
    Forumember


    Male Posts : 145
    Reputation : 0
    Language : English
    Location : Kent

    Solved Re: Stop a member from contributing in a particular discussion

    Post by peter59 January 8th 2015, 6:56 pm

    Thanks for the replies. Deleting his posts seems to be working. 
    Problem solved. salut
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Stop a member from contributing in a particular discussion

    Post by Ange Tuteur January 8th 2015, 7:21 pm

    Topic archived

      Current date/time is November 11th 2024, 2:47 pm