The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Making a text editor appear with text inside
Is there any way to "spawn" a text editor (i.e. the thing I'm using to type this message) with text already inside? So, for example, if I were asking people to upload images, I'd like to make it so the text editor spawns with some predefined profile text inside - stuff like "Name, Age etc.".
Is that possible? Thanks much, Dan |
#2
|
||||
|
||||
Do a search for the Thread Stencil mod. I think that will do what you want.
|
#3
|
|||
|
|||
Hey Lynne,
That's actually a really useful mod, and although I'll use it for other stuff, it doesn't do what I need in this instance. See, the thing is, I'm using the Ultimate Media Gallery, and it's in there that I'd like to spawn a text editor with text. So: is there a manual way to do it? Like, perhaps I need to edit a PHP file or a template or something? Any help appreciated, Dan |
#4
|
||||
|
||||
I'm not familiar with that mod, but it sounds like you are just talking about a form (like this box is). If so, google "form html" and you should be see how to pre-populate form elements. (I think that is what you are trying to do?)
|
#5
|
||||
|
||||
The two most popular (text) elements, pre-populated:
HTML Code:
<input type="text" name="something" length="15" value="Some Text" /> <textarea name="sometextarea" cols="60" rows="10"> Some Text Here </textarea> |
#6
|
|||
|
|||
Quote:
Basically, I want the 'Description' box here to be pre-populated with text - namely, some basic stuff like "Name, Age etc.". So, I don't want to create a form per se, but populate an existing one (I guess?). What I'm wondering is how I'd do that. And an idea of where I'd do it - i.e. in PHP, or in templates etc. I apologise if I'm coming across a bit dense. I'm sort of just picking this stuff up as I go, and appreciate all your help. Dan |
#7
|
||||
|
||||
Exactly what I was thinking. That Description box is a form element - a <textarea> as Hanson wrote above. So, you want to pre-populate the <textarea>. Hanson wrote the html to do that.
|
#8
|
|||
|
|||
If it is a vb add-on which is using the construct_edit_toolbar function(and i think it is one), you'll have to search for the call of construct_edit_toolbar in the file and add the text you want to have into, as first parameter!
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|