Announcement

Collapse
No announcement yet.

i share my BB codes...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hey guys.

    A couple people here were wondering how to do the spoiler tags where it reveals itself with just a mouseover, so here it is. I hope this hasn't been posted already.

    In your main CSS, add the following to your "Additional CSS Definitions":
    Code:
    .spoiler { COLOR: #000000; BACKGROUND-COLOR: #000000 }
    In your BB Code Manager, input the following:

    Title:
    Spoiler Tags

    Tag:
    spoiler

    Replacement:
    Code:
    <span class="spoiler" onmouseover="this.style.color='#FFFFFF';" onmouseout="this.style.color=this.style.backgroundColor='#000000'">{param}</span>
    Example:
    [spoiler]TheHeggy likes cheese[/spoiler]

    Description:
    This tag will black out the text between the code, and make it visible only when you move your mouse over it.

    Comment


    • wrap tags vbcode

      I did not write these, but I couldn't find them on here anywhere, so I'm adding them to the collection. They were posted on vbadvanced.com for public view.
      Originally posted by ZnARk from vBadvanced.com
      This prolly have been done before but here is how I added a custom BB code that will wrap text around a picture.
      Might be useful in news forum etc

      Title:
      Wrap text around image

      Tag:
      wrap

      Replacement:
      HTML Code:
      <table border="0" align="left" valign="top">
      <tr>
      <td><img src="{param}" border="0" align="left"></td>
      </tr>
      </table>
      Example:
      [wrap]imgurl[/wrap]

      Description:
      This will wrap text around a picture of your choice. Just add the url to the img you wish to use.

      Use {option}:
      No
      This method requires no code changes and allows you to specify the alignment (left, right, top, or bottom):
      Originally posted by KW802 from Vbadvanced.com
      Title:
      Image with alignment

      Tag:
      img2

      Replacement:
      HTML Code:
      <img src="{param}" align="{option}" border="0" hspace="6" vspace="3" alt=""/>
      Example:
      [img2=right]URL of image[/img]

      Description:
      This tag allows you to align an image to the right of left of your text.

      Use {option}:
      Yes
      Call no man happy until he is dead - Voltaire

      Comment


      • Am I allowed to request a BB code here?

        Sitepoint has a fantastic off-topic code they use. You type in [ ot] [ /ot] and you get a completely different look and feel to the generated box.

        An example of it can be found here: http://www.sitepoint.com/forums/show...22&postcount=1

        Anyone know how that was done? Much appreciated

        Comment


        • Here ya go. I just cannibalized Floris's Partner Box code and came up with this. Looks almost exactly the same as what you linked to.

          Code:
          Title: Off Topic
          
          Tag: offtopic
           
          Replacement:
          <table class="tborder" cellpadding="4" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
          <tr><td class="alt1">
          <div class="smallfont">
          <div class="time"><strong>Off Topic:</strong></div><br />
          {param}
          </div>
          </td></tr></table><br />
           
          Example:
          [offtopic]Hello![/offtopic]
           
          Description:
          Off topic box.
          A attatched a screenshot as well. Hope this helps.
          Last edited by Webnower; Sat 21 May '05, 10:42pm.

          Comment


          • Wow thank you so much. Much appreciated

            Comment


            • Edit box

              I am using this for an EDIT box, primarily for commenting changes made after the original post, whether made by the OP or a moderator/admin:

              Title: Edit Box

              Tag: edit

              Replacement:
              Code:
              <div style="padding:$stylevar[cellpadding]px">
              <fieldset class="fieldset">
              <legend style="font-size: 11px;">EDIT</legend>
              <br />
              	{param}
              </fieldset>
              </div>
              Use {option}: No

              I would appreciate very much if someone could tell me how to make the box outline and the text of the edit red.

              Thank you.
              Attached Files
              Last edited by eJM; Thu 20 Jan '05, 2:29am.
              If my post was helpful to you, please take the time to register at my forum and ask a question you've always wanted to know about floors.
              www.TheFloorPro.com

              Comment


              • Thank you ozone2000 for sharing your BB codes with us!!! And thank you to everyone else who shared them too!!!

                Comment


                • Just wanted to Thank everyone here that has gave there input on this topic. I am new to working with my forums. And this topic help me learn alot more about the codes. I would like to add music to my forums. I like the mid code that Ozone2000 shared, How would I use that in a forum template or table. And what table would I place it in. Thanks to everyone. Chain

                  Comment


                  • There is an Iframe code listed right? I thouht I'd let everyone know this has a security hole in it. If somenoe sticks this in a thread and links it to the log out page it will kick you out. Happened at some forums I frequent. I'd suggest getting rid of it before someone puts it in there sig.

                    Comment


                    • Originally posted by nubian
                      also the same with my flash swf bbcode
                      • title = Flash
                      • tag = swf
                      • replacement = <embed src={option} width=400 height=300 type=application/x-shockwave-flash></embed>
                      • example = [swf=http://yourdomain.com/test.swf][/swf]
                      • description = Macromedia Flash
                      • use option = yes
                      how can i set up this flash bbcode so that i have options for the url = xxx height = xxx weight = xxx ?

                      i have vb 3.0.3 and very new to bbcode
                      any help on how to achieve this will be greatly appreciated.
                      thanks in advance

                      I tried this and it didnt work.. I get an image holder and the site doesnt stop loading...

                      Can anyone give me a good example of one that works? Seems alot of them out there but I'm not sure which works and doesn't.

                      Thanks again,
                      Eroc

                      Comment


                      • Originally posted by Erwin
                        Code:
                        <input type="button" value="{option}" name="B1" onClick="alert('{param}')">
                        Do NOT install this bbcode. Or anything that allows members to input information into an input variable like that.

                        <snip>

                        Basically, allowing a member to input stuff using an input variable is not a good idea, as it brings up a XSS security vulnerability.
                        Is it the value=option that's the culprit or the alert(param)?

                        Comment


                        • Hello,

                          Are Ozone's Custom BBcodes validin VB3.0.7 ?

                          It was written 2001 !!! WOW

                          I was happy with them and just want to use them, but I have a lettle question :

                          What if I change these Custom BBcodes later on, will they be parsed correctly ?

                          for example :

                          instead of :
                          Code:
                          [glow=red]some text[/glow]
                          I use :
                          Code:
                           [strongglow=red]some text[/strongglow]
                          knowing that these both use the same HTML tags .

                          thanks in advance,,
                          http://www.al-jarodiah.com/vb/
                          Arabic Village Social forums

                          Comment


                          • I am making an updated thread that is easier for people to find BBcodes they want. I am also adding some codes of my own to it.
                            Help Threads: BBcodes

                            My Sites: Wrestling-Dungeon | Immortal Wrestling

                            Comment


                            • Wow great custom bb codes everyone one!

                              Comment


                              • screenshots not showing

                                Comment

                                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                                Working...
                                X