Custom BBCodes [Deprecated]

Get help developing custom BBCodes or request one.
jvincent08
Registered User
Posts: 12
Joined: Thu Oct 09, 2008 9:45 pm

Re: Custom BBCodes

Post by jvincent08 »

Apologies in advance if this has been requested before, but is it possible to disable parsing of bbcodes within a certain bbcode tag? For example:
[bbcode]this area of text won't be parsed as bbcode, so i can type something like asfsf and the brackets will appear as literal brackets[/bbcode]

I thought maybe you could use Javascript to iterate through each character and test if its a bracket, but I don't know the language very well. Any ideas?
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52169
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Custom BBCodes

Post by Brf »

That is what

Code: Select all

 tags are for.
zoetrope
Registered User
Posts: 67
Joined: Tue Dec 31, 2002 4:57 pm

Re: Custom BBCodes

Post by zoetrope »

code to open a link in a new window (rather than the current window):

Code: Select all

[urlx={URL}]{TEXT}[/urlx]

Code: Select all

<a href="{URL}" target="_blank">{TEXT}</a>
Help line:

Code: Select all

The URL will open in a new window. [urlx=http://alleymagic.com]magic tricks[/urlx]
williamcaracas
Registered User
Posts: 2
Joined: Thu Oct 30, 2008 8:09 pm

Re: Custom BBCodes

Post by williamcaracas »

please any help with this bbcode
<embed src="http://www.xatech.com/web_gear/chat/chat.swf" quality="high" bgcolor="#000000" width="540" height="405" name="chat" FlashVars="id=42497944" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://xat.com/update_flash.shtml" /><br><small><a target="_BLANK" href="http://xat.com/web_gear/?cb">Get your own Chat Box!</a> <a target="_BLANK" href="http://xat.com/web_gear/chat/go_large.p ... 497944">Go Large!</a></small><br><img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/IMP/ ... AwNQ==.gif" />
is a chat!
PCTalk
Registered User
Posts: 259
Joined: Mon Jul 29, 2002 5:17 pm
Location: MD, USA
Contact:

Re: Custom BBCodes

Post by PCTalk »

williamcaracas wrote:please any help with this bbcode
... Get your own Chat Box!
Why do you need to advertise on your own site?
williamcaracas wrote:
is a chat!
What's all that garbage at the end of the src statement? Looks like either an affiliate code, a compressed image, or compressed, embedded hex code.

Sorry, I don't know enough to be able to help but I do know enough to know that I don't want to run your code until someone who does know what they are doing has a chance to look at it.
Visit PCTalk.info to see my teaching website.
Wildtangent has closed their forum. See my member created substitute at Wildtangent Fansite.
Support Request Template - Knowledge Base
User avatar
Celtic Minstrel
Registered User
Posts: 40
Joined: Mon Oct 06, 2008 1:31 am

Re: Custom BBCodes

Post by Celtic Minstrel »

Why on earth would you want to embed a chat into a post, anyway?
User avatar
OniTenshu
Registered User
Posts: 22
Joined: Thu Oct 23, 2008 7:27 pm
Location: Beverly
Contact:

Re: Custom BBCodes

Post by OniTenshu »

because some people enjoy just being able to do things they normally wouldn't be able to do. that and it would allow every person to have their own personal chat box for every topic/post and that is something that really draws you in even if it's completely out of curiosity or even for a prank.
User avatar
Celtic Minstrel
Registered User
Posts: 40
Joined: Mon Oct 06, 2008 1:31 am

Re: Custom BBCodes

Post by Celtic Minstrel »

I sense sarcasm...
User avatar
OniTenshu
Registered User
Posts: 22
Joined: Thu Oct 23, 2008 7:27 pm
Location: Beverly
Contact:

Re: Custom BBCodes

Post by OniTenshu »

a little bit but they are the main reasons why people would want one
StephenRKelly
Registered User
Posts: 1
Joined: Fri Oct 31, 2008 11:06 pm

Re: Custom BBCodes

Post by StephenRKelly »

I am needing assistance with creating a BBCode for videos of game highlights from NHL website, such as the one here:

http://stars.nhl.tv/team/console.jsp?hlg=20082009,2,134

I am a total noob at this stuff, and know nothing about codes/coding. Can anyone PLEASE help me out?


--- Stephen!
catcher
Registered User
Posts: 1
Joined: Sat Nov 01, 2008 3:45 pm

Re: Custom BBCodes

Post by catcher »

williamcaracas wrote:please any help with this bbcode
<embed src="http://www.xatech.com/web_gear/chat/chat.swf" quality="high" bgcolor="#000000" width="540" height="405" name="chat" FlashVars="id=42497944" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://xat.com/update_flash.shtml" /><br><small><a target="_BLANK" href="http://xat.com/web_gear/?cb">Get your own Chat Box!</a> <a target="_BLANK" href="http://xat.com/web_gear/chat/go_large.p ... 497944">Go Large!</a></small><br><img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/IMP/ ... AwNQ==.gif" />
is a chat!
You have to use this code:

Code: Select all

[flash=540,405]http://www.xatech.com/web_gear/chat/chat.swf?id=42497944[/flash]
~Aar
Registered User
Posts: 153
Joined: Sun Jun 08, 2008 6:55 pm

Re: Custom BBCodes

Post by ~Aar »

I am really confused with this youtube embedment..

I went to ACP, Posting>> BBCODES

added this: BBCODE

Code: Select all

[youtube]http://www.youtube.com/watch?v={SIMPLETEXT}[/youtube]
HTML REPLACEMENT

Code: Select all

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{SIMPLETEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{SIMPLETEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
and it just looks like this in the post:
[youtube]http://www.youtube.com/watch?v=wfjdfladshf without the video actually showing??


EDIT
i know have this..

Code: Select all

[youtube]{TEXT}[/youtube]

Code: Select all

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{TEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{TEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
now all I am getting is a blank space..

any assistance is much much appreciated
Http://www.billiondollarmission.com - An awakening experience.
-Kenichi-
Registered User
Posts: 20
Joined: Thu Oct 23, 2008 9:36 am

Re: Custom BBCodes

Post by -Kenichi- »

Maybe you have to use only the video ID.

So skip the www.youtube.com/watch?v=

So, for example:


(this code is not from a video ;) )
User avatar
OniTenshu
Registered User
Posts: 22
Joined: Thu Oct 23, 2008 7:27 pm
Location: Beverly
Contact:

Re: Custom BBCodes

Post by OniTenshu »

I've created a second version for my earlier DivX Web Player BBCode and look forward to updates on the tag i just created(i should be finished later tonight or tomorrow) that will allow you to customize the tag however you want and even if you don't fill out the tags the code won't get ruined; it will just enter in the defaults.
customize the divx part of the tag to say whatever you want it to.

Code: Select all

[DivX]{url}[/DivX}
and yes i used plugins this time

Code: Select all

<object id="ie_plugin" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"
            width="720" height="530"
            codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">

            <param name="src" value="{URL}" />
            <param name="timeCallback" value="myTimeCallback" />
            <param name="statusCallback" value="myDivXPlugin.statusCallbackSink" />
            <param name="BufferCallback" value="myBufferCallback" />
            <param name="mode" value="full" />
            <param name="bannerEnabled" value="false" />
            <param name="bufferingMode" value="auto" />
            <param name="minVersion" value="1.4.2.7" />
            <param name="previewImage"
             value="http://i164.photobucket.com/albums/u3/Demon-Of-The-Black-Flame/test-1.png" />
            <param name="autoPlay" value="false" />
            <param name="loop" value="false" />
            
            <embed id="np_plugin" type="video/divx"
                   src="{URL}"
                   width="720" height="530" timeCallback="myTimeCallback"statusCallback="myDivXPlugin.statusCallbackSink" statusCallback="myDivXPlugin.statusCallbackSink"BufferCallback="myBufferCallback"                   

    mode="full" bannerEnabled="false" bufferingMode="auto" minVersion="1.4.2.7"                    

previewImage="http://i164.photobucket.com/albums/u3/Demon-Of-The-Black-Flame/test-1.png"        

            autoPlay="false" loop="false" 
                   pluginspage="http://go.divx.com/plugin/download/">
            </embed>
    </object>
    <script language="Javascript">
    var plugin;

    if(navigator.userAgent.indexOf('MSIE')   != -1 ||
       navigator.userAgent.indexOf('Safari') != -1)
    {
        plugin = document.getElementById('ie_plugin');
    }
    else
    {
        plugin = document.getElementById('np_plugin');
    }
    </script>
    <script type="text/javascript">
     function showPluginPreferences()
    {
        plugin.ShowPreferences();
    }
        <input type="button"
           value="Configure the DivX Plug-In"
           onClick="javascript:showPluginPreferences();">
    </script>
    <script type="text/javascript">

    //
    // This is a global space JS function used by
    // the plug-in as a callback when data is downloaded
    //

    function myTimeCallback(current)
    {
         document.getElementById('currentTime').innerHTML = current;
    }

    //
    // This is an object defined to have a
    // local callback function, that we will
    // pass to the plugin as statusParameter
    //

    function DivXPluginSinks()
    {

        this.statusCallbackSink = function(status)
        {
            var s = parseInt(status);

            switch(s)
            {
                 case 10: // STATUS_PLAYING
                 document.getElementById('currentStatus').innerHTML = 'Playing';
                 break;

                 case 11: // STATUS_PAUSED
                 document.getElementById('currentStatus').innerHTML = 'Paused';
                 break;

                 case 12: // STATUS_FF
                 document.getElementById('currentStatus').innerHTML = 'Fast Forwarding';
                 break;

                 case 13: // STATUS_RW
                 document.getElementById('currentStatus').innerHTML = 'Rewinding';
                 break;

                 case 2:  // VIDEO_END
                 case 14: // STATUS_STOPPED
                 document.getElementById('currentStatus').innerHTML = 'Stopped';
                 break;
            }
        }
    }

    // Create an instance of the object

    myDivXPlugin = new DivXPluginSinks()

    </script>
and yes it works with h264 and xvid as well

Code: Select all

[DivX]url to .avi .divx or .div video with h264, XviD, and DivX Codecs.[/DivX]
JonoE
Registered User
Posts: 5
Joined: Mon Nov 03, 2008 1:46 pm

Re: Custom BBCodes

Post by JonoE »

Please can someone help me as i have no idea wot i am doing i have been told i need to make a bbcode for a java script.

I have read the info but can not get my head around it can someone tell me wot i need to put in which field.

Many Thanks

Jono

Here is the java script i need to display.

Code: Select all

<script language="javascript" type="text/javascript">
   var vspy_width=400; 
   var vspy_height=300; 
   var vspy_style="400x300_html"; 
   var vspy_server="voice403.gamingdeluxe.co.uk:5805"; 
</script>
<script language="javascript" type="text/javascript" src="http://ventrilo-monitor.com/js/show_ventrilo.js"></script>
Locked

Return to “Custom BBCode Development and Requests”