Forum Replies Created

Viewing 8 replies - 31 through 38 (of 38 total)
  • Thread Starter jemar707

    (@jemar707)

    Yes the above code works to require only name. We have name placeholder set to Anonymous. If Anonymous, Impostercize triggers and works because we have an existing Anonymous user. If name is left blank it produces the error: please enter a valid name.

    Prior to that without that function, the user could leave the name field blank but the comment would appear as Anonymous, somehow bypassing Impostercize. My guess is that when the user name was left blank, the default behavior is for WP to assign the commenter_name Anonymous, but perhaps it wasn’t happening until after Impostercize checks passed because it was blank.

    Thread Starter jemar707

    (@jemar707)

    Currently have the discussion settings to allow users to comment without a name and email. And, then adding this function to force name

    function require_comment_name($fields) {
     
    if ($fields['comment_author'] == '')
    wp_die('Error: please enter a valid name.');
     
    return $fields;
    }
    add_filter('preprocess_comment', 'require_comment_name');
    Thread Starter jemar707

    (@jemar707)

    I figured it out. We didn’t require users to enter a name, so if the field was left blank it would pass Impostercide check and then still display Anonymous when comment posted. Problem was we didn’t want to require email address as per the Diacussiom settings where it is both Name & Email. So I required comment_author in a preprocess function and then it works well if they try to use Anonymous.

    • This reply was modified 8 years, 1 month ago by jemar707.
    Thread Starter jemar707

    (@jemar707)

    Hello again! I never realized you replied to my message until now. oops. Yes we created a user named Anonymous to prevent this and somehow users are still bypassing the plugin and can using the name Anonymous.

    • This reply was modified 8 years, 1 month ago by jemar707.
    Thread Starter jemar707

    (@jemar707)

    I have now tried to delete the plugin and am getting the following:

    Plugin could not be deleted due to an error: Could not fully remove the plugin(s) advertising-manager/advertising-manager.php.

    Any help with this is appreciated. Thanks.

    Thread Starter jemar707

    (@jemar707)

    Side note, I did attempt to delete both plugins and start over. but this one still won’t activate. Perhaps something left hanging out there in the database?

    I need WordPress names to sync with BP names as well. Preferably I would love for it to all use the WP display names because we already have a large established community that use the WP display names and we are just now implementing BP. But I will take either. Would be happy to donate for a custom function or plugin ?? [email protected]

    Thread Starter jemar707

    (@jemar707)

    I can’t even get the old version to work ??
    You would be my hero if you can fix it on my server and database. It’s just the point now that I know something is wrong. Not a problem if we lose the first round of data. Our user are cyclical in nature and most will plug it back in. But I worked hard to get it to display with comments…so just want it fixed. mucho karma bucks and donation to your plugin in store. jessica@ igotmyrefund.com if you have time.

Viewing 8 replies - 31 through 38 (of 38 total)