• Resolved c2cero

    (@c2cero)


    Could you please remove this nasty banner “XX spam comments were blocked by Anti-spam plugin so far. Upgrade to Pro.” from the comment section header?

    It’s really annoying without a “hide” option.

    I will have some patience, but if nothing changes I’ll remove it.

    Cheers,
    Berto López

    https://www.ads-software.com/plugins/anti-spam/

Viewing 12 replies - 1 through 12 (of 12 total)
  • This section gives some feedback for site admins about the amount of spam in comments section.
    And this info is shown in the relevant place – in the comments section.
    And it also reminds about the Pro version ??
    Probably I will add ‘hide’ option in future.

    If you want to remove it – you may delete ‘admin_notices’ action block.

    Thread Starter c2cero

    (@c2cero)

    Ok, It’s fine to have these numbers, but that is the wrong place, it’s very intrusive. A config & info page of the plugin would be a much better option.

    Thread Starter c2cero

    (@c2cero)

    I tried removing the admin_notices block and it worked, thank you!

    Anyway, I still suggest you implement the changes above

    Cheers,
    Berto

    I already made a Settings page for this plugin.
    I added it to the “Anti-spam Pro” version.

    In my opinion Settings page is not needed for Anti-spam plugin because it works fine with default settings.
    This is how I see the free, clean, fast and powerful spam protection.

    But it is pretty important for site admins to see some info about the spam stats.
    And there is no need to create extra info page for showing only 1 sentence.

    It is Open Source and you have the freedom to remove or to add any code you need with your version of the plugin.
    And I have the freedom to do what I think is correct for the main plugin branch ??
    This is why I like Open Source ??

    Indeed the notice is really annoying, I don’t like it as well, that’s what brought me here. webvitaly please remove that notice, I don’t want to downgrade the plugin to an earlier version just because of this. I know you wanna sell the PRO version so you can make money but still this is just not right. What if all plugins were as intrusive as yours???? What would I have in the Dashboard or Comment section? Hundreds of notifications and texts? That’s just ugly! I want a clean WordPress with not too many things in it.

    PS Until webvitaly gets its wits back and removes this annoying banner you can manually remove it by going to anti-spam.php and deleting the following code:

    if ( ! function_exists('antispam_admin_notice')):
    function antispam_admin_notice() {
    	global $pagenow;
    	if ($pagenow == 'edit-comments.php'):
    		$antispam_stats = get_option('antispam_stats', array());
    		$blocked_total = $antispam_stats['blocked_total'];
    		?>
    		<div class="update-nag">
    			<p>
    				<?php echo $blocked_total; ?> spam comments were blocked by <a href="https://www.ads-software.com/plugins/anti-spam/">Anti-spam</a> plugin so far.
    				<a href="https://codecanyon.net/item/antispam-pro/6491169?ref=webvitaly" title="Anti-spam Pro">Upgrade to Pro</a>.
    			</p>
    		</div>
    		<?php
    	endif; // end of if($pagenow == 'edit-comments.php')
    }
    add_action('admin_notices', 'antispam_admin_notice');
    endif; // end of antispam_admin_notice()

    Come on webvitaly, you can’t expect people to make modifications to the plugin code, those mods will be wiped out on each update. Can you at least modify the .update-nag property to padding: 2px 15px? The top/bottom padding is ridiculous and obtrusive.

    If this MUST remain, is it possible to have this on the BOTTOM of the comments page?

    “But it is pretty important for site admins to see some info about the spam stats.” Ok, if it is very important, perhaps consider adding this to the dashboard like Akismet does.

    @scott Buehler: The padding and margin is made by WordPress core styles and I agree that the spaces are huge.
    I already removed the huge margin and commit it into the main branch some time ago but I did not updated the plugin’s version for avoiding extra update.
    If you will re-install the plugin – you will see the much smaller spaces inside of the info section.

    Ok, if it is very important, perhaps consider adding this to the dashboard like Akismet does.

    Can’t find where Akismet is showing its stats. I can see only Akismet Settings page.

    @webvitaly, didn’t realize that CSS style is referenced from core, sorry about that. To answer your question, Akismet places these stats in “At a Glance” on the main WP dashboard. Link goes to an imgur screenshot for your reference.

    I’m just not a fan of the stats in comments. On my multisite install, it’s already quite annoying managing comments. I ended up using greasemonkey to hide it for now.

    Hope this helps.

    @scott Buehler: Thank for the screenshot with the Akismet stats.
    I would never found it there by myself ??

    Probably I will just add “hide” button for this stats block in the comments section.
    IMHO it is a better solution.

    I updated the Anti-spam plugin.
    Now users can hide or show Anti-spam info block in the “Screen Options” section.
    The info block visibility option is saved per user.
    IMHO it is pretty clean and nice solution.

    Thread Starter c2cero

    (@c2cero)

    Wise decision Webvitaly, open source or not, “never piss off your customers”

    Your change is an ideal solution for this problem. Congratulations.

    Cheers,
    Berto

    Jay

    (@cotswoldwebdesign)

    Appreciate this great plugin, thank you for adding the “per user” disable to the options. Seasons greeting to all!

    CWD.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Nasty banner in comment section’ is closed to new replies.