XF 1.1 Autofill anonymous user names

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.
 
Admin CP -> Appearance -> Templates -> thread_reply

Replace with desired default guest username:

Rich (BB 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
 
Back
Top Bottom