2 afwas Feb 10, 2009 21:53

Cool! I'll await the beta or whatever 3.0 release. best, Joe
Isn't there a back office setting for not antispam filtering by group?
There sure is... and it is turned off for administrators (the user I was posting as is an admin). Thoughts?
Oh bummer cuz I turned it off for a usergroup I have. See my thoughts are "turning it off doesn't do anything other than remove the mark from the box". Haven't been caught by it myself in a long time though.
Sorry, no worthy help here.
Crack open /inc/_core/_param.funcs.php and change the following ( approx 1633 )
case 'commenting':
$xhtmlvalidation = $use_xhtmlvalidation_for_comments;
$allow_css_tweaks = $comments_allow_css_tweaks;
$allow_javascript = false;
$allow_iframes = false;
$allow_objects = false;
// fp> I don't know if it makes sense to bypass antispam in commenting context if the user has that kind of permissions.
// If so, then we also need to bypass in several other places.
$bypass_antispam = $Group->perm_bypass_antispam;
break;
¥
¥åßßå wrote:
Crack open /inc/_core/_param.funcs.php and change the following ...
That worked with one tweak... the `Group` variable wasn't defined in that function so I had to pull it in (copied from a function above):
case 'commenting':
$xhtmlvalidation = $use_xhtmlvalidation_for_comments;
$allow_css_tweaks = $comments_allow_css_tweaks;
$allow_javascript = false;
$allow_iframes = false;
$allow_objects = false;
// fp> I don't know if it makes sense to bypass antispam in commenting context if the user has that kind of permissions.
// If so, then we also need to bypass in several other places.
$Group = $current_User->get_Group();
$bypass_antispam = $Group->perm_bypass_antispam;
break;
Guess I should test code before I post it ... tad hard on my blog though, it doesn't have any antispam entries :p
¥
crap... sorry to bring this thread back from the grave:
I noticed that I haven't had any comments since I made this change... unfortunately, the reason is that this seems to have broken commenting for non-logged-in users... the error I get when commenting when I'm not logged in is thus:
Fatal error: Call to a member function get_Group() on a non-object in /home/joehall/public_html/nqb2/inc/_core/_param.funcs.php on line 1644
Anyone have quick suggestions for an if/else for users without a Group? (or other ideas?)
if( !empty( $current_User ) )
$Group = $current_User->get_Group();
$bypass_antispam = $Group->perm_bypass_antispam;
}
else
{
$bypass_antispam = false;
}
break;
¥åßßå wrote:
Guess I should test code before I post it ... tad hard on my blog though, it doesn't have any antispam entries :p
¥
¥
That is missing a {
The second line should be { even though I would put it at the end of the first line.
Works like a charm, as always! Thanks and karma be to the almighty b2evo overlords.
Hi joebeone,
About a year ago I had a similar issue with a posting I couldn't believe contained SPAM. At that point (characters) pointed me to a method to -at least- view what triggered the spamfilter. If I recall correctly we decided to add that as a feature, but it never happened. I believe the antispam measures by B2evo (including a bad url list) are about to be deprecated. For reasonably accurate lists turn to Aksimet.
Good luck