Skip to:
Content
Pages
Categories
Search
Top
Bottom

disabling anonymous user info remember


  • regevkamber
    Participant

    @regevkamber

    Hello,

    I use the plugin and when anonymous user is adding a new topic or reply it remember his name and email. I disabled it in the WP comments form. is there a way to disable it in the forum?

    thanks

Viewing 9 replies - 1 through 9 (of 9 total)

  • Robin W
    Moderator

    @robin-w

    Do you mean it is visible?

    If so I suspect that this is only to admins – so you can spot trolls !


    regevkamber
    Participant

    @regevkamber

    No, What I mean is that if an anonymous user is entering the forum and fill out his name and email and send a topic. after that if he enter the forum again, his name and email will already be in the input fields.
    how can i disable that?

    thanks


    Robkk
    Moderator

    @robkk

    how did you disable it in the comments form , im sure the code will be similar.


    regevkamber
    Participant

    @regevkamber

    this is the code to disable it for the comments

    remove_action( ‘set_comment_cookies’, ‘wp_set_comment_cookies’ );


    Robkk
    Moderator

    @robkk

    i think this would have the same effect.

    // define the comment_cookie_lifetime callback
    function filter_comment_cookie_lifetime( $number ) 
    {
        // make filter magic happen here...
        return 0;
    };
            
    // add the filter
    add_filter( 'comment_cookie_lifetime', 'filter_comment_cookie_lifetime', 10, 1 );

    regevkamber
    Participant

    @regevkamber

    thanks but it doesn’t work on the forum


    Robkk
    Moderator

    @robkk

    it worked for me, and just so you know bbPress uses some of the WordPress comments code for anonymous posting.

    link to a topic i can test on and make sure you have the code placed.

    the way i tested it is i tried normal anonymous posting when logged out of my test site inputted my email and name then posted a reply and topic. by default the name and email should populate automatically for my next reply and topic.

    with my code it should display empty text inputs even when you already made a reply or topic.


    regevkamber
    Participant

    @regevkamber

    Hey,

    the forum address is:

    הפורום שלי

    please let me know what think.

    thanks for your help


    Robkk
    Moderator

    @robkk

    ah i see will look into it more then.

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
Skip to toolbar