Code: Select all
[edit] [/edit]
Any ideas .
Thanks
Code: Select all
[edit] [/edit]
Code: Select all
http://www.cjwdavis.co.uk/own/phpBB3/viewtopic.php?f=11&t=10
Goto http://www.cnnfan.com ... There is an early working prototype there that is being released here.ship9 wrote:Please help I am looking to see if i can add videos from cnn like we can from youtube . if so what is the BBCode usage and the HTML replacement.
thank you so much for the help.
David
Try removing the part:sakm wrote:nicholas.alipaz wrote:If a user is experiencing an issue with that spoiler, it is most likely because their browser blocks javascript. It works fine the way you posted it.sakm wrote:anyone ??sakm wrote:i have got a problem with the spoiler BBcode
...
thanks stu
The only alternative would be to use a css spoiler rather than javascript. But someone would need to right one. I think I wrote one, but it doesn't do exactly what that one does.
when any member uses it his/her text in the post is made bigger not just for him everyone can see that no matter what browser they are using
Code: Select all
</span>
Code: Select all
<span class="postbody">
Code: Select all
[DivxVideo]{URL1} {URL2} {NUMBER1} {NUMBER2} {SIMPLETEXT}[/DivxVideo]
Code: Select all
<object id="ie_plugin" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"
width="{NUMBER1}" height="{NUMBER2}"
codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">
<param name="src" value="{URL1}" />
<param name="timeCallback" value="myTimeCallback" />
<param name="statusCallback" value="myDivXPlugin.statusCallbackSink" />
<param name="BufferCallback" value="myBufferCallback" />
<param name="custommode" value="Stage6" />
<param name="bannerEnabled" value="true" />
<param name="bufferingMode" value="auto" />
<param name="minVersion" value="1.4.2.7" />
<param name="previewImage"
value="{URL2}" />
<param name="autoPlay" value="{SIMPLETEXT}" />
<param name="loop" value="false" />
<embed id="np_plugin" type="video/divx"
src="{URL1}"
width="{NUMBER1}" height="{NUMBER2}" timeCallback="myTimeCallback"statusCallback="myDivXPlugin.statusCallbackSink" statusCallback="myDivXPlugin.statusCallbackSink"BufferCallback="myBufferCallback"
custommode="Stage6" bannerEnabled="true" bufferingMode="auto" minVersion="1.4.2.7"
previewImage="{URL2}"
autoPlay="false" loop="{SIMPLETEXT}"
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>
Code: Select all
[DivxVideo]...video.divx ...img.png 650 426 false. enter custom info exactly as shown w/o the "."[/DivxVideo]
Code: Select all
[DivxVideo]{URL1} {URL2} {NUMBER1} {NUMBER2} {SIMPLETEXT}[/DivxVideo]
Code: Select all
<object id="ie_plugin" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"
width="{NUMBER1}" height="{NUMBER2}"
codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">
<param name="src" value="{URL1}" />
<param name="timeCallback" value="myTimeCallback" />
<param name="statusCallback" value="myDivXPlugin.statusCallbackSink" />
<param name="BufferCallback" value="myBufferCallback" />
<param name="custommode" value="full" />
<param name="bannerEnabled" value="true" />
<param name="bufferingMode" value="auto" />
<param name="minVersion" value="1.4.2.7" />
<param name="previewImage"
value="{URL2}" />
<param name="autoPlay" value="{SIMPLETEXT}" />
<param name="loop" value="false" />
<embed id="np_plugin" type="video/divx"
src="{URL1}"
width="{NUMBER1}" height="{NUMBER2}" timeCallback="myTimeCallback"statusCallback="myDivXPlugin.statusCallbackSink" statusCallback="myDivXPlugin.statusCallbackSink"BufferCallback="myBufferCallback"
custommode="full" bannerEnabled="true" bufferingMode="auto" minVersion="1.4.2.7"
previewImage="{URL2}"
autoPlay="false" loop="{SIMPLETEXT}"
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>
Code: Select all
[DivxVideo]...video.divx ...img.png 650 426 false. enter custom info exactly as shown w/o the "."[/DivxVideo]
CSS disabled!? wha?! I have never heard of css being disabled. What browser are they using? Now css being altered by something like userChrome.css in FF or maybe stylish, then perhaps.Elyaradine wrote:I use a CSS one on my site. Less fuss, and very easy, but it (obviously) won't hide text if the person has CSS disabled.nicholas.alipaz wrote:The only alternative would be to use a css spoiler rather than javascript. But someone would need to right one. I think I wrote one, but it doesn't do exactly what that one does.
BBCode:HTML Replacement:Code: Select all
[spoiler]{TEXT}[/spoiler]
Code: Select all
<span style="background:#000000; color:#000000">{TEXT}</span>
Code: Select all
[spoiler]{TEXT}[/spoiler]
Code: Select all
<style>#cssClick a { width:90px;height:19px;text-decoration:none; } #cssClick span {display: none;} #cssClick a:active span,#cssClick a:focus span { display: block;color:red;background:#fff;line-height:normal; }</style><span id="cssClick"><a title="Show Spoiler Text" href="#showSpoiler" rel="nofollow" class="button2">Spoiler<span>{TEXT}</span></a></span>
Code: Select all
<?php
print 'Hello world';
?>
That is awesome, I didn't know that!A_O_C wrote:code={language here}
Code: Select all
<?php print 'Hello world'; ?>
Very awesome, I didn't know that either. got me thinking what syntaxes it supported so I looking the file includes/bbcodes.phpMasterZ wrote:That is awesome, I didn't know that!A_O_C wrote:code={language here}
Code: Select all
<?php print 'Hello world'; ?>
Thanks
Code: Select all
function bbcode_second_pass_code($type, $code)
{
// when using the /e modifier, preg_replace slashes double-quotes but does not
// seem to slash anything else
$code = str_replace('\"', '"', $code);
switch ($type)
{
case 'php':
// Not the english way, but valid because of hardcoded syntax highlighting
if (strpos($code, '<span class="syntaxdefault"><br /></span>') === 0)
{
$code = substr($code, 41);
}
// no break;
default:
$code = str_replace("\t", ' ', $code);
$code = str_replace(' ', ' ', $code);
$code = str_replace(' ', ' ', $code);
// remove newline at the beginning
if (!empty($code) && $code[0] == "\n")
{
$code = substr($code, 1);
}
break;
}
$code = $this->bbcode_tpl('code_open') . $code . $this->bbcode_tpl('code_close');
return $code;
}
search does a wonderful thingnicholas.alipaz wrote:would've been nice if they added geshi syntax highlighting. Maybe someone can make a mod
Then use the custom bbcode button on the value of the vid variable in your post.<script src="http://i.cdn.turner.com/cnn/.element/js ... c=dom&vid=/video/world/2008/11/19/moos.sarkozy.singing.wife.cnn" type="text/javascript"></script><noscript>Embedded video from <a href="http://www.cnn.com/video">CNN Video</a></noscript>
Code: Select all
[cnnvideo]/video/world/2008/11/19/moos.sarkozy.singing.wife.cnn[/cnnvideo]
Code: Select all
[CNNvideo]{LOCAL_URL}[/CNNvideo]
Code: Select all
<script src="http://i.cdn.turner.com/cnn/.element/js/2.0/video/evp/module.js?loc=dom&vid=
{LOCAL_URL}" type="text/javascript"></script><noscript>Embedded video from <a href="http://www.cnn.com/video">CNN Video</a></noscript>