Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/06/2006, 14:08
Avatar de fer10
fer10
 
Fecha de Ingreso: octubre-2005
Ubicación: Guadalajara - Mexico
Mensajes: 905
Antigüedad: 18 años, 6 meses
Puntos: 4
a mi me paso lo mismo, me baje un plubg in que se llama: Flashifier

te paso el plug in:
Código PHP:
<?php
/*
Plugin Name: Flashifier
Plugin URI: http://www.ryanmeyers.com/wordpress/index.php?p=14&cat=2
Description: Create flash code by enclosing the info in [FLASH]<em>%filename%</em>,<em>%width%</em>,<em>%height%</em>[/FLASH].
Version: 0.11
Author: Ryan Meyers
Author URI: http://www.ryanmeyers.com
Update: http://www.ryanmeyers.com/wordpress/plugin-update.php?p=14
*/

/************************************
**                                 **
**  TO TAKE ADVANTAGE OF UPDATE    **
**  DETECTION, PLEASE CONSIDER     **
**  MAKING THE FOLLOWING ADDITION  **
**  TO YOUR WORDPRESS INSTALL      **
**                                 **
*************************************

  OPEN FOR EDITING : wp-admin/plugins.php

  FIND :

     if ( preg_match("|Version:(.*)|i", $plugin_data, $version) )
              $version = $version[1];
          else
              $version ='';
  

  ADD THE FOLLOWING CODE AFTERWARDS :

    // BEGIN PLUGIN UPDATE ADD-ON
        if ( preg_match("|Update:(.*)|i", $plugin_data, $update) )
        {
            $update = $update[1];
            $update = trim($update);
                if ($u = @file("$update")) {
                    $u = implode('',$u);
                    $u = trim($u);
                    $v = trim($version);
                    if($u != $v){
                        $updatelink = '<a href="';
                        $updatelink .= $plugin_uri[1];
                        $updatelink .= '">';
                        $updatelink .= '<em><strong>Update Available:</strong> (';
                        $updatelink .= $u;
                        $updatelink .= ')</em></a>';
                        $description[1] .= '<br />';
                        $description[1] .= $updatelink;

                                            }
                    else
                    {
                    $updatelink = '';
                    }
                
                }
                else{
                    $updatelink = '';
                }
        }
        else
        {    $update ='';}

        //END PLUGIN UPDATE ADD-ON


**************************************/




#/

function flashifier_the_content($text) {
    
    
# Parse text looking for flash tags.
    
$flashedtext='';
    
    foreach (
preg_split('|(\[FLASH\].+,.+,.+\[/FLASH\])|i'$text, -1PREG_SPLIT_DELIM_CAPTURE) as $token) {
        
        
        
        if (
preg_match('|(\[FLASH\].+,.+,.+\[/FLASH\])|i'$token)) {
            
            
$name $token;

            
#$name2=strtolower($name);

            
$getrid = array('[flash]','[/flash]',' ','\n','<br>','<br />');
            
            
$name2=str_replace($getrid,'',$name2);
                
    
                
$namex explode(',',$name2);

                
$filename $namex[0];
                
$width $namex[1];
                
$height $namex[2];

                
$output "<object type=\"application/x-shockwave-flash\" data=\"$filename\" width=\"$width\" height=\"$height\"><param name=\"movie\" value=\"$filename\" /></object>";
                
                
$flashedtext .= $output;
                          
        } else {
            
$flashedtext .= $token;}
    }

    return 
$flashedtext;
}

# Turn on the flashifying process.
add_filter('the_content''flashifier_the_content');

?>
que me perdone el autor pero comente la linea:#$name2=strtolower($name); ya que la convierte en minusculas en plugin y asi no lo reconoce el yotube en la direcion.

para colocarlo en el word press sensillito
con este codigo:
Código HTML:
[flash]http://www.youtube.com/v/w4mSx-e1L4k,425,350[/flash]

donde : [flash]direcion,widht,height[/flash]
__________________
Saludos
FT.
www.fernando.com.mx