1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 Autofill anonymous user names

Discussion in 'XenForo Questions and Support' started by fion, Jul 18, 2013.

  1. fion

    fion Member

    Is there a way to autofill or autocomplete the name field for posts from anonymous users? For example we want it to autofill with "anonymous", but also allow users to enter a different name if they wish.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> thread_reply

    Replace with desired default guest username:

    	<xen:if is="{$visitor.user_id} == 0">
    		<dl class="ctrlUnit">
    			<dt><label for="ctrl_guestUsername">{xen:phrase name}:</label></dt>
    			<dd><input type="text" name="_guestUsername" value="{$visitor.username}" class="textCtrl" /></dd>
    You need to make the same change to this template:

    Admin CP -> Appearance -> Templates -> thread_create
  3. fion

    fion Member

    Thank you, this will be a big help.

Share This Page