The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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?
|
#3
|
|||
|
|||
Quote:
http://www.w3schools.com/tags/tryit....ut_placeholder How can i do that? |
#4
|
||||
|
||||
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". |
#6
|
||||
|
||||
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. |
#7
|
||||
|
||||
Hey Stratis,
What do you mean by including color/image code? |
#8
|
||||
|
||||
Lets say that i want to change the color of the text "Enter Post Here..."
or place an image to show instead of text. |
#9
|
||||
|
||||
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.
|
#10
|
||||
|
||||
Ok thanks for the answer Mark.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|