Results 1 to 14 of 14

Thread: Custom BBCode and Requests

  1. #1
    Beloved Officer
    Administrator
    Kodoir's Avatar
    Join Date
    Dec 2005
    Location
    In your dreams, loving you for a very short time.
    Posts
    6,715
    Blog Entries
    1

    Custom BBCode and Requests

    With the new upgrade, adding new BBCode is very simple. If you have any specific requests for some BBCode Functionality, please post them here and I will go through them on a case-by-case basis. I did add spoiler tags today though as a test, so you can start using those where needed if you would like.


    Custom BBCode Tags:

    Spoiler:
    • Code:
      [spoiler]This is spoiler text.[/spoiler]
      [spoiler:2zgbamqz]This is spoiler text.[/spoiler:2zgbamqz]


    World of Warcraft:
    • [wowitem=17182:2zgbamqz]Sulfuras, Hand of Ragnaros[/wowitem:2zgbamqz]

      Code:
      [wowspell=33996]Enchant Gloves - Assault[/wowspell]
      [wowspell=33996:2zgbamqz]Enchant Gloves - Assault[/wowspell:2zgbamqz]

      Code:
      [wowclass={CLASS_NAME}]{TEXT}[/wowclass]
      CLASS_NAME values: mage, shaman, dk, paladin, warrior, warlock, hunter, druid, rogue
      [wowclass=mage]Mages[/wowclass]
      [wowclass=mage:2zgbamqz]Mages[/wowclass:2zgbamqz]


    Diablo III:
    • Code:
      [d3item={URL},{INTTEXT}]{TEXT}[/d3item]
      ITEM_NUMBER values: Item number from http://d3db.com/
      QUALITY values: 2 = Magic (Blue), 3 = Rare (Yellow), 4 = Legendary (Orange)
      [d3item=http://us.battle.net/d3/en/artisan/blacksmith/recipe/adept-gothic-shield,2]Adept Gothic Shield[/d3item]
      [d3item=http://us.battle.net/d3/en/artisan/blacksmith/recipe/adept-gothic-shield,2:2zgbamqz]Adept Gothic Shield[/d3item:2zgbamqz]

      Code:
      [d3qual={QUAL}]{TEXT}[/d3qual]
      QUALITY values: 2 = Magic (Blue), 3 = Rare (Yellow), 4 = Legendary (Orange)
      This is used when you aren't linking to an item, but want to use the color.
      [d3qual=2:2zgbamqz]Adept Gothic Shield[/d3qual:2zgbamqz]

      Code:
      [d3_acct]{TEXT}[/d3_acct]
      TEXT value = Forum name
      [d3_acct:2zgbamqz]Kodoir[/d3_acct:2zgbamqz]

      Code:
      [d3_toon]{TEXT}[/d3_toon]
      TEXT value = Diablo Character name
      [d3_toon:2zgbamqz]Borq[/d3_toon:2zgbamqz]


    Strike:
    • Code:
      [strike]Strike this Text.[/strike]
      [strike:2zgbamqz]Strike this Text.[/strike:2zgbamqz]


    Events:
    • Code:
      [event=9/28/2008]Forum Upgrade[/event]
      [event=9/28/2008:2zgbamqz]Forum Upgrade[/event:2zgbamqz]


    Tables:
    • Code:
      Table header 1 Table cell 1 Table cell 2 Table cell 3
      Table header 2 Table cell 5
      [table:2zgbamqz][tr:2zgbamqz][thmulti=4:2zgbamqz]Table example[/thmulti:2zgbamqz][/tr:2zgbamqz][tr:2zgbamqz][th:2zgbamqz]Table header 1[/th:2zgbamqz][td:2zgbamqz]Table cell 1[/td:2zgbamqz][td:2zgbamqz]Table cell 2[/td:2zgbamqz][td:2zgbamqz]Table cell 3[/td:2zgbamqz][/tr:2zgbamqz][tr:2zgbamqz][th:2zgbamqz]Table header 2[/th:2zgbamqz][tdmulti=2:2zgbamqz]Table cell 4[/tdmulti:2zgbamqz][td:2zgbamqz]Table cell 5[/td:2zgbamqz][/tr:2zgbamqz][/table:2zgbamqz]


    Alignment:
    • Code:
      [align={ALIGNMENT}]{TEXT}[/align]
      ALIGNMENT value: left, center, right, top
      [align=center]Simple Text[/align]
      Simple Text


    Youtube Embedding:
    • Code:
      [youtube]{TEXT}[/youtube]
      TEXT Value: Youtube video ID only.
      [youtube]dQw4w9WgXcQ[/youtube]
      [youtube:2zgbamqz]dQw4w9WgXcQ[/youtube:2zgbamqz]


    Star Wars - The Old Republic:
    • Ability: Power Surge

      [code:2zgbamqz]Ability: Power Surge : http://www.torhead.com/ability/gv0OaFW[/code]
      Ability: Power Surge : http://www.torhead.com/ability/gv0OaFW

      For the item shortcut, you can also color the item, using a quality code. The code goes from 1-6.
      1 = No Color Change, 2 = Green, 3 = Blue, 4 = Purple, 5 = Orange, 6 = Gold.
      Code:
      [toritem=43hbBmo,1]Advanced Power Implant Module[/toritem]
      [toritem=2xlaTzY,2]Aptitude Mod 25[/toritem]
      [toritem=8CM3lIY,3]Absorb Augment 25[/toritem]
      [toritem=DQAEoU,4]Ace in the Hole[/toritem]
      [toritem=ace+in+the+hole,4]Ace in the Hole[/toritem]
      [toritem=1zPrntT,5]Modified DTB-27 Bolt Pistol[/toritem]
      [toritem=fOgqTQo,6]Arkanian Hyperdrive[/toritem]
      [toritem=43hbBmo,1:2zgbamqz]Advanced Power Implant Module[/toritem:2zgbamqz]
      [toritem=2xlaTzY,2:2zgbamqz]Aptitude Mod 25[/toritem:2zgbamqz]
      [toritem=8CM3lIY,3:2zgbamqz]Absorb Augment 25[/toritem:2zgbamqz]
      [toritem=DQAEoU,4:2zgbamqz]Ace in the Hole[/toritem:2zgbamqz]
      [toritem=ace+in+the+hole,4:2zgbamqz]Ace in the Hole[/toritem:2zgbamqz]
      [toritem=1zPrntT,5:2zgbamqz]Modified DTB-27 Bolt Pistol[/toritem:2zgbamqz]
      [toritem=fOgqTQo,6:2zgbamqz]Arkanian Hyperdrive[/toritem:2zgbamqz]
    Xia: As much as I hate you, I would never do a Brutus to your Caesar
    Nirrudn: Also I think it's Eeyore, but don't quote me

  2. #2
    Beloved Officer
    Administrator
    Kodoir's Avatar
    Join Date
    Dec 2005
    Location
    In your dreams, loving you for a very short time.
    Posts
    6,715
    Blog Entries
    1

    Re: BBCode Requests

    Added two WoW specific BBCode Tags that allow for mouseovers on items. If you mouseover the item, you get a mouseover pulled directly from wowhead.

    To use, you just do either wowitem or wowspell and set it equal to the item number. You can find item numbers from any of your normal WoW Databases you use.

    [wowitem=17182:3i82rxna]Sulfuras, Hand of Ragnaros[/wowitem:3i82rxna]

    Code:
    [wowspell=33996]Enchant Gloves - Assult[/wowspell]
    [wowspell=33996:3i82rxna]Enchant Gloves - Assult[/wowspell:3i82rxna]
    Xia: As much as I hate you, I would never do a Brutus to your Caesar
    Nirrudn: Also I think it's Eeyore, but don't quote me

  3. #3

    Re: BBCode Requests

    A lot of old posts and a lot of sigs used html img tags, instead of bbcode. I understand why they were disabled-- allowing html lets open the possibility of cross-site scripting attacks. But you think there might be a safe way to let in just img html tags?
    GoatRider- lvl 100 Night Elf Rogue Jewelcrafter/Engineer
    Kemps- lvl 100 Tauren Feral Druid Miner/Engineer
    Cattrina- lvl 85 Night Elf Druid (feral bear/cat) miner/alchemist
    LoweRider- lvl 35 Gnome Mage/Tailor/Enchanter/Auctioneer

  4. #4
    Beloved Officer
    Administrator
    Kodoir's Avatar
    Join Date
    Dec 2005
    Location
    In your dreams, loving you for a very short time.
    Posts
    6,715
    Blog Entries
    1

    Re: BBCode Requests

    Quote Originally Posted by goatrider
    A lot of old posts and a lot of sigs used html img tags, instead of bbcode. I understand why they were disabled-- allowing html lets open the possibility of cross-site scripting attacks. But you think there might be a safe way to let in just img html tags?
    We didn't "turn off" HTML. It isn't allowed in PHPBB3. All image tags though should work fine for peoples sigs. I have already fixed a bunch of peoples broken sigs and they render fine using IMG instead of the html standard.
    Xia: As much as I hate you, I would never do a Brutus to your Caesar
    Nirrudn: Also I think it's Eeyore, but don't quote me

  5. #5
    Beloved Officer
    Administrator
    Kodoir's Avatar
    Join Date
    Dec 2005
    Location
    In your dreams, loving you for a very short time.
    Posts
    6,715
    Blog Entries
    1

    Re: BBCode Requests

    Added table tags. Play with it and see what needs to be changed. By default it will be border-less.

    Code:
    Table header 1 Table cell 1 Table cell 2 Table cell 3
    Table header 2 Table cell 5
    [table:zpl25kez][tr:zpl25kez][thmulti=4:zpl25kez]Table example[/thmulti:zpl25kez][/tr:zpl25kez][tr:zpl25kez][th:zpl25kez]Table header 1[/th:zpl25kez][td:zpl25kez]Table cell 1[/td:zpl25kez][td:zpl25kez]Table cell 2[/td:zpl25kez][td:zpl25kez]Table cell 3[/td:zpl25kez][/tr:zpl25kez][tr:zpl25kez][th:zpl25kez]Table header 2[/th:zpl25kez][tdmulti=2:zpl25kez]Table cell 4[/tdmulti:zpl25kez][td:zpl25kez]Table cell 5[/td:zpl25kez][/tr:zpl25kez][/table:zpl25kez]
    Xia: As much as I hate you, I would never do a Brutus to your Caesar
    Nirrudn: Also I think it's Eeyore, but don't quote me

  6. #6

    Re: BBCode Requests

    Kodoir,

    Is there a way to put borders around your tables? I know in HTML there is but not sure about BBC code.
    Moridia

    Level 70 Holy Paladin at your service.

  7. #7
    Former Knight Friend Dragoness's Avatar
    Join Date
    Nov 2004
    Location
    Livermore, California
    Posts
    5,334

    Re: BBCode Requests

    Hmm, how about a BBCode equivalent of the
    tag? When you're back and have time of course.

    Good to see thumbnails are already getting good use.
    ~Dragoness

    Now Playing // WoW
    Draconia :: Draenei Priestess of Shifting Light
    Zaelashee :: Night Elf Huntress of the Stalking Beast
    Rilrae :: Night Elf Warrior Tank of Much Mischief! (retired)


    :: my art on deviantArt :: Avatar by Brianne Goetz

  8. #8
    Knight Nacklebert's Avatar
    Join Date
    Dec 2003
    Location
    NorCal (Bay Area / East Bay)
    Posts
    3,790

    Re: BBCode Requests

    You take my preferred method for a spoiler (hide/unhide button) and use it to collapse really long text, posts, replies, or articles. So its not just for spoilers anymore. How about a [collapse] code?

    oh, its there a [tab] for first line indents?

  9. #9
    Beloved Officer
    Administrator
    Kodoir's Avatar
    Join Date
    Dec 2005
    Location
    In your dreams, loving you for a very short time.
    Posts
    6,715
    Blog Entries
    1

    Re: BBCode Requests

    Added 3 new BBCodes

    Code:
    [wowclass={CLASS_NAME}]{TEXT}[/wowclass]
    CLASS_NAME values: mage, shaman, dk, paladin, warrior, warlock, hunter, druid, rogue
    [wowclass=mage]Mages[/wowclass]
    [wowclass=mageokciyax]Mages[/wowclassokciyax]

    Code:
    [d3item={ITEM_NUMBER},{QUALITY}]{TEXT}[/d3item]
    ITEM_NUMBER values: Item number from http://d3db.com/
    QUALITY values: 2 = Magic (Blue), 3 = Rare (Yellow), 4 = Legendary (Orange)
    [d3item=2203,2]Adept Gothic Shield[/d3item]
    [d3item=2203,2okciyax]Adept Gothic Shield[/d3itemokciyax]

    Code:
    [d3qual={QUAL}]{TEXT}[/d3qual]
    QUALITY values: 2 = Magic (Blue), 3 = Rare (Yellow), 4 = Legendary (Orange)
    This is used when you aren't linking to an item, but want to use the color.
    [d3qual=2okciyax]Adept Gothic Shield[/d3qualokciyax]
    Xia: As much as I hate you, I would never do a Brutus to your Caesar
    Nirrudn: Also I think it's Eeyore, but don't quote me

  10. #10
    Beloved Officer
    Administrator
    Kodoir's Avatar
    Join Date
    Dec 2005
    Location
    In your dreams, loving you for a very short time.
    Posts
    6,715
    Blog Entries
    1

    Re: BBCode Requests

    Added Youtube video embedding:

    Code:
    [youtube]{TEXT}[/youtube]
    TEXT Value: Youtube video ID only.
    [youtube]dQw4w9WgXcQ[/youtube]
    [youtube:3j56uonv]dQw4w9WgXcQ[/youtube:3j56uonv]
    Xia: As much as I hate you, I would never do a Brutus to your Caesar
    Nirrudn: Also I think it's Eeyore, but don't quote me

  11. #11
    Knight Rahvyn's Avatar
    Join Date
    Oct 2001
    Location
    Dallas, Texas, United States
    Posts
    2,895

    Re: BBCode Requests

    BWAHAHAHAHA New question for the Trivial Pursuit: SOK edition "What was the first Youtube video to be embedded on the SOK forums?"
    In loving memory
    Bonnie Caldwell
    1926-2008

  12. #12
    Leader Eggy's Avatar
    Join Date
    May 2001
    Location
    Seattle, Washington, United States
    Posts
    5,543
    Blog Entries
    2

    Re: BBCode Requests

    What about

    Code:
    [youporn]{TEXT}[/youporn]
    TEXT Value: Youporn video ID only.
    [youporn]dQw4w9WgXcQ[/youporn]
    For ThornyKevin

  13. #13
    Beloved Officer
    Administrator
    Kodoir's Avatar
    Join Date
    Dec 2005
    Location
    In your dreams, loving you for a very short time.
    Posts
    6,715
    Blog Entries
    1

    Re: Cutsom BBCode and Requests

    Torhead is Wowhead's sister site, and as we used wowhead tooltips, I implemented Star Wars tooltips. (Note: The tooltip might take a couple second to pop up as the script is new and there isn't much cached yet.)

    You can either link directly to something on the site, or use a the custom BBCode shortcut for items:

    Ability: Power Surge

    [code:18rknogp]Ability: Power Surge : http://www.torhead.com/ability/gv0OaFW[/code]
    Ability: Power Surge : http://www.torhead.com/ability/gv0OaFW

    For the item shortcut, you can also color the item, using a quality code. The code goes from 1-6.
    1 = No Color Change, 2 = Green, 3 = Blue, 4 = Purple, 5 = Orange, 6 = Gold.
    Code:
    [toritem=43hbBmo,1]Advanced Power Implant Module[/toritem]
    [toritem=2xlaTzY,2]Aptitude Mod 25[/toritem]
    [toritem=8CM3lIY,3]Absorb Augment 25[/toritem]
    [toritem=DQAEoU,4]Ace in the Hole[/toritem]
    [toritem=ace+in+the+hole,4]Ace in the Hole[/toritem]
    [toritem=1zPrntT,5]Modified DTB-27 Bolt Pistol[/toritem]
    [toritem=fOgqTQo,6]Arkanian Hyperdrive[/toritem]
    [toritem=43hbBmo,1:18rknogp]Advanced Power Implant Module[/toritem:18rknogp]
    [toritem=2xlaTzY,2:18rknogp]Aptitude Mod 25[/toritem:18rknogp]
    [toritem=8CM3lIY,3:18rknogp]Absorb Augment 25[/toritem:18rknogp]
    [toritem=DQAEoU,4:18rknogp]Ace in the Hole[/toritem:18rknogp]
    [toritem=ace+in+the+hole,4:18rknogp]Ace in the Hole[/toritem:18rknogp]
    [toritem=1zPrntT,5:18rknogp]Modified DTB-27 Bolt Pistol[/toritem:18rknogp]
    [toritem=fOgqTQo,6:18rknogp]Arkanian Hyperdrive[/toritem:18rknogp]
    Xia: As much as I hate you, I would never do a Brutus to your Caesar
    Nirrudn: Also I think it's Eeyore, but don't quote me

  14. #14
    Beloved Officer
    Administrator
    Kodoir's Avatar
    Join Date
    Dec 2005
    Location
    In your dreams, loving you for a very short time.
    Posts
    6,715
    Blog Entries
    1

    Re: Custom BBCode and Requests

    Added BBCode to display Diablo 3 BattleTag Account info, as well as Diablo 3 Character info. The first post has been updated, but more details in the following post:

    http://www.sok.org/board/viewtopic.php?f=9&t=59127
    Xia: As much as I hate you, I would never do a Brutus to your Caesar
    Nirrudn: Also I think it's Eeyore, but don't quote me

Posting Permissions

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