View Full Version : Site help.
Jamie.
29-01-2006, 07:28 PM
well ye i need website help u no if u wna put a html code in like a form like for a image ppl can highlight it and get html code from the form if u no wot i mean cud u tell me code :S
James!
29-01-2006, 07:29 PM
I dont get what you mean, do you want to make a form?
Could you repeat that in full english?
yes i didnt understand that either...
DanWilliamson
29-01-2006, 07:40 PM
Hey,
I think he wants a BB Parser.
If so it's beyond your skill with PHP :)
- Dan
Splinter
29-01-2006, 08:56 PM
sounds like he means:
<textarea value="HELLO"></textarea> :s
madchild24
29-01-2006, 09:08 PM
lol he mean like the thing so you can put like the code to your link button in a box and everyone can like see it and copy it
Dakara
29-01-2006, 10:44 PM
You'll need to write a simple JavaScript code which places BB tags either side of the text when you press a button.
You could use something like:
function red(theForm)
{
theForm.elements[?].value= ""+ theForm.elements[?].value +""
}
(Replace the question mark with the order of the form element).
Use a button like this to call the function:
<input onClick="javascript:red(this.form);" type="button" value="Italics">
Then with what ever server side script you're using, after filtering the user submitted data replace the BB code for the correct HTML tag.
E.g. using str_ireplace or str_replace in PHP or Replace in ASP...
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.