WordPress.org

Plugin Directory

Changeset 519114


Ignore:
Timestamp:
03/14/12 22:48:53 (2 years ago)
Author:
ntm
Message:

8.8.10.14 beta 5

Location:
podpress/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • podpress/trunk/js/podpress_admin.js

    r397441 r519114  
    342342    var valArray = String(val).split(':'); 
    343343    if (2 != valArray.length) { 
    344         valArray[0] = 320; 
    345         valArray[1] = 240; 
     344        valArray[0] = 320; //newMediaDefaults['dimensionW']; 
     345        valArray[1] = 240; //newMediaDefaults['dimensionH']; 
    346346    } else { 
    347347        var dim_x = Number(valArray[0].replace(/\D+/g, '')); 
     
    645645    newMediaFileData['size'] = txtsize; 
    646646    newMediaFileData['duration'] = duration; 
    647     if(dimensionW == '') { 
    648         dimensionW = '320'; 
    649     } 
    650     if(dimensionH == '') { 
    651         dimensionH = '240'; 
     647    if( 0 >= Number(dimensionW) ) { 
     648        dimensionW = document.getElementById('podpress_mediadefault_dimensionW').value;//newMediaDefaults['dimensionW']; 
     649    } 
     650    if( 0 >= Number(dimensionH) ) { 
     651        dimensionH = document.getElementById('podpress_mediadefault_dimensionH').value; //newMediaDefaults['dimensionH']; 
    652652    } 
    653653    newMediaFileData['dimensionW'] = dimensionW; 
     
    848848        document.getElementById('podPressMediaPreviewImageWrapper_'+VarNum).style.display=''; 
    849849        document.getElementById('podPressMediaDimensionWrapper_'+VarNum).style.display=''; 
    850         //alert('(1a)\n'+typeOfMedia+'\n'+'W: '+String(data['dimensionW'])+'\t'+ String(typeof data['dimensionW']) + '\n'+'H: '+String(data['dimensionH'])+'\t'+ String(typeof data['dimensionH'])+'\n'); 
    851850        if ('video_' == typeOfMedia) { 
    852851            if ( 0 >= Number(data['dimensionW']) || 0 >= Number(data['dimensionH'])) {// this means: if nothing is saved then set the default values  
    853                 data['dimensionW'] = 320; 
    854                 data['dimensionH'] = 240; 
     852                data['dimensionW'] = document.getElementById('podpress_mediadefault_dimensionW').value; 
     853                data['dimensionH'] = document.getElementById('podpress_mediadefault_dimensionH').value; 
    855854            } 
    856855        } else { 
    857             if ( 0 >= Number(data['dimensionW']) || 0 > Number(data['dimensionH'])) { 
    858                 data['dimensionW'] = 320; 
     856            //~ alert(data['type']+': '+String(data['dimensionW']) + ' : ' + String(data['dimensionH']) + ' - '+String(newMediaDefaults['dimensionW']) + ' : ' + String(newMediaDefaults['dimensionH'])); 
     857            if ( 0 >= Number(data['dimensionW']) || 0 >= Number(data['dimensionH'])) { 
     858                data['dimensionW'] = document.getElementById('podpress_mediadefault_dimensionW').value; 
    859859                data['dimensionH'] = 0; 
    860860            } 
    861         } 
    862         //alert('(1.1a)\n'+typeOfMedia+'\n'+'W: '+String(data['dimensionW'])+'\t'+ String(typeof data['dimensionW']) + '\n'+'H: '+String(data['dimensionH'])+'\t'+ String(typeof data['dimensionH'])+'\n'); 
     861            //~ alert(data['type']+': '+String(data['dimensionW']) + ' : ' + String(data['dimensionH'])); 
     862        } 
    863863        document.getElementById('podPressMedia_'+VarNum+'_dimensionW').value = data['dimensionW']; 
    864864        document.getElementById('podPressMedia_'+VarNum+'_dimensionH').value = data['dimensionH']; 
     
    868868            document.getElementById('podPressMedia_'+VarNum+'_dimensionList').selectedIndex = is_in[1]; 
    869869        } 
    870         //alert('(1b)\n'+typeOfMedia+'\n'+'W: '+String(document.getElementById('podPressMedia_'+VarNum+'_dimensionW').value) + '\n'+'H: '+String(document.getElementById('podPressMedia_'+VarNum+'_dimensionH').value)+'\ndata_W: '+String(data['dimensionW'])+'\ndata_H: '+String(data['dimensionH'])); 
    871870        //document.getElementById('podPressMedia_'+VarNum+'_id3tags_details_row').style.display = 'block'; 
    872871        document.getElementById('podPressMedia_'+VarNum+'_id3tags_details_row').style.visibility = 'visible'; 
     
    880879        document.getElementById('podPressMediaSizeWrapper_'+VarNum).style.display='none';  
    881880        if ( 0 >= Number(data['dimensionW']) || 0 >= Number(data['dimensionH'])) { // this means: if nothing is saved then set the default values  
    882             data['dimensionW'] = 320; 
    883             data['dimensionH'] = 240; 
    884         } 
    885         document.getElementById('podPressMedia_'+VarNum+'_dimensionW').value = data['dimensionW']; 
    886         document.getElementById('podPressMedia_'+VarNum+'_dimensionH').value = data['dimensionH']; 
     881            data['dimensionW'] = document.getElementById('podpress_mediadefault_dimensionW').value; 
     882            data['dimensionH'] = document.getElementById('podpress_mediadefault_dimensionH').value; 
     883            document.getElementById('podPressMedia_'+VarNum+'_dimensionW').value = data['dimensionW']; 
     884            document.getElementById('podPressMedia_'+VarNum+'_dimensionH').value = data['dimensionH']; 
     885        } 
    887886        document.getElementById('podPressMedia_'+VarNum+'_id3tags_details_row').style.visibility = 'hidden'; 
    888887        podPressPreviewImageOnChange(VarNum, document.getElementById('podPressMedia_'+VarNum+'_previewImage').value); 
  • podpress/trunk/podpress.php

    r506455 r519114  
    11<?php 
    2 define('PODPRESS_VERSION', '8.8.10.14 beta 4'); 
     2define('PODPRESS_VERSION', '8.8.10.14 beta 5'); 
    33/* 
    44Info for WordPress: 
    55============================================================================== 
    66Plugin Name: podPress 
    7 Version: 8.8.10.14 beta 4 
     7Version: 8.8.10.14 beta 5 
    88Plugin URI: http://www.mightyseek.com/podpress/ 
    99Description: The podPress plugin gives you everything you need in one easy plugin to use WordPress for Podcasting. Set it up in <a href="admin.php?page=podpress/podpress_feed.php">'podPress'->Feed/iTunes Settings</a>. If this plugin works for you, send us a comment. 
     
    4040Developer                   Dan Kuykendall (seek3r) http://www.mightyseek.com/ 
    4141Developer                   David Maciejewski (macx)    http://www.macx.de/ 
    42 Forum Support/BugBoy            Jeff Norris (iscfi)     http://www.iscifi.tv/ 
    43 Maintenance/Development 2010-2012   Tim Berger (ntm)        http://undeuxoutrois.de/ 
    44  
    45 WP Audio Player             Martin Laine            http://www.1pixelout.net/ 
    46 WP-iPodCatter               Garrick Van Buren       http://garrickvanburen.com/ 
     42Forum Support/BugBoy                Jeff Norris (iscfi)     http://www.iscifi.tv/ 
     43Maintenance/Development 2010-2012       Tim Berger (ntm)        http://undeuxoutrois.de/ 
     44 
     45WP Audio Player                 Martin Laine            http://www.1pixelout.net/ 
     46WP-iPodCatter                   Garrick Van Buren       http://garrickvanburen.com/ 
    4747 
    4848Thanks to all contributors and bug reporters! 
  • podpress/trunk/podpress_admin_class.php

    r397441 r519114  
    9494            $newMediaDefaults['duration'] = ''; 
    9595            echo "newMediaDefaults['duration'] = '".$newMediaDefaults['duration']."';\n"; 
    96             $newMediaDefaults['dimensionW'] = '320'; 
     96            if (FALSE == isset($this->settings['videoDefaultPlayerSize_x'])) { 
     97                $this->settings['videoDefaultPlayerSize_x'] = 320; 
     98            } 
     99            $newMediaDefaults['dimensionW'] = strval($this->settings['videoDefaultPlayerSize_x']); 
    97100            echo "newMediaDefaults['dimensionW'] = '".$newMediaDefaults['dimensionW']."';\n"; 
    98             $newMediaDefaults['dimensionH'] = '240'; 
     101            if (FALSE == isset($this->settings['videoDefaultPlayerSize_y'])) { 
     102                $this->settings['videoDefaultPlayerSize_y'] = 240; 
     103            } 
     104            $newMediaDefaults['dimensionH'] = strval($this->settings['videoDefaultPlayerSize_y']); 
    99105            echo "newMediaDefaults['dimensionH'] = '".$newMediaDefaults['dimensionH']."';\n"; 
    100106            $newMediaDefaults['previewImage'] = podPress_url().'images/vpreview_center.png'; 
     
    180186            } 
    181187            echo '</script>'."\n"; 
     188 
     189            echo '<input type="hidden" id="podpress_mediadefault_dimensionW" value="'.$this->settings['videoDefaultPlayerSize_x'].'" />'."\n"; 
     190            echo '<input type="hidden" id="podpress_mediadefault_dimensionH" value="'.$this->settings['videoDefaultPlayerSize_y'].'" />'."\n"; 
    182191 
    183192            echo '<input type="hidden" id="podPressMedia_defaultpreviewImage" value="'.PODPRESS_URL.'/images/vpreview_center.png" />'."\n"; 
     
    375384                echo '                      <td>'."\n"; 
    376385                echo '                          <input type="text" id="podPressMedia_'.$num.'_dimensionW" name="podPressMedia['.$num.'][dimensionW]" size="5" value="'.$thisMedia['dimensionW'].'" onchange="javascript: podPressMediaFiles['.$num.'][\'dimensionW\'] = this.value; podPressUpdateDimensionList(\''.$num.'\');" />x<input type="text" id="podPressMedia_'.$num.'_dimensionH" name="podPressMedia['.$num.'][dimensionH]" size="5" value="'.$thisMedia['dimensionH'].'" onchange="javascript: podPressMediaFiles['.$num.'][\'dimensionH\'] = this.value; podPressUpdateDimensionList(\''.$num.'\')" /> '."\n"; 
     386                echo '                           '.__('or', 'podpress').' '; 
    377387                echo '                          <select id="podPressMedia_'.$num.'_dimensionList" onchange="javascript: podPressUpdateDimensions(\''.$num.'\', this.value);">'."\n"; podPress_videoDimensionOptions($thisMedia['dimensionW'].':'.$thisMedia['dimensionH']); echo '</select>'."\n"; 
    378388                echo '                      </td>'."\n"; 
     
    674684            $newMediaDefaults['duration'] = ''; 
    675685            echo "newMediaDefaults['duration'] = '".$newMediaDefaults['duration']."';\n"; 
    676             $newMediaDefaults['dimensionW'] = '320'; 
     686            if (FALSE == isset($this->settings['videoDefaultPlayerSize_x'])) { 
     687                $this->settings['videoDefaultPlayerSize_x'] = 320; 
     688            } 
     689            $newMediaDefaults['dimensionW'] = strval($this->settings['videoDefaultPlayerSize_x']); 
    677690            echo "newMediaDefaults['dimensionW'] = '".$newMediaDefaults['dimensionW']."';\n"; 
    678             $newMediaDefaults['dimensionH'] = '240'; 
     691            if (FALSE == isset($this->settings['videoDefaultPlayerSize_y'])) { 
     692                $this->settings['videoDefaultPlayerSize_y'] = 240; 
     693            } 
     694            $newMediaDefaults['dimensionH'] = strval($this->settings['videoDefaultPlayerSize_y']); 
    679695            echo "newMediaDefaults['dimensionH'] = '".$newMediaDefaults['dimensionH']."';\n"; 
    680696            $newMediaDefaults['previewImage'] = podPress_url().'images/vpreview_center.png'; 
     
    694710            $newMediaDefaults['showme'] = 'false'; 
    695711            echo "newMediaDefaults['showme'] = ".$newMediaDefaults['showme'].";\n"; 
    696  
     712             
    697713            if ( FALSE !== empty($post->podPressMedia) ) { 
    698714                $num = 0; 
     
    763779            } 
    764780            echo '</script>'."\n"; 
     781             
     782            echo '<input type="hidden" id="podpress_mediadefault_dimensionW" value="'.$this->settings['videoDefaultPlayerSize_x'].'" />'."\n"; 
     783            echo '<input type="hidden" id="podpress_mediadefault_dimensionH" value="'.$this->settings['videoDefaultPlayerSize_y'].'" />'."\n"; 
    765784 
    766785            echo '<input type="hidden" id="podPressMedia_defaultpreviewImage" value="'.PODPRESS_URL.'/images/vpreview_center.png" />'."\n"; 
     
    957976                echo '                      <td>'."\n"; 
    958977                echo '                          <input type="text" id="podPressMedia_'.$num.'_dimensionW" name="podPressMedia['.$num.'][dimensionW]" size="5" value="'.$thisMedia['dimensionW'].'" onchange="javascript: podPressMediaFiles['.$num.'][\'dimensionW\'] = this.value; podPressUpdateDimensionList(\''.$num.'\');" />x<input type="text" id="podPressMedia_'.$num.'_dimensionH" name="podPressMedia['.$num.'][dimensionH]" size="5" value="'.$thisMedia['dimensionH'].'" onchange="javascript: podPressMediaFiles['.$num.'][\'dimensionH\'] = this.value; podPressUpdateDimensionList(\''.$num.'\')" /> '."\n"; 
     978                echo '                           '.__('or', 'podpress').' '; 
    959979                echo '                          <select id="podPressMedia_'.$num.'_dimensionList" onchange="javascript: podPressUpdateDimensions(\''.$num.'\', this.value);">'."\n"; podPress_videoDimensionOptions($thisMedia['dimensionW'].':'.$thisMedia['dimensionH']); echo '</select>'."\n"; 
    960980                echo '                      </td>'."\n"; 
  • podpress/trunk/podpress_admin_player_class.php

    r366843 r519114  
    611611            echo '          </tr>'."\n"; 
    612612            echo '          <tr id="videoPreviewPlayerWrapper" '.$showVideoPreviewOptions.'>'."\n"; 
    613             echo '              <th><label for="videoPreviewImage">'.__('Preview Image', 'podpress').':</label></th>'."\n"; 
     613            echo '              <th><label for="videoPreview">'.__('Preview Image', 'podpress').':</label></th>'."\n"; 
    614614            echo '              <td colspan="2">'."\n"; 
    615615            echo '                  <div id="podPressPlayerSpace_2"></div>'."\n"; 
     616            echo '              </td>'."\n"; 
     617            echo '          </tr>'."\n"; 
     618            echo '          <tr id="videoDefaultPlayerSizeWrapper" '.$showVideoPreviewOptions.'>'."\n"; 
     619            echo '              <th><label for="videoDefaultPlayerSize">'.__('Default (preview) player size', 'podpress').':</label></th>'."\n"; 
     620            echo '              <td colspan="2">'."\n"; 
     621            if (FALSE == isset($this->settings['videoDefaultPlayerSize_x'])) { 
     622                $this->settings['videoDefaultPlayerSize_x'] = 320; 
     623            } 
     624            if (FALSE == isset($this->settings['videoDefaultPlayerSize_y'])) { 
     625                $this->settings['videoDefaultPlayerSize_y'] = 240; 
     626            } 
     627            echo "\t\t\t\t\t".sprintf(__('width %1$s px (default: 320 px)', 'podpress'), '<input type="text" id="videoDefaultPlayerSize_x" name="videoDefaultPlayerSize_x" size="5" value="'.attribute_escape($this->settings['videoDefaultPlayerSize_x']).'" />')."<br />\n"; 
     628            echo "\t\t\t\t\t".sprintf(__('height %1$s px (default: 240 px)', 'podpress'), '<input type="text" id="videoDefaultPlayerSize_y" name="videoDefaultPlayerSize_y" size="5" value="'.attribute_escape($this->settings['videoDefaultPlayerSize_y']).'" />')."\n"; 
    616629            echo '              </td>'."\n"; 
    617630            echo '          </tr>'."\n"; 
     
    683696            $this->settings['videoPreviewImage'] = clean_url($_POST['videoPreviewImage'], array('http', 'https'), 'db'); 
    684697 
     698            $this->settings['videoDefaultPlayerSize_x'] = intval(preg_replace('/[^0-9]/', '', $_POST['videoDefaultPlayerSize_x'])); 
     699            if ($this->settings['videoDefaultPlayerSize_x'] < 0) { 
     700                $this->settings['videoDefaultPlayerSize_x'] = 320; 
     701            } 
     702            $this->settings['videoDefaultPlayerSize_y'] = intval(preg_replace('/[^0-9]/', '', $_POST['videoDefaultPlayerSize_y'])); 
     703            if ($this->settings['videoDefaultPlayerSize_y'] < 0) { 
     704                $this->settings['videoDefaultPlayerSize_y'] = 240; 
     705            } 
     706             
    685707            if(isset($_POST['disableVideoPreview'])) { 
    686708                $this->settings['disableVideoPreview'] = true; 
  • podpress/trunk/readme.txt

    r506458 r519114  
    5454= v8.8.10.14 = 
    5555* bug fix: now, the ATOM feeds will include the podPress version number according to your settings on the general settings page of podPress (like it has worked in the RSS feeds) 
     56* new: It is now possible to alter the default size for the video and enhanced audio player (preview). You may change it on the Player Settings page. 
    5657 
    5758= v8.8.10.13 = 
Note: See TracChangeset for help on using the changeset viewer.