• Resolved andrewf12

    (@andrewf12)


    Hi, everyone!

    I’ve googled around, but I can’t seem to find an answer. Does anyone know how to change the default Anonymous title when an account gets deleted? I’d prefer something like No longer user or something to that effect. Anonymous sounds like a user was able to conceal his or her identity.

    Thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter andrewf12

    (@andrewf12)

    I think I found the solution:

    I had to access bbpress/includes/index.php and look for these files:

    bbpress/includes/topics/template.php
    bbpress/includes/users/template.php
    bbpress/includes/replies/template.php

    and change the following code:

    // If nothing could be found anywhere, use Anonymous
    		if ( empty( $author_name ) )
    			$author_name = __( ‘Anonymous’, 'bbpress' );

    to:

    // If nothing could be found anywhere, use Anonymous
    		if ( empty( $author_name ) )
    			$author_name = __( 'No longer a user', 'bbpress' );

    This replaces the default Anonymous to what I wanted (“No longer a user”) which indicates that the user deleted their account and isn’t privileged to post anonymously. It seems to have worked. If anyone has any other ideas, please share!

    Thanks, everyone!

Viewing 1 replies (of 1 total)
  • The topic ‘[bbPress] How to change Anonymous when account deleted?’ is closed to new replies.