• 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

#1
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.
 

Jake Bunce

XenForo moderator
Staff member
#2
Admin CP -> Appearance -> Templates -> thread_reply

Replace with desired default guest username:

Code:
	<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>
		</dl>
	</xen:if>
You need to make the same change to this template:

Admin CP -> Appearance -> Templates -> thread_create