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 » Thu Jun 21, 2018 7:03 am

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
Registered User
Posts: 12998
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Inserting grey-colored words in New Topic

Post by 3Di » Thu Jun 21, 2018 7:08 am

Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate

:game_die: The new Dice Roller extension for phpBB 3.2 is out! :game_die:

Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

bryan23
Registered User
Posts: 102
Joined: Thu Dec 28, 2017 2:16 pm

Re: Inserting grey-colored words in New Topic

Post by bryan23 » Thu Jun 21, 2018 7:33 am

very useful information thank you. you know where are the files to edit?

User avatar
Sniper_E
Registered User
Posts: 730
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 » Fri Jun 29, 2018 3:42 pm

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 » Fri Aug 31, 2018 5:11 pm

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: 65204
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Inserting grey-colored words in New Topic

Post by Lumpy Burgertushie » Fri Aug 31, 2018 8:56 pm

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

like this:

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

robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

bryan23
Registered User
Posts: 102
Joined: Thu Dec 28, 2017 2:16 pm

Re: Inserting grey-colored words in New Topic

Post by bryan23 » Thu Sep 13, 2018 3:46 am

thanks it works.

Post Reply

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

Who is online

Users browsing this forum: No registered users and 7 guests