Publicidad

Autor Tema: [BBC]MU, MV, RS, CD [v2.3]  (Leído 3626 veces)

Desconectado rkultra

  • Jr. Member
  • **
  • Mensajes: 79
  • Power: 11
  • Sexo: Masculino
  • el espiritu del vino
    • MSN Messenger - raulabenz@hotmail.com
    • Ver Perfil
    • descargar peliculas gratis
    • Email
Re: [BBC]MU, MV, RS, CD [v2.3]
« Respuesta #30 en: Enero 15, 2011, 06:05:33 pm »
buenisimo yo tengo una web de pelis y me salvaste la vida con este BBC  +10000

Desconectado texass

  • Hero Member
  • *****
  • Mensajes: 717
  • Power: 98
  • Sexo: Masculino
  • Say No More
    • Ver Perfil
Re: [BBC]MU, MV, RS, CD [v2.3]
« Respuesta #31 en: Enero 16, 2011, 06:11:47 am »
muy bueno
Twitter: @Gutiinet

Desconectado gear777

  • Jr. Member
  • **
  • Mensajes: 90
  • Power: 0
    • Ver Perfil
    • Email
Re: [BBC]MU, MV, RS, CD [v2.3]
« Respuesta #32 en: Enero 27, 2011, 08:50:45 am »
y si quiero insertar otros botones de otras web ejemplo fileserver?

Desconectado elrenegado

  • Newbie
  • *
  • Mensajes: 28
  • Power: 0
  • Sexo: Masculino
  • ElRenegado
    • Ver Perfil
Re: [BBC]MU, MV, RS, CD [v2.3]
« Respuesta #33 en: Febrero 20, 2011, 09:19:39 am »
Hola a mi me funciono en principio pero luego me funciona solamente Megavideo y BBC CODE podrias dejar adjuntos los archivos modificados para descargarlos? saludos :good:


http://mitaringa.iblogger.org :beta:


Mensaje Unido: [time]mar 22 feb 2011 03:05:04 GMT+3[/time]
Aqui hos dejo unos buenos botones bbc a ver si les gusta miren la captura:




En los cuales se les agregaran los bottnes de megaupload rapidshare y otros dos mas.

Instalacion:

-Habran el subs.php y busquen:

Citar
         array(
            'tag' => 'html',
            'type' => 'unparsed_content',
            'content' => '$1',
            'block_level' => true,
            'disabled_content' => '$1',
         ),

abajo agreguen:

Código: [Seleccionar]
			//boton MegaUpload by Mr.Freack
array(
'tag' => 'megaupload',
'before' => '<div class="megaupload_bbc">',
'after' => '</div>',
),
      array(
            'tag' => 'megavideo',
            'type' => 'unparsed_commas_content',
            'content' => '<object width="$2" height="$3" ><param name="AllowScriptAccess" value="never" /><param name="movie" value="true" /><param name="allowFullScreen" value="true" /><param name="movie" value="$1" /><embed src="$1" type="application/x-shockwave-flash" allowscriptaccess="never" allowfullscreen="true" width="$2" height="$3"></embed></object>',
            'validate' => create_function('&$tag, &$data, $disabled', '
            if (isset($disabled[\'url\']))
               $tag[\'content\'] = \'$1\';

            global $context;
            if (preg_match(\'~(http://(www.)?megavideo.com/v/([A-Z0-9]{8}))~i\' . ($context[\'utf8\'] ? \'u\' : \'\'), $data[0], $matches))
            $data[0] = $matches[1];
            else
            $tag[\'content\'] = \'$1\';
            '),
         'block_level' => true,
         'disabled_content' => '$1'
          ),
           array(
'tag' => 'rapidshare',
'before' => '<div class="rapidshare_bbc">',
'after' => '</div>',
),
//fin de boton MegaUpload by Mr.Freack

Abran el acciones...js  como lo tengan y buscan:

Código: [Seleccionar]
//Botones posts
mySettings = {
markupSet: [
{name:'Negrita', key:'B', openWith:'[b]', closeWith:'[/b]'},
{name:'Cursiva', key:'I', openWith:'[i]', closeWith:'[/i]'},
{name:'Subrayado', key:'U', openWith:'[u]', closeWith:'[/u]'},
{separator:'-' },
{name:'Alinear a la izquierda', key:'', openWith:'[left]', closeWith:'[/left]'},
{name:'Centrar', key:'', openWith:'[center]', closeWith:'[/center]'},
{name:'Alinear a la derecha', key:'', openWith:'[right]', closeWith:'[/right]'},
{separator:'-' },
{name:'Color', dropMenu: [
{name:'Rojo oscuro', openWith:'[color=darkred]', closeWith:'[/color]' },
{name:'Rojo', openWith:'[color=red]', closeWith:'[/color]' },
{name:'Naranja', openWith:'[color=orange]', closeWith:'[/color]' },
{name:'Marr&oacute;n', openWith:'[color=brown]', closeWith:'[/color]' },
{name:'Amarillo', openWith:'[color=yellow]', closeWith:'[/color]' },
{name:'Verde', openWith:'[color=green]', closeWith:'[/color]' },
{name:'Oliva', openWith:'[color=olive]', closeWith:'[/color]' },
{name:'Cyan', openWith:'[color=cyan]', closeWith:'[/color]' },
{name:'Azul', openWith:'[color=blue]', closeWith:'[/color]' },
{name:'Azul oscuro', openWith:'[color=darkblue]', closeWith:'[/color]' },
{name:'Indigo', openWith:'[color=indigo]', closeWith:'[/color]' },
{name:'Violeta', openWith:'[color=violet]', closeWith:'[/color]' },
{name:'Negro', openWith:'[color=black]', closeWith:'[/color]' }
]},
{name:'Tama&ntilde;o', dropMenu :[
    {name:'Mi&ntilde;atura', openWith:'[size=7pt]', closeWith:'[/size]' },
{name:'Peque&ntilde;a', openWith:'[size=9pt]', closeWith:'[/size]' },
{name:'Normal', openWith:'[size=12pt]', closeWith:'[/size]' },
{name:'Grande', openWith:'[size=18pt]', closeWith:'[/size]' },
{name:'Enorme', openWith:'[size=24pt]', closeWith:'[/size]' }
]},
{name:'Fuente', dropMenu :[
{name:'Arial', openWith:'[font=Arial]', closeWith:'[/font]' },
{name:'Courier New', openWith:'[font=Courier New]', closeWith:'[/font]' },
{name:'Georgia', openWith:'[font=Georgia]', closeWith:'[/font]' },
{name:'Times New Roman', openWith:'[font=Times New Roman]', closeWith:'[/font]' },
{name:'Verdana', openWith:'[font=Verdana]', closeWith:'[/font]' },
{name:'Trebuchet MS', openWith:'[font=Trebuchet MS]', closeWith:'[/font]' },
{name:'Lucida Sans', openWith:'[font=Lucida Sans]', closeWith:'[/font]' },
{name:'Comic Sans', openWith:'[font=Comic Sans]', closeWith:'[/font]' }
]},
{separator:'-' },
{name:'Insertar video de YouTube', beforeInsert:function(h){ markit_yt(h); }},
{name:'Insertar video de Google Video', beforeInsert:function(h){ markit_gv(h); }},
{name:'Insertar archivo SWF', beforeInsert:function(h){ markit_swf(h); }},
{name:'Insertar Imagen', beforeInsert:function(h){ markit_img(h); }},
{name:'Insertar Link', beforeInsert:function(h){ markit_url(h); }},
{name:'Citar', beforeInsert:function(h){ markit_quote(h); }},
                
]
};

lo sustituyen por:

Código: [Seleccionar]
//Botones posts
mySettings = {
markupSet: [
{name:'Negrita', key:'B', openWith:'[b]', closeWith:'[/b]'},
{name:'Cursiva', key:'I', openWith:'[i]', closeWith:'[/i]'},
{name:'Subrayado', key:'U', openWith:'[u]', closeWith:'[/u]'},
{separator:'-' },
{name:'Alinear a la izquierda', key:'', openWith:'[left]', closeWith:'[/left]'},
{name:'Centrar', key:'', openWith:'[center]', closeWith:'[/center]'},
{name:'Alinear a la derecha', key:'', openWith:'[right]', closeWith:'[/right]'},
{separator:'-' },
{name:'Color', dropMenu: [
{name:'Rojo oscuro', openWith:'[color=darkred]', closeWith:'[/color]' },
{name:'Rojo', openWith:'[color=red]', closeWith:'[/color]' },
{name:'Naranja', openWith:'[color=orange]', closeWith:'[/color]' },
{name:'Marr&oacute;n', openWith:'[color=brown]', closeWith:'[/color]' },
{name:'Amarillo', openWith:'[color=yellow]', closeWith:'[/color]' },
{name:'Verde', openWith:'[color=green]', closeWith:'[/color]' },
{name:'Oliva', openWith:'[color=olive]', closeWith:'[/color]' },
{name:'Cyan', openWith:'[color=cyan]', closeWith:'[/color]' },
{name:'Azul', openWith:'[color=blue]', closeWith:'[/color]' },
{name:'Azul oscuro', openWith:'[color=darkblue]', closeWith:'[/color]' },
{name:'Indigo', openWith:'[color=indigo]', closeWith:'[/color]' },
{name:'Violeta', openWith:'[color=violet]', closeWith:'[/color]' },
{name:'Negro', openWith:'[color=black]', closeWith:'[/color]' }
]},
{name:'Tama&ntilde;o', dropMenu :[
    {name:'Mi&ntilde;atura', openWith:'[size=7pt]', closeWith:'[/size]' },
{name:'Peque&ntilde;a', openWith:'[size=9pt]', closeWith:'[/size]' },
{name:'Normal', openWith:'[size=12pt]', closeWith:'[/size]' },
{name:'Grande', openWith:'[size=18pt]', closeWith:'[/size]' },
{name:'Enorme', openWith:'[size=24pt]', closeWith:'[/size]' }
]},
{name:'Fuente', dropMenu :[
{name:'Arial', openWith:'[font=Arial]', closeWith:'[/font]' },
{name:'Courier New', openWith:'[font=Courier New]', closeWith:'[/font]' },
{name:'Georgia', openWith:'[font=Georgia]', closeWith:'[/font]' },
{name:'Times New Roman', openWith:'[font=Times New Roman]', closeWith:'[/font]' },
{name:'Verdana', openWith:'[font=Verdana]', closeWith:'[/font]' },
{name:'Trebuchet MS', openWith:'[font=Trebuchet MS]', closeWith:'[/font]' },
{name:'Lucida Sans', openWith:'[font=Lucida Sans]', closeWith:'[/font]' },
{name:'Comic Sans', openWith:'[font=Comic Sans]', closeWith:'[/font]' }
]},
{separator:'-' },
{name:'Insertar video de YouTube', beforeInsert:function(h){ markit_yt(h); }},
{name:'Insertar video de Google Video', beforeInsert:function(h){ markit_gv(h); }},
{name:'Insertar archivo SWF', beforeInsert:function(h){ markit_swf(h); }},
{name:'Insertar Imagen', beforeInsert:function(h){ markit_img(h); }},
{name:'Insertar Link', beforeInsert:function(h){ markit_url(h); }},
{name:'Citar', beforeInsert:function(h){ markit_quote(h); }},
                {separator:'-' },
                {name:'Link MegaUpload', beforeInsert:function(h){ markit_url_mu(h); }},
                {name:'Insertar video de MegaVideo', beforeInsert:function(h){ markit_mv(h); }},
                {name:'Link RapidShare', beforeInsert:function(h){ markit_url_rs(h); }},
                {name:'Insertar Código', openWith:'[*code]', closeWith:'[*/code]' },
                
]
};

a esta linea {name:'Insertar Código', openWith:'[*code]', closeWith:'[*/code]' }, quitenle los asteriscos

buscan :

Citar
function markit_quote(h){
   if(h.selection==''){
      var msg = prompt('Ingrese el texto a citar', '');
      if(msg != null){
         h.replaceWith = '
Citar
' + msg + '
';
         h.openWith = '';
         h.closeWith = '';
      }else{
         h.replaceWith = '';
         h.openWith = '';
         h.closeWith = '';
      }
   }else{
      h.replaceWith = '';
      h.openWith='
Citar
';
      h.closeWith='
';
   }
}

agregan abajo esto:

Citar
function markit_url_mu(h){
   if(h.selection==''){
      var msg = prompt('Ingrese el ID de MegaUpload', '');
      if(msg != null){
         h.replaceWith = '[megaupload][/megaupload]';
         h.openWith = '';
         h.closeWith = '';
      }else{
         h.replaceWith = '';
         h.openWith = '';
         h.closeWith = '';
      }
   }else if(h.selection.substring(0,7)=='http://' || h.selection.substring(0,8)=='https://' || h.selection.substring(0,6)=='ftp://'){
      h.replaceWith = '';
      h.openWith='';
      h.closeWith='
';
   }else{
      var msg = prompt('Ingrese el ID de MegaUpload', '');
      if(msg != null){
         h.replaceWith = '';
         h.openWith='[megaupload=' + msg + ']';
         h.closeWith='[/megaupload]';
      }else{
         h.replaceWith = '';
         h.openWith = '';
         h.closeWith = '';
      }
   }
}

function markit_mv(h){
   if(is_ie)
      var msg = prompt('Ingrese el ID de MegaVideo:\n', '');
   else
      var msg = prompt('Ingrese el ID del MegaVideo:', '');
   if(msg != null){
      h.replaceWith = '[megavideo=425,350]http://www.megavideo.com/v/' + msg + '[/megavideo]\n';
      h.openWith = '';
      h.closeWith = '';
   }else{
      h.replaceWith = '';
      h.openWith = '';
      h.closeWith = '';
   }
}

function markit_url_rs(h){
   if(h.selection==''){
      var msg = prompt('Ingrese el ID de RapidShare', '');
      if(msg != null){
         h.replaceWith = '[rapidshare][/rapidshare]';
         h.openWith = '';
         h.closeWith = '';
      }else{
         h.replaceWith = '';
         h.openWith = '';
         h.closeWith = '';
      }
   }else if(h.selection.substring(0,7)=='http://' || h.selection.substring(0,8)=='https://' || h.selection.substring(0,6)=='ftp://'){
      h.replaceWith = '';
      h.openWith='';
      h.closeWith='
';
   }else{
      var msg = prompt('Ingrese el ID de RapidShare', '');
      if(msg != null){
         h.replaceWith = '';
         h.openWith='[rapidshare=' + msg + ']';
         h.closeWith='[/rapidshare]';
      }else{
         h.replaceWith = '';
         h.openWith = '';
         h.closeWith = '';
      }
   }
}

y en el css buscan:

Citar
.markItUp .markItUpButton15 a, .markitcomment .markItUp .markItUpButton7 a, .miRespuesta .markItUp .markItUpButton7  a, .citarAnswer  {   background:transparent url('images/bbcodes.png') no-repeat scroll left top;   background-position: left -160px;   height: 10px;}

agreguenle abajo:

Citar
.markItUp .markItUpButton16 a, .markitcomment .markItUp .markItUpButton8 a,.miRespuesta .markItUp .markItUpButton8 a  {background:transparent url('images/icons/box-buton.png') no-repeat scroll left top;background-position: left -1px;height: 10px;}
.markItUp .markItUpButton17 a, .markitcomment .markItUp .markItUpButton9 a,.miRespuesta .markItUp .markItUpButton9 a  {background:transparent url('images/icons/box-buton.png') no-repeat scroll left top;background-position: left -25px;height: 10px;}
.markItUp .markItUpButton18 a, .markitcomment .markItUp .markItUpButton10 a,.miRespuesta .markItUp .markItUpButton10 a  {background:transparent url('images/icons/box-buton.png') no-repeat scroll left top;background-position: left -50px;height: 10px;}
.markItUp .markItUpButton19 a, .markitcomment .markItUp .markItUpButton11 a,.miRespuesta .markItUp .markItUpButton11 a  {background:transparent url('images/icons/box-buton.png') no-repeat scroll left top;background-position: left -75px;height: 10px;}


y al final agregan:


Citar
.megaupload_bbc{background: url('images/mBox/megaupload.png')no-repeat;height:51px;width:265px}
.megaupload_bbc:hover{background: url('images/mBox/megaupload-hover.png')no-repeat;height:51px;width:265px}
.rapidshare_bbc{background: url('images/mBox/rapidshare.png')no-repeat;height:50px;width:50px}
.megaupload_bbc ul, .rapidshare_bbc ul {list-style: none;margin: 1.3em 1.5em}
.megaupload_bbc ul li, .rapidshare_bbc ul li {padding-left: 1.3em}
.megaupload_bbc ul li  { background: url(images/mBox/error-bullet.png)  0 0.55em no-repeat }
.rapidshare_bbc ul li  { background: url(images/mBox/warning-bullet.png)  0 0.55em no-repeat }
y suben la imagen box-buton.png a images/icons
y la carpeta mBox a images
Y eso es todo espero les guste...


« última modificación: Febrero 21, 2011, 09:07:14 am por elrenegado »

Desconectado oti

  • Newbie
  • *
  • Mensajes: 13
  • Power: 0
    • Ver Perfil
    • Email
Re: [BBC]MU, MV, RS, CD [v2.3]
« Respuesta #34 en: Marzo 13, 2011, 06:44:19 pm »
Un arreglo provisional seria así, sustituyan el .js con esto:

Código: [Seleccionar]
function markit_url_mu(h){
   if(h.selection==''){
      var msg = prompt('Ingrese el ID de MegaUpload', '');
      if(msg != null){
         h.replaceWith = '[megaupload]http://www.megaupload.com/?d=' + msg + '[/megaupload]';
         h.openWith = '';
         h.closeWith = '';
      }else{
         h.replaceWith = '';
         h.openWith = '';
         h.closeWith = '';
      }
   }else if(h.selection.substring(0,7)=='http://' || h.selection.substring(0,8)=='https://' || h.selection.substring(0,6)=='ftp://'){
      h.replaceWith = '';
      h.openWith='';
      h.closeWith='';
   }else{
      var msg = prompt('Ingrese el ID de MegaUpload', '');
      if(msg != null){
         h.replaceWith = '';
         h.openWith='';
         h.closeWith='';
      }else{
         h.replaceWith = '';
         h.openWith = '';
         h.closeWith = '';
      }
   }
}

function markit_mv(h){
   if(is_ie)
      var msg = prompt('Ingrese el ID de MegaVideo:
', '');
   else
      var msg = prompt('Ingrese el ID de MegaVideo:', '');
   if(msg != null){
      h.replaceWith = '[megavideo=700,600]http://www.megavideo.com/v/' + msg + '[/megavideo]
';
      h.openWith = '';
      h.closeWith = '';
   }else{
      h.replaceWith = '';
      h.openWith = '';
      h.closeWith = '';
   }
}

function markit_url_rs(h){
   if(h.selection==''){
      var msg = prompt('Ingrese la URL de RapidShare', '');
      if(msg != null){
         h.replaceWith = '[rapidshare]' + msg + '[/rapidshare]';
         h.openWith = '';
         h.closeWith = '';
      }else{
         h.replaceWith = '';
         h.openWith = '';
         h.closeWith = '';
      }
   }else if(h.selection.substring(0,7)=='http://' || h.selection.substring(0,8)=='https://' || h.selection.substring(0,6)=='ftp://'){
      h.replaceWith = '';
      h.openWith='';
      h.closeWith='';
   }else{
      var msg = prompt('Ingrese el ID de RapidShare', '');
      if(msg != null){
         h.replaceWith = '';
         h.openWith='[rapidshare=' + msg + ']';
         h.closeWith='[/rapidshare]';
      }else{
         h.replaceWith = '';
         h.openWith = '';
         h.closeWith = '';
      }
   }
}

Mensaje Unido: Marzo 13, 2011, 07:09:29 pm
tiene otro error mas.. en el CSS, hay que poner esto:

Código: [Seleccionar]
.markItUp .markItUpButton16 a, .markitcomment .markItUp .markItUpButton10 a,.miRespuesta .markItUp .markItUpButton8 a  {background:transparent url('images/icons/box-buton.png') no-repeat scroll left top;background-position: left -1px;height: 10px;}
.markItUp .markItUpButton17 a, .markitcomment .markItUp .markItUpButton11 a,.miRespuesta .markItUp .markItUpButton9 a  {background:transparent url('images/icons/box-buton.png') no-repeat scroll left top;background-position: left -25px;height: 10px;}
.markItUp .markItUpButton18 a, .markitcomment .markItUp .markItUpButton12 a,.miRespuesta .markItUp .markItUpButton10 a  {background:transparent url('images/icons/box-buton.png') no-repeat scroll left top;background-position: left -50px;height: 10px;}
.markItUp .markItUpButton19 a, .markitcomment .markItUp .markItUpButton13 a,.miRespuesta .markItUp .markItUpButton11 a  {background:transparent url('images/icons/box-buton.png') no-repeat scroll left top;background-position: left -75px;height: 10px;}
« última modificación: Marzo 13, 2011, 07:09:29 pm por oti »