Changeset 3974


Ignore:
Timestamp:
10/04/09 15:35:30 (10 years ago)
Author:
vdigital
Message:

[Charlies_content] 2.0.e (Called ngoc version)
buffermessage correction for flv (One in upper left corner)
The lumenation bypass is maintain (but no longer needed with recent Piwigo versions)
Even getID3 v2.0.0-b5 is available because not tested (getID3 v2.0.0-b4 is maintain)

Location:
extensions/charlies_content
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/charlies_content/charlie_flvstreamer.tpl

    r3318 r3974  
    33 If you don't plan to play flv files on your web site, 
    44 change player by the one you want 
    5  Based on documention from http://bluebird.univ-reunion.fr/fms/proto/flv-stream-player/ 
     5 Based on documention from http://flv-player.net/players/maxi/documentation/ 
    66*} 
    77<br /> 
     
    3434                                Buffering 
    3535                                        *}{if $Charlies.buffer!=''}&amp;buffer={$Charlies.buffer}{/if}{* - 
    36                                         *}{if ($Charlies.buffermessage==1)}&amp;buffermessage=1&amp;buffercolor={$Charlies.color5|substr:1}{/if}{* - 
     36                                        *}&amp;buffermessage={$Charlies.buffermessage}&amp;buffercolor={$Charlies.color5|substr:1}{* - 
    3737                                        *}{if ($Charlies.buffershowbg==1)}&amp;buffershowbg=1&amp;bufferbgcolor={$Charlies.color6|substr:1}{/if}{* - 
    3838                                Config by element 
  • extensions/charlies_content/charlies.inc.php

    r3341 r3974  
    3232  if (isset($conf['NO_https']) and $conf['NO_https'] and strncasecmp($url, 'https://', 8) == 0 )  
    3333          $url = 'http://' . substr($url, 8); 
    34                  
     34 
    3535        if (!isset($conf['video_default_width']))       $conf['video_default_width'] = $charlie['video_default_width'];  
    3636        if (!isset($conf['video_default_height']))      $conf['video_default_height'] = $charlie['video_default_height']; 
  • extensions/charlies_content/charlies_config.tpl

    r3318 r3974  
    126126                <li> 
    127127                        <span class="property">{'Video buffer percent message'|@translate}</span> 
    128                         <input type="radio" value="1" name="buffermessage" {if ($Charlies.buffermessage==1)} checked="checked" {/if}/>{'On'|@translate} 
    129                         <input type="radio" value="0" name="buffermessage" {if ($Charlies.buffermessage==0)} checked="checked" {/if}/>{'Off'|@translate} 
     128                        <input type="text" size="32" id="buffermessage" name="buffermessage" value="{$Charlies.buffermessage}" title="{'Buffering _n_'|@translate}" /> 
    130129                </li> 
    131130                <li> 
  • extensions/charlies_content/main.inc.php

    r3341 r3974  
    11<?php /* 
    22Plugin Name: Charlies content 
    3 Version: 2.0.d 
     3Version: 2.0.e 
    44Description: Charlies content is a global solution for none picture files. 
    55Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=119 
     
    11112 - A template is used in state of the default content 
    1212 
    13 Localisation of Charlies content: Possible 
    14  
    15 Requirements/recommendations: 
    16 1 - php 5 
    17 2 - GETID3 php modules (James Heinrich, Allan Hansen) 
    18 3 - $charlie['xxxxx']=array(....extensions....) means: 
    19     if file extension is in the array a file charlie_xxxxx.tpl will be used and  
    20     must be in the charlies_content directory 
     13Dependencies: 
     14http://getid3.sourceforge.net/ 
     15http://flv-player.net/players/maxi/documentation/ 
    2116 
    2217/** History *************** 
     18  2009-05-24 2.0.e (Called ngoc version) 
     19                   buffermessage correction for flv 
     20                                                 The lumenation bypass is maintain (but no longer needed with recent Piwigo versions) 
     21                                                 getID3 v2.0.0-b5 not tested => Still in v2.0.0-b4 
    2322  2009-05-24 2.0.d (Called lumenation bypass) 
    2423                   some url were generated with https:// 
     
    5756define('CHARLIES_DIR' , basename(dirname(__FILE__))); 
    5857define('CHARLIES_PATH' , PHPWG_PLUGINS_PATH . CHARLIES_DIR . '/'); 
    59 define('CHARLIES_VER' , '2.0.d'); 
     58define('CHARLIES_VER' , '2.0.e'); 
    6059$x = @file_get_contents( $conf['local_data_dir'].'/plugins/'.basename(dirname(__FILE__)).'.dat'); 
    6160if ($x!==false) $charlie = unserialize($x); 
     
    8786        if (!isset($charlie['ondoubleclicktarget']))            $charlie['ondoubleclicktarget'] = 0; 
    8887        if (!isset($charlie['buffer']))                 $charlie['buffer'] = 10; 
    89         if (!isset($charlie['buffermessage']))  $charlie['buffermessage'] = 1; 
     88        if (!isset($charlie['buffermessage']))  $charlie['buffermessage'] = 'Buffering _n_'; 
     89        if ($charlie['buffermessage']==1)       $charlie['buffermessage'] = 'Buffering _n_'; 
    9090        if (!isset($charlie['buffershowbg']))   $charlie['buffershowbg'] = 0; 
    9191        if (!isset($charlie['config']))                 $charlie['config'] = 0; 
Note: See TracChangeset for help on using the changeset viewer.