Results 1 to 7 of 7

Thread: Site help.

  1. #1
    Join Date
    Jul 2005
    Location
    -
    Posts
    2,995
    Tokens
    0

    Latest Awards:

    Default Site help.

    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

  2. #2
    Join Date
    Jan 2006
    Posts
    2,593
    Tokens
    0

    Latest Awards:

    Default

    I dont get what you mean, do you want to make a form?

    Could you repeat that in full english?
    Last edited by James!; 29-01-2006 at 07:29 PM.

  3. #3
    Join Date
    Dec 2005
    Posts
    993
    Tokens
    0

    Default

    yes i didnt understand that either...

  4. #4
    Join Date
    Jan 2006
    Location
    Denton | UK
    Posts
    213
    Tokens
    0

    Default

    Hey,

    I think he wants a BB Parser.

    If so it's beyond your skill with PHP

    - Dan

  5. #5
    Join Date
    Nov 2005
    Posts
    807
    Tokens
    1,335

    Latest Awards:

    Default

    sounds like he means:
    HTML Code:
    <textarea value="HELLO"></textarea>
    :s

  6. #6
    Join Date
    May 2005
    Location
    Burgessville
    Posts
    806
    Tokens
    0

    Default

    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

    Originally Posted by bananasislegend
    this thread might be better than sex..

  7. #7
    Join Date
    Jan 2006
    Posts
    42
    Tokens
    0

    Default

    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:

    Code:
    function red(theForm)
    {
    theForm.elements[?].value= "[red]"+ theForm.elements[?].value +"[/red]"
    }
    (Replace the question mark with the order of the form element).

    Use a button like this to call the function:
    Code:
    <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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •