Remove username field from posting when not logged in

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Suggested Hosts
Locked
shanetlbrt
Registered User
Posts: 5
Joined: Mon Apr 11, 2011 1:55 am

Remove username field from posting when not logged in

Post by shanetlbrt »

How can I remove the username field on the page where you post when your not logged in?
Wulfric
Registered User
Posts: 26
Joined: Fri Nov 13, 2009 8:09 am

Re: Remove username field from posting when not logged in

Post by Wulfric »

Could you elaborate please?

Try

Code: Select all

<!-- IF S_USER_LOGGED_IN --> <!-- ENDIF -->
Around the Username field
shanetlbrt
Registered User
Posts: 5
Joined: Mon Apr 11, 2011 1:55 am

Re: Remove username field from posting when not logged in

Post by shanetlbrt »

I just want to hide the field, look at the screenshot. Also, where would I put that code at?

Image
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21283
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Remove username field from posting when not logged in

Post by RMcGirr83 »

Can I ask why you would want to do that?
Appreciate the extensions/mods/support then buy me a beer Image
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions | My extensions are updated regularly on github
All requests for support via PM will be ignored
shanetlbrt
Registered User
Posts: 5
Joined: Mon Apr 11, 2011 1:55 am

Re: Remove username field from posting when not logged in

Post by shanetlbrt »

Just so that all guest users appear as "Guest"
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21283
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Remove username field from posting when not logged in

Post by RMcGirr83 »

Within posting_editor.html, find this

Code: Select all

	<!-- IF not S_PRIVMSGS and S_DISPLAY_USERNAME -->
	<dl style="clear: left;">
		<dt><label for="username">{L_USERNAME}:</label></dt>
		<dd><input type="text" tabindex="1" name="username" id="username" size="25" value="{USERNAME}" class="inputbox autowidth" /></dd>
	</dl>
	<!-- ENDIF -->
and remove it, then refresh the template for the style in the ACP.
Appreciate the extensions/mods/support then buy me a beer Image
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions | My extensions are updated regularly on github
All requests for support via PM will be ignored
shanetlbrt
Registered User
Posts: 5
Joined: Mon Apr 11, 2011 1:55 am

Re: Remove username field from posting when not logged in

Post by shanetlbrt »

Alright, I was able to do that. Thanks!
Locked

Return to “[3.0.x] MOD Requests”