Dashboard Plugin doesn't show Spam Buttons

Creating and modifying plugins.
Post Reply
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Dashboard Plugin doesn't show Spam Buttons

Post by blog.brockha.us »

The dashboard plugin shows comments to be moderated. But the buttons of the AntiSpam plugins (Ham/Spam, Valid/Spam,..) are not shown there. Neither the buttons of the standard Spam plugin nor of the Bayes plugin.

Can we do something about this? :mrgreen:
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Dashboard Plugin doesn't show Spam Buttons

Post by Timbalu »

Hmmm...
The dashboard mainly just copies the behaviour of admin/entries.inc.php or admin/comments.inc.php.
Are any Anti-Spam hooks presented in the comments or entries overviews? (I don't have any.) If they are, which plugin pushes them into, bayes? If so, it should also do for the dashbord. Please contact me in case.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Re: Dashboard Plugin doesn't show Spam Buttons

Post by blog.brockha.us »

As far as I understand the plugin, the Bayes adds the buttons using Ajax calls. But I don't know, if it needs some special environment / event for it, we have to talk to the maintainer onli about this.
The "normal AntiSpam plugin" (with Akismet support) has buttons like that, too.
All of them are visible in the normal comment area, but not in the dashboard.

This is how the comment section looks like with two AntiSpam plugins (Akismet and Bayes):
Image

These spam buttons are not visible in the dashboard.
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Dashboard Plugin doesn't show Spam Buttons

Post by Timbalu »

Oh yes, now I know what <?php echo $comment['action_more']; ?> is for. It really was on my list to investigate.... ;-)
I'll try to fit that in again... if possible.

I have to decline here, I was never in need to install any other antispam method than the default spamblock plugin. That is why I did not knew. On my linux server the SpamAssassin bayes db I always remembered as having this special format, while being a performance down buster in the manner of its working method.
Having this with php/mysql seemed me to increase this even more. And a few weeks ago I tried one of these troja downloads and was quite astonished how big it was after a few weeks of training. This is no note to discuss the well done plugin or its need for anybody out there; its just my personal 2 cents about it. Maybe this will change after having worked with it some time. :)
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Dashboard Plugin doesn't show Spam Buttons

Post by Timbalu »

Grischa or Malte

Has this ever worked in the dashboard before, as it needs

Code: Select all

serendipity_plugin_api::hook_event('backend_comments_top', $comments);
which wasn't in there AFAIK and a single fetch all comments at once, not like the dashboard twice (seperated calls for already approved and as to get moderated)?

The Ajax JS is designed for the normal workflow call with all comments together.
It might be some extra work to design something that fits both.

(If anybody is trying to do so via the AJAX JS for the current version, we need to keep in mind the next level I am working on, using a new (template) structure, which will need some different changes too then. :wink:
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
onli
Regular
Posts: 2825
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Dashboard Plugin doesn't show Spam Buttons

Post by onli »

Has this ever worked in the dashboard before
No. The hooks never were present. The buttons are included via an event-hook, only their function is via JS.
Post Reply