![]() |
Placeholder for Text Areas ?
Hi guys.
I am trying add a default text to quick reply and post area but i cant. http://i.imgur.com/fmiPOmC.jpg and http://i.imgur.com/8dqHF94.jpg So how can i do these? Thanks. *i am using vb 4.2.1 |
Are you trying to add a field where your users can enter text, or do you want some default text to already appear in the post message area when the form is loaded?
|
Quote:
http://www.w3schools.com/tags/tryit....ut_placeholder How can i do that? |
Ah, okay now I know exactly what you mean. :)
It is likely possible for the standard editor, but it may not be possible for the WYSIWYG editor. I will look into it very soon, and post back what I find. ;) --------------- Added [DATE]1458100198[/DATE] at [TIME]1458100198[/TIME] --------------- As I suspected, it won't work with the WYSIWYG editor (it is an inline document), but for the Standard editor you can use the following plugin: Product: vBulletin Hook Location: parse_templates Title: Give Standard Editor Textarea A Placeholder Execution Order: 5 Plugin PHP Code: PHP Code:
Click "Save". |
|
Mark, can you please tell if I can include color code and image code
in the above Hook? if I can how? Thank you in advanced. |
Hey Stratis,
What do you mean by including color/image code? |
Lets say that i want to change the color of the text "Enter Post Here..."
or place an image to show instead of text. :) |
It is possible to use (browser-specific) CSS to change the color of the placeholder text, but I don't think you can use an image as a placeholder. :)
|
Ok thanks for the answer Mark.
|
All times are GMT. The time now is 09:17 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|