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.
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.