Inserting grey-colored words in New Topic

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Post Reply
bryan23
Registered User
Posts: 102
Joined: Thu Dec 28, 2017 2:16 pm

Inserting grey-colored words in New Topic

Post by bryan23 »

How can I insert grey out words into all users New Topic "Subject:" and "Content" box like the default search box phpbb has "search..."?

Using default prosilver.
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: Inserting grey-colored words in New Topic

Post by 3Di »

🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
bryan23
Registered User
Posts: 102
Joined: Thu Dec 28, 2017 2:16 pm

Re: Inserting grey-colored words in New Topic

Post by bryan23 »

very useful information thank you. you know where are the files to edit?
User avatar
Sniper_E
Registered User
Posts: 1126
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: Inserting grey-colored words in New Topic

Post by Sniper_E »

styles/prosilver/template/posting_editor.html (line 28)

Code: Select all

			<input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->120<!-- ELSE -->124<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}"<!-- IF S_NEW_MESSAGE --> placeholder="{S_USERNAME} enter a Subject Title."<!-- ENDIF --> class="inputbox autowidth" />
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
bryan23
Registered User
Posts: 102
Joined: Thu Dec 28, 2017 2:16 pm

Re: Inserting grey-colored words in New Topic

Post by bryan23 »

thanks sniper_e! that would be the subject.

Where can I put the placeholder in the message-box? Which part of line 77?

Code: Select all

	<div id="message-box" class="message-box">
		<textarea <!-- IF S_UCP_ACTION and not S_PRIVMSGS and not S_EDIT_DRAFT -->name="signature" id="signature" style="height: 9em;"<!-- ELSE -->name="message" id="message"<!-- ENDIF --> rows="15" cols="76" tabindex="4" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onfocus="initInsertions();" class="inputbox">{MESSAGE}{DRAFT_MESSAGE}{SIGNATURE}</textarea>
	</div>
	
If I include it in the textarea, the placeholder code won't work.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Inserting grey-colored words in New Topic

Post by Lumpy Burgertushie »

place it here:
class="inputbox">{MESSAGE}{DRAFT_MESSAGE}{SIGNATURE}

like this:

class="inputbox" placeholder="your text here">{MESSAGE}{DRAFT_MESSAGE}{SIGNATURE}

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
bryan23
Registered User
Posts: 102
Joined: Thu Dec 28, 2017 2:16 pm

Re: Inserting grey-colored words in New Topic

Post by bryan23 »

thanks it works.
Post Reply

Return to “[3.2.x] Styles Support & Discussion”