Is it possible to exclude an
Individual member from Participating in a particular discussion.
Thanks in advance.
Individual member from Participating in a particular discussion.
Thanks in advance.
$(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');
}}}
});