WordPress.org

Plugin Directory

Changeset 34326


Ignore:
Timestamp:
03/11/08 07:55:39 (6 years ago)
Author:
Viper007Bond
Message:

v5.4.1: Video alignment wasn't working due to the switch to SWFObject. This has been fixed. Props to [zerocrash](http://www.zerocrash.dk/) for the bug report.

Location:
vipers-video-quicktags/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vipers-video-quicktags/trunk/readme.txt

    r34262 r34326  
    141141== ChangeLog == 
    142142 
     143**Version 5.4.1** 
     144 
     145* Video alignment wasn't working due to the switch to SWFObject. This has been fixed. Props to [zerocrash](http://www.zerocrash.dk/) for the bug report. 
     146 
    143147**Version 5.4.0** 
    144148 
  • vipers-video-quicktags/trunk/vipers-video-quicktags.php

    r34262 r34326  
    33Plugin Name: Viper's Video Quicktags 
    44Plugin URI: http://www.viper007bond.com/wordpress-plugins/vipers-video-quicktags/ 
    5 Version: 5.4.0 
     5Version: 5.4.1 
    66Description: Allows you to embed various video types, including those hosted at <a href="http://www.youtube.com/">YouTube</a> and <a href="http://video.google.com/">Google Video</a> as well as videos you host yourself, into WordPress. <strong>Credits:</strong> <a href="http://asymptomatic.net">Owen Winkler</a> for <a href="http://redalt.com/wiki/ButtonSnap">ButtonSnap</a> and <a href="http://an-archos.com/">An-archos</a> for help with WP 2.1+ button code. 
    77Author: Viper007Bond 
     
    1313 
    1414class VipersVideoQuicktags { 
    15     var $version = '5.4.0'; 
     15    var $version = '5.4.1'; 
    1616    var $folder = '/wp-content/plugins/vipers-video-quicktags'; // You shouldn't need to change this ;) 
    1717    var $fullfolderurl; 
     
    782782 
    783783                        // Replace the first occurance of the $matchstring with some HTML 
    784                         $content = preg_replace('/' . preg_quote($matchstring, '/') . '/', '<div id="' . $objectid . '" class="vvqbox vvq' . $params['type'] . '" style="width:' . $data['width'] . 'px;height:' . $data['height'] . 'px;"><p><a href="' . $url . '">' . $linktext . '</a></p></div>', $content, 1); 
     784                        $content = preg_replace('/' . preg_quote($matchstring, '/') . '/', '<div class="vvqbox vvq' . $params['type'] . '" style="width:' . $data['width'] . 'px;height:' . $data['height'] . 'px;"><p id="' . $objectid . '"><a href="' . $url . '">' . $linktext . '</a></p></div>', $content, 1); 
    785785                    } 
    786786                } 
     
    836836                    $height = $height + 64; // Compensate for the player controls 
    837837 
    838                     $content = str_replace($matchstring, '<div id="' . $objectid . '" class="vvqbox vvqvideo" style="width:' . $width . 'px;height:' . $height . 'px;"><a href="' . $url . '">' . $url . '</a></div>', $content); 
     838                    $content = str_replace($matchstring, '<div class="vvqbox vvqvideo" style="width:' . $width . 'px;height:' . $height . 'px;"><p id="' . $objectid . '"><a href="' . $url . '">' . $url . '</a></p></div>', $content); 
    839839 
    840840                    $this->jsoutput .= '    vvq_videoWMP("' . $objectid . '", "' . $width . '", "' . $height . '", "' . $url . '");' . "\n"; 
     
    852852                    if ( empty($mimetype) ) $mimetype = 'video/mpeg'; // If we don't know the MIME type, just pick something (MPEG) 
    853853 
    854                     $content = str_replace($matchstring, '<div id="' . $objectid . '" class="vvqbox vvqvideo" style="width:' . $width . 'px;height:' . $height . 'px;"><a href="' . $url . '">' . $url . '</a></div>', $content); 
     854                    $content = str_replace($matchstring, '<div class="vvqbox vvqvideo" style="width:' . $width . 'px;height:' . $height . 'px;"><p id="' . $objectid . '"><a href="' . $url . '">' . $url . '</a></p></div>', $content); 
    855855 
    856856                    $this->jsoutput .= '    vvq_videoNoWMP("' . $objectid . '", "' . $width . '", "' . $height . '", "' . $url . '");' . "\n"; 
Note: See TracChangeset for help on using the changeset viewer.