Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2002
    Location
    Caerdydd
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts

    The buttons on the "post message" screen

    Hi guys,

    We've all seen the vbcode buttons on the "post message" form. How do they work? I'm building a site that's going to be maintained by a non-coder, so that sort of functionality would be really useful.

    Cheers,

    BL
    "nam et ipsa scientia potentas est" - Francis Bacon

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    They just append [CODE\] and [/CODE\] to the textarea (w/o the backslahes, I added them so the forum wouldn't parse the code tags)

    When the form is submitted those tages are replaced by HTML equivalents...probably something like

    <blockquote>
    <font size="2">code:</font>
    <hr>
    Body of message
    <hr>
    </blockquote>


  •  

    Posting Permissions

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