Announcement

Collapse
No announcement yet.

i share my BB codes...

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

  • nathanaus
    replied
    Wow thank you so much. Much appreciated

    Leave a comment:


  • Webnower
    replied
    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 21st May '05, 10:42pm.

    Leave a comment:


  • nathanaus
    replied
    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

    Leave a comment:


  • aranthorn
    replied
    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

    Leave a comment:


  • Webnower
    replied
    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.

    Leave a comment:


  • cinq
    replied
    I think I came across a Google bbcode on some boards
    Anyway has that ?

    Leave a comment:


  • Tavernkeeper
    replied
    Since the spoiler tag on the previous page is unsafe, can anyone recommend a different one?

    Leave a comment:


  • Tavernkeeper
    replied
    Originally posted by Beermonster
    I like this thread, here's another one that will make your text change colour from right to left.

    VB Code Tag
    -------------
    neon

    Code:
    <h2>
    <script language="JavaScript1.2">
    /*
    Neon Lights Text
    By JavaScript Kit (http://javascriptkit.com)
    For this script, TOS, and 100s more DHTML scripts,
    Visit http://www.dynamicdrive.com
    */
    var message="{param}"
    var neonbasecolor="gray"
    var neontextcolor="yellow"
    var flashspeed=100  //in milliseconds
    ///No need to edit below this line/////
    var n=0
    if (document.all||document.getElementById){
    document.write('<font color="'+neonbasecolor+'">')
    for (m=0;m<message.length;m++)
    document.write('<span id="neonlight'+m+'">'+message.charAt(m)+'</span>')
    document.write('</font>')
    }
    else
    document.write(message)
    function crossref(number){
    var crossobj=document.all? eval("document.all.neonlight"+number) : document.getElementById("neonlight"+number)
    return crossobj
    }
    function neon(){
    //Change all letters to base color
    if (n==0){
    for (m=0;m<message.length;m++)
    //eval("document.all.neonlight"+m).style.color=neonbasecolor
    crossref(m).style.color=neonbasecolor
    }
    //cycle through and change individual letters to neon color
    crossref(n).style.color=neontextcolor
    if (n<message.length-1)
    n++
    else{
    n=0
    clearInterval(flashing)
    setTimeout("beginneon()",1500)
    return
    }
    }
    function beginneon(){
    if (document.all||document.getElementById)
    flashing=setInterval("neon()",flashspeed)
    }
    beginneon()
    
    </script>
    </h2>
    vB Code example
    ----------------------
    [neon]text[/neon]

    Use {option} ?
    ---------------------
    no

    That is great!

    Leave a comment:


  • Zachery
    replied
    1 WARNING THIS CODE CAN CRASH YOUR SITE AND STEAL YOUR USERS COOKIES IF ABUSED I WOULD NOT USE IT!

    You cannot set hight and width, you are limited to two varibles {param} and option

    use

    <embed src={param} width=400 height=300 type=application/x-shockwave-flash></embed>

    Instead.

    Leave a comment:


  • nubian
    replied
    can someone please explain this the inframe bbcode?
    it's seems a bit strange on how to set up an iframe window




    • title = Iframe
    • tag = inwindow
    • replacement = <div align=center><iframe name="cwindow" style="border:0" width=500 height={option} src="http://{param}"></iframe>
    • example = [inwindow=300]http://www.your_website_url.com[/inwindow]
    • description = Insert Iframe
    • use option = yes
    is this correct?
    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
    Last edited by nubian; Wed 1st Dec '04, 6:09pm.

    Leave a comment:


  • Michael Morris
    replied
    Originally posted by jumpD
    You most likely could if you hard coded it in includes/functions_bbcodeparse.php
    Possible yes. I still would rather have the ability to use conditionals in any bbcode I create rather than having to hack functions_bbcodeparse. I haven't investigated doing this - it may be simply a matter of evaluating the bbcode insertion before passing it back out.

    Leave a comment:


  • jumpD
    replied
    Originally posted by Michael Morris
    Someone else caught it, but it bears repeating...

    Filters are Micro$oft proprietary tags. They only work on IE. Firefox, Netscape & Safari (I think) use moz tags, but not all the tricks you can play with IE are possible with those tags.

    Be aware of this when installing these tags and if you have a large user base make sure they understand it to.

    It would be nice to be able to set up a conditional to alternate between methods as necessary, but condtionals can't be put in bbcodes (yet - I'd like to find a hack to allow it). Hence...

    <if condition="is_browser=='IE'">
    Code for the IE method
    <else />
    Shoot the code for mozilla and pray.
    </if>
    You most likely could if you hard coded it in includes/functions_bbcodeparse.php

    Leave a comment:


  • Michael Morris
    replied
    Ah, Just when I was about to reach the thread someone else caught it...

    Someone else caught it, but it bears repeating...

    Filters are Micro$oft proprietary tags. They only work on IE. Firefox, Netscape & Safari (I think) use moz tags, but not all the tricks you can play with IE are possible with those tags.

    Be aware of this when installing these tags and if you have a large user base make sure they understand it to.

    It would be nice to be able to set up a conditional to alternate between methods as necessary, but condtionals can't be put in bbcodes (yet - I'd like to find a hack to allow it). Hence...

    <if condition="is_browser=='IE'">
    Code for the IE method
    <else />
    Shoot the code for mozilla and pray.
    </if>

    Leave a comment:


  • TruthElixirX
    replied
    THanks guys. My forum is just getting started and I was having lots of toruble tracknig down some good HTML to convert to bb codes. but this works beautifully. Thanks to eveyone who contributed.

    Leave a comment:


  • mentalrz
    replied
    the iframe code, i want it so only an admin or mod can use it ..

    How do i do this


    cos if sum noob puts this onto a thread witht housands of cookies or whatever....

    DOH!!!

    Leave a comment:

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