+ Reply to Thread
Results 1 to 6 of 6

Thread: Good custom BBCode resource?

  1. #1
    Fearghal's Avatar
    Fearghal is offline x10 Lieutenant Fearghal is an unknown quantity at this point
    Join Date
    May 2008
    Location
    UK
    Posts
    286

    Good custom BBCode resource?

    Does anyone have any good resources for custom BBCode?

    Ive been looking around and can't find any.

    By good I mean like typing [coolbox]Hi[/coolbox] and then that Hi is suddenly in a box with flashing lights kinda code, not spoiler or marquee **** :happysad:.

    Suggestions appreciated ;)
    -Fearghal

    Forgot to mention, sorry about posting in this section. Its not exactly graphics and web design so I dunno where else to put it.

    Mods - feel free to move if you can think of somewhere better.
    Thanks
    Last edited by Jordan C; 10-30-2008 at 12:15 AM. Reason: Automerged Doublepost, Moderator edit
    If I helped you, please rep me!
    -Fearghal

  2. #2
    tittat's Avatar
    tittat is offline x10 Spammer tittat is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Kerala,India
    Posts
    2,479

    Re: Good custom BBCode resource?

    *******Thread Moved to Scripts & 3rd Party Apps********
    PLAY ONLINE GAMES
    WWW.TMONDO.COM PlayFar Flash Games
    Former X10 Forum Senior Moderator(Retired)


  3. #3
    Mitch's Avatar
    Mitch is offline x10 Elder Mitch is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Netherlands
    Posts
    906

    Re: Good custom BBCode resource?

    Something like this?

    bbcode:
    Code:
    [think]{TEXT}[/think]
    html replacement
    Code:
    <table border="0" cellpadding="0" cellspacing="0"><tr><td style="margin: 0;padding: 0;border: 0;"><div style=" background-color: #FFEBD5;color: #000000; -moz-border-radius: 16px; -webkit-border-radius: 16px; border: 1px solid #FFFFFF; padding: 4px;font-size: 1em;" >&nbsp; {TEXT} &nbsp;</div><img src="./images/think.gif"></td></tr></table>
    * note: save this image (http://startrekguide.com/community/images/think.gif) and upload it to your sites ./images/ direction *
    (from: http://startrekguide.com/community/v...hp?f=82&t=4490 )

    If you want more, or need more you can find them here:
    http://startrekguide.com/community/viewforum.php?f=82
    My Website: mitch.exofire.net (currenly not really working on it ;))



  4. #4
    Fearghal's Avatar
    Fearghal is offline x10 Lieutenant Fearghal is an unknown quantity at this point
    Join Date
    May 2008
    Location
    UK
    Posts
    286

    Re: Good custom BBCode resource?

    Quote Originally Posted by Mitch View Post
    Something like this?

    bbcode:
    Code:
    [think]{TEXT}[/think]
    html replacement
    Code:
    <table border="0" cellpadding="0" cellspacing="0"><tr><td style="margin: 0;padding: 0;border: 0;"><div style=" background-color: #FFEBD5;color: #000000; -moz-border-radius: 16px; -webkit-border-radius: 16px; border: 1px solid #FFFFFF; padding: 4px;font-size: 1em;" >&nbsp; {TEXT} &nbsp;</div><img src="./images/think.gif"></td></tr></table>
    * note: save this image (http://startrekguide.com/community/images/think.gif) and upload it to your sites ./images/ direction *
    (from: http://startrekguide.com/community/v...hp?f=82&t=4490 )

    If you want more, or need more you can find them here:
    http://startrekguide.com/community/viewforum.php?f=82
    Yes! Cool thanks
    If I helped you, please rep me!
    -Fearghal

  5. #5
    alz4445 is offline x10 Sophmore alz4445 is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    124

    Re: Good custom BBCode resource?

    How about this? http://www.phpbb3bbcodes.com/ ;)


  6. #6
    xPlozion's Avatar
    xPlozion is offline x10 Elder xPlozion is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Delaware, USA
    Posts
    872

    Re: Good custom BBCode resource?

    well, if you know preg_replace, then you can make your own.
    PHP Code:
    function bbcode($message)
    {
        
    $bbcode = array(
            
    "/\[img\]http:\/\/(.*?).(gif|jpg|jpeg|png)\[\/img\]/i" => "<img src='http://\\1.\\2' alt='User Posted Image' />",
            
    "/\[img\](.*?).(gif|jpg|jpeg|png)\[\/img\]/i" => "<img src='http://\\1.\\2' alt='User Posted Image' />",
            
    "/\[i\](.*?)\[\/i\]/i" => "<i>\\1</i>",
            
    "/\[b\](.*?)\[\/b\]/i" => "<b>\\1</b>",
            
    "/\[u\](.*?)\[\/u\]/i" => "<span style='text-decoration:underline'>\\1</span>",
            
    "/\\n/i" => "<br />",
        );
        return 
    preg_replace(array_keys($bbcode), array_values($bbcode), $message);

    Last edited by xPlozion; 11-01-2008 at 11:14 AM.

+ Reply to Thread

Similar Threads

  1. Custom Userbars for credits!
    By DeadBattery in forum The Marketplace
    Replies: 3
    Last Post: 04-20-2008, 09:21 AM
  2. [PHP] BBCode
    By Synkc in forum Tutorials
    Replies: 5
    Last Post: 02-28-2008, 02:43 AM
  3. November Desktop
    By n4tec in forum Off Topic
    Replies: 12
    Last Post: 11-08-2005, 07:18 AM
  4. Is My Computer Good
    By Chirantha in forum Off Topic
    Replies: 27
    Last Post: 09-10-2005, 11:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers