Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.
Help keep Vanilla free:<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/GNLDLyeepVs"></param><param name="wmode" value="transparent"></param>
<embed src="http://www.youtube.com/v/GNLDLyeepVs" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object> function VideoLink($Matches)
{
$Type = strtolower(trim($Matches[2]));
$ID = $Matches[3];
switch($Type)
{
case 'google' : return ('<embed style="width: 400px; height: 326px;" id="VideoPlayback" '.
'type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId='.$ID.'"></embed>');
case 'youtube' : return ('<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/'.$ID.'"></param>'.
'<embed src="http://www.youtube.com/v/'.$ID.'" type="application/x-shockwave-flash" width="425" height="350"></embed>'.
'</object>');
default : return $Matches[0];
}
}<video type="youtube">GNLDLyeepVs</video><video type="youtube">GNLDLyeepVs</video>
<video type="myspace">1853735795</video> function VideoLink($Matches)
{
$Type = strtolower(trim($Matches[2]));
$ID = $Matches[3];
switch($Type)
{
case 'google':
$link_id = 'http://video.google.com/googleplayer.swf?docId='.$ID.'';
$link_video = $link_id;
break;
case 'youtube':
$link_id = 'http://www.youtube.com/v/'.$ID.'';
$link_video = $link_id;
break;
case 'myspace':
$link_id = 'http://lads.myspace.com/videos/vplayer.swf" flashvars="m='.$ID.'&type=video';
$link_video = 'http://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid='.$ID.'';
break;
default : return $Matches[0];
}
return (
'<div class="pre_video">'.
'<h3>Your SiteName#Video</h3>'.
'<a href="'.$link_video.'">Link to Vídeo</a>'.
'<div class="video">'.
'<object width="425" height="350" type="application/x-shockwave-flash" data="'.$link_id.'">'.
'<param name="movie" value="'.$link_id.'" />'.
'<param name="wmode" value="transparent" />'.
'</object>'.
'</div>'.
'</div>');
}<b><i><u><s><strong><em><del>/* Underline */
.underline {
text-decoration: underline;
}echo "<a onclick=\"decoration('underline','".$this->Context->Configuration["BBBAR_DISABLE_VANILLACONS_BAR"]."')\">
<img src='".$this->Context->Configuration["BASE_URL"].$this->Context->Configuration["BBBAR_PATH"]."buttons/text_underline.gif'
alt='".$this->Context->GetDefinition('bbunderline')."' title='".$this->Context->GetDefinition('bbunderline')."' /></a>";function decoration(Style,Smilies){
document.getElementById("BBBarColorPicker").style.display = 'none';
document.getElementById("BBBarFontPicker").style.display = 'none';
if (Smilies == 'FALSE') document.getElementById("BBBarSmilies").style.display = 'none';
if(document.getElementById("Radio_BBCode")){
if (document.getElementById('Radio_BBCode').checked) wert = 'BBCode';
}
if(document.getElementById("Radio_Html")){
if (document.getElementById('Radio_Html').checked) wert = 'Html';
}
if(document.getElementById("Radio_Text")){
if (document.getElementById('Radio_Text').checked) wert = 'Text';
}
if (wert != 'Text')
{
var input = document.getElementById("CommentBox");
input.focus();
var start = input.selectionStart;
var end = input.selectionEnd;
var insText = input.value.substring(start, end);
if (wert == 'Html') input.value = input.value.substr(0, start) + '<span class="'+Style+'">'+insText+'</span>' + input.value.substr(end);
}}/* Underline */
.underline {
text-decoration: underline;
display: inline;
}if (wert == 'Html') input.value = input.value.substr(0, start) + '<div class="'+Style+'">'+insText+'</div>' + input.value.substr(end);echo "<a onclick=\"decoration('underline','".$this->Context->Configuration["BBBAR_DISABLE_VANILLACONS_BAR"]."')\">
<img src='".$this->Context->Configuration["BASE_URL"].$this->Context->Configuration["BBBAR_PATH"]."buttons/text_underline.gif'
alt='".$this->Context->GetDefinition('bbunderline')."' title='".$this->Context->GetDefinition('bbunderline')."' /></a>";<OBJECT classid="http://www.miamachina.it/analogclock.py">
<PARAM name="height" value="40" valuetype="data">
<PARAM name="width" value="40" valuetype="data">
This user agent cannot render Python applications.
</OBJECT><embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash"
src="http://video.google.com/googleplayer.swf?docId=-3571977876885478487" flashvars="">
</embed><object width="425" height="350" type="application/x-shockwave-flash"
data="http://video.google.com/googleplayer.swf?docId=-3571977876885478487">
<param name="movie" value="http://video.google.com/googleplayer.swf?docId=-3571977876885478487" />
<param name="wmode" value="transparent" />
</object><object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" width="640" height="379" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">
<param name="src" value="http://stage6.divx.com/GBTimelapse/show_video/1083403" />
<embed type="video/divx" src="http://stage6.divx.com/GBTimelapse/show_video/1083403" width="640" height="379" pluginspage="http://go.divx.com/plugin/download/">
</embed>
</object>
edButtons[edButtons.length] =
new edButton('ed_youtube'
,'YouTube'
,''
,''
,'y'
);function edShowButton(button, i) {
if (button.id == 'ed_img') {
document.write('<input type="button" id="' + button.id + '" accesskey="' + button.access + '" class="ed_button" onclick="edInsertImage(edCanvas);" value="' + button.display + '" />');
}
else if (button.id == 'ed_link') {
document.write('<input type="button" id="' + button.id + '" accesskey="' + button.access + '" class="ed_button" onclick="edInsertLink(edCanvas, ' + i + ');" value="' + button.display + '" />');
}
else if (button.id == 'ed_youtube') {
document.write('<input type="button" id="' + button.id + '" accesskey="' + button.access + '" class="ed_button" onclick="edInsertYouTube(edCanvas, ' + i + ');" value="' + button.display + '" />');
}
else {
document.write('<input type="button" id="' + button.id + '" accesskey="' + button.access + '" class="ed_button" onclick="edInsertTag(edCanvas, ' + i + ');" value="' + button.display + '" />');
}
}function getSelected(myField) {
var selectedText = '';
if (document.selection) {
var sel = document.selection.createRange();
if (sel.text.length > 0) {
selectedText = sel.text;
}
}
else if (myField.selectionStart || myField.selectionStart == '0') {
var startPos = myField.selectionStart;
var endPos = myField.selectionEnd;
if (startPos != endPos) {
selectedText = myField.value.substring(startPos, endPos);
}
}
return selectedText;
}function edInsertYouTube(myField, i, defaultValue) {
var frm = document.getElementById('frmPostComment');
if (frm) {
// Do stuff in here, like...
setCheckedValue(document.forms['frmPostComment'].elements['FormatType'], 'Html');
}else{
setCheckedValue(document.forms['frmPostDiscussion'].elements['FormatType'], 'Html');
}
// use selected text as the default
defaultValue = getSelected(myField);
if (!defaultValue) {
defaultValue = '';
}
if (!edCheckOpenTags(i)) {
var URL = prompt('Enter the YouTube link' ,defaultValue);
if (URL) {
// First try matching the form "youtube.com/v/video_id"
videoIdRegex = /youtube\.com\/v\/(\w+)/
matches = videoIdRegex.exec (URL);
// if that form wasn't matched
if ( (matches == undefined) ||
(matches[1] == undefined) ) {
// try matching the form "youtube.com/watch?v=video_id"
videoIdRegex = /youtube\.com\/watch\?v\=(\w+)/;
matches = videoIdRegex.exec (URL);
}
if ( (matches == undefined) ||
(matches[1] == undefined) ) {
alert ('Unable to find a YouTube video in your entry.');
}
else {
html = '<video type="youtube">' + matches[1] + '</video>';
edInsertContent(myField, html);
}
}
}
}
1 to 29 of 29