Announcement

Collapse
No announcement yet.

i share my BB codes...

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

  • I was wondering how to show a BBCODE tag in a post without parsing it but I didn't find anything useful.
    I wrote this little custom BBCODE to handle this problem, and this could help you if you need to explain a BBCODE syntax to someone:

    Title: Showing a BBCODE
    Tag: SHOWBBCODE
    Replacement: &#91*{option}&#93*{param}&#91*&#47*{option}&#93* (you need to replace * with ; )
    Example: [SHOWBBCODE="B"]Bold text[/SHOWBBCODE]
    Description: Shows a BBCODE tag in a post without parsing it
    Use options: Yes

    I found this easy bbcode useful for my forum and I really hope this could be the same for you all!
    At now, I'm looking to find a way to separate the open tag from the close tag.
    If you'll find some bug or whatever else I'll be glad to read your replies

    P.S: each time you'll modify this BBCODE, you'll need to type again the code written in 'Replacement' because VBulletin will show it parsed
    Last edited by Freddie; Tue 28th Sep '04, 2:11pm.
    You and me - We are destined you'll agree
    To spend the rest of our lives with each other
    The rest of our days like two lovers
    For ever, yeah, for ever my Bijou

    Comment


    • You try showing the users misc.php?do=bbcode

      http://www.vbulletin.com/forum/misc.php?do=bbcode

      Comment


      • hmm.....I added the codes, all went well but when I type on the forum for example: [blur=4]this text is blurred[/blur] it just says: this text is blurred. Any reason why my bb codes wont work? I even tried the shadow one and nothing?

        Comment


        • Originally posted by muscle-mustangs
          hmm.....I added the codes, all went well but when I type on the forum for example: [blur=4]this text is blurred[/blur] it just says: this text is blurred. Any reason why my bb codes wont work? I even tried the shadow one and nothing?
          It's your browser.

          Blur/shadow/glow are HTML tags that are supported by IE only.

          Comment


          • Thanks this is a good thread *rates* its good that they are all html valid as well -thanks

            Comment


            • 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!!!

              Comment


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

                Comment


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

                  Comment


                  • 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

                    Comment


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

                      Comment


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

                        Comment


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

                          Comment


                          • 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!

                            Comment


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

                              Comment


                              • I think I came across a Google bbcode on some boards
                                Anyway has that ?
                                vbArticles.com, now open!
                                Content Management for vBulletin, made easy

                                Comment

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