Custom BB Codes

Discussion in 'Community Forum Software' started by Nick, May 29, 2009.

  1. Nick

    Nick Regular Member

    Joined:
    Jul 27, 2008
    Messages:
    7,441
    Likes Received:
    218
    What are some of the custom BB codes you add to your forum (e.g. spoiler, strike through, etc.)?
     
  2. Tyler

    Tyler The Badministrator

    Joined:
    Dec 23, 2007
    Messages:
    3,079
    Likes Received:
    63
    Location:
    Long Island, NY
    First Name:
    Tyler
    I've used both spoiler and strike-thru. I've also experimented with YouTube embedding.
     
  3. ArnyVee

    ArnyVee Regular Member

    Joined:
    May 25, 2009
    Messages:
    1,264
    Likes Received:
    39
    I haven't had any custom BB code added. What are the most common and most useful?
     
  4. Nick

    Nick Regular Member

    Joined:
    Jul 27, 2008
    Messages:
    7,441
    Likes Received:
    218
    That's my question. :lol:
     
  5. ArnyVee

    ArnyVee Regular Member

    Joined:
    May 25, 2009
    Messages:
    1,264
    Likes Received:
    39
    Actually Nicholas, your question was....

    "What are some of the custom BB codes you add to your forum (e.g. spoiler, strike through, etc.)?"

    ....therefore, you are asking which ones someone has added to their forum. I'm asking which ones are the most useful and most common. Two different questions! :D
     
  6. Nick

    Nick Regular Member

    Joined:
    Jul 27, 2008
    Messages:
    7,441
    Likes Received:
    218
    Well your question is the one I meant. Arnold. ;)
     
  7. ArnyVee

    ArnyVee Regular Member

    Joined:
    May 25, 2009
    Messages:
    1,264
    Likes Received:
    39
  8. plazzman

    plazzman Adept

    Joined:
    May 17, 2009
    Messages:
    180
    Likes Received:
    6
    Youtube
    Dailymotion
    Justin.tv
    Megavideo
    spoil/expand
    Admin/Mod notice
    Shoutbox
    Ustream.tv
    AME

    and some more I think
     
  9. ArnyVee

    ArnyVee Regular Member

    Joined:
    May 25, 2009
    Messages:
    1,264
    Likes Received:
    39
    Nick, which one is the 'hide/show' mod you are using here on the site?
     
  10. Nick

    Nick Regular Member

    Joined:
    Jul 27, 2008
    Messages:
    7,441
    Likes Received:
    218
    Here's the replacement:
    Code:
    <div style="margin:20px; margin-top:5px"><div class="quotetitle"><input class="button2 btnlite" type="button" value="Show" style="text-align:center;width:100px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';      this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }" /></div><div class="quotecontent"><div style="display: none;">{param}</div></div></div>
     
  11. ArnyVee

    ArnyVee Regular Member

    Joined:
    May 25, 2009
    Messages:
    1,264
    Likes Received:
    39
    I've never used any of these custom bb codes...what do I do with that replacement code? :)
     
  12. Nick

    Nick Regular Member

    Joined:
    Jul 27, 2008
    Messages:
    7,441
    Likes Received:
    218
    :lol: Sorry, my bad.

    AdminCP -> Custom BB Codes -> Add New BB Code

    Title: Expand
    BB Code Tag Name: expand
    Replacement: (Code above)
    [noparse]Example: [expand]text to expand here[/expand][/noparse]
    Description: Expand and collapse content within posts.
    Use Option: No
    - The rest of the options can be configured as you wish.
     
  13. Wayne Luke

    Wayne Luke Regular Member

    Joined:
    Apr 2, 2009
    Messages:
    991
    Likes Received:
    276
    Strike-through, superscript, subscript. Are really the only general purpose ones that most sites need. Maybe horizontal rule but it tends to be abused.

    Others include things like cite, footnote, abbreviation, anchor, target, address, insert could come in handy depending on what you are doing.

    Anchor and target bbcodes are especially handy because if you create long articles in your forums, you can use them to create a table of contents similar to wikis. Cite and footnote can be used in technical documents. The others should be fairly self-explanatory.

    You could add individual BBCodes for different video sites but that is a pain to manage and a pain for your user's to get right. Just better to use a tool like AME to parse the URLs as they are found instead of standard BBCodes.
     
  14. Peggy

    Peggy Regular Member

    Joined:
    May 18, 2009
    Messages:
    1,641
    Likes Received:
    58
    I always install the /me mod. love it.
     
  15. ArnyVee

    ArnyVee Regular Member

    Joined:
    May 25, 2009
    Messages:
    1,264
    Likes Received:
    39
    Nick, I must've missed something. I got this error message....

    Code:
    [B]Fatal error[/B]: Cannot redeclare handle_bbcode_video() (previously declared in /home/avarona/domains/waltdisneyboards.com/public_html/includes/class_bbcode.php(2430) : eval()'d code:24) in [B]/home/avarona/domains/waltdisneyboards.com/public_html/includes/class_bbcode.php(2430) : eval()'d code[/B] on line [B]53[/B]
    Do the folks enjoy this one Peggy? I've used it in chat rooms, but never on the forums out there :)
     
  16. Peggy

    Peggy Regular Member

    Joined:
    May 18, 2009
    Messages:
    1,641
    Likes Received:
    58
    oh yeah, they sure do.
     
  17. ArnyVee

    ArnyVee Regular Member

    Joined:
    May 25, 2009
    Messages:
    1,264
    Likes Received:
    39
    Nick, I'm getting that error, any suggestions on what I could/should do to fix it?
     
  18. Nick

    Nick Regular Member

    Joined:
    Jul 27, 2008
    Messages:
    7,441
    Likes Received:
    218
    That's odd... It's working perfectly fine for me here. I'll have to look in to it. In the meantime, you might find a different spoiler BB code on the org.
     
  19. ArnyVee

    ArnyVee Regular Member

    Joined:
    May 25, 2009
    Messages:
    1,264
    Likes Received:
    39
    It's no rush. I was just kinda testin' it out on the site to see if we wanted to do some sort of trivia thing or something fun with it. So, I'll try it out later with one of the ones on the org.
     
  20. John

    John Regular Member

    Joined:
    May 23, 2009
    Messages:
    757
    Likes Received:
    87
    Location:
    Tennessee
    It feels like I am always repeating myself but once again it really depends on what forum it is but most I atleast the spoiler tag or sometimes hide/show tag but thats the same thing. Don't really have any other exept maybe some fun bbcodes that I create myself.
     

Share This Page