SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Dec 2002
    Location
    Asker, Norway
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    phpclasses.org: bbcode - img

    I'm using the simple bbcode class from phpclasses.org, but i don't know how to add the img tag.
    Other tags are easy, by the img tag have no end tag (</img>) which makes it difficult

    I found the class in the PHP Anthology i think

    Other tags are added by
    PHP Code:
    $this->bbcode->add_tag(array('Name'=>'EMAIL','HasParam'=>true,'HtmlBegin'=>'<a href="','HtmlEnd'=>''">mailto:%%P%%">','HtmlEnd'=>'</a>')); 

  2. #2
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,807
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    Can you post the class please claus erik (or is it Erik Claus?)!
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  3. #3
    SitePoint Zealot
    Join Date
    Dec 2002
    Location
    Asker, Norway
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I found it out

    i ust added a "fake" end tag
    PHP Code:
    $this->bbcode->add_tag(array('Name'=>'IMG','HtmlBegin'=>'<img src="','HtmlEnd'=>'" />')); 
    And it's claus erik . But thats just my first name...


Bookmarks

Posting Permissions

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