PDA

View Full Version : Code to stop ignored users from posting in your thread


n_i_t_r_o_u_s
02-18-2005, 03:59 PM
Hi, I have v3.0.6 and I saw a hack for v2 that allows you to stop users you've placed on ignore from posting in your threads. I've included the original hack for v2 below and wonder if it someone can help me make this work for v3.0.6.

Thanks in advanced for any help or advice.

Open newreply.php, find:


$bbuserinfo['userid']==$threadinfo['postuserid'])) {
show_nopermission();
}

Under that add:


// HACK: REPLY IGNORE
if ($bbuserinfo['userid']>0 and $bbuserinfo['usergroupid']!=6 and
$bbuserinfo['usergroupid']!=5 and $bbuserinfo['usergroupid']!=45 and $threadinfo['postuserid']>0) {
$firstposter=$DB_site->query_first("SELECT username,ignorelist
FROM user WHERE userid='$threadinfo[postuserid]'");
$ignorelist = explode(' ', $firstposter['ignorelist']);
while ( list($key, $val)=each($ignorelist) ) {
$ignore[$val] = 1;
}
if ($ignore[$bbuserinfo[userid]]) {
eval("standarderror(\"".gettemplate("error_ignoredreply")."\");");
}
}
// END: REPLY IGNORE


Create a new template called "error_ignoredreply":

Add this:

The original poster of this topic, $firstposter[username], has you on their ignore list. You are unable to reply to the threads they start.

Thanks again for any assistance.

sabret00the
02-18-2005, 07:46 PM
have you contacted the author?

n_i_t_r_o_u_s
02-18-2005, 08:54 PM
Yes, I found that the author was Rick from Overgrow. No reply to my email. I tried to cover every base before coming here and asking. After this if I can't get assistance I'll just pay someone.

Thanks,
Nitrous