Annonce

  •  » Plugins
  •  » Media Integrator - Comment l'installer

#1 2007-02-23 17:24:33

DJCarlos
Membre
2007-02-15
29

Media Integrator - Comment l'installer

DJCarlos a écrit:

Quelques erreurs se sont glissez dans le fichier install qui vient dans le MOD Media Integrator.
Un modo pourraiit Verrouiller ce sujet pour le garder propre.
La personne concernee pourrait mettre a jour le fichier install contenu dans le MOD
Voici les instructions a suivre, mes corrections sont en rouge (Pour le forum)

Renommer le fichier a : HOW TO INSTALL - README FIRST

##############################################################
##                                                                                                                                 ##
## MOD Title: Media Integrator                                                                                        ##
## MOD Author: noiry <http://forum.phpwebgallery.net/profile.php?id=1545>                     ##
## MOD Mise a jour par: DJCarlos                                                                                    ##
## MOD Description: SlideShow enhancement                                                                   ##
##                                                                                                                                 ##
## Installation Level: Advanced                                                                                        ##
## Installation Time: 30 Minutes                                                                                       ##
##############################################################
## Author's notes:
##
##   This MOD allow to play all media files in PWG 1.6.1
##   It Also Works with         PWG 1.6.2
##      Supported player: windows media player, quick time, flash
##
##############################################################
## MOD History:
##
##   2006-09-22 - Version 1.0
##      - Initial Release
##   
##   2007-12-23 - Mise a jour du fichier Install
##
##############################################################
## Before Adding This MOD To Your PWG, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ Remarques generales ]----------------------------------------------------------------------------
# Pensez a ne pas laisser des lignes ou des espaces a la fin de vos fichiers
#
#-----[ CREATE OR UPDATE YOUR config_local.inc.php ]  This is located in the folder  /include/  --------------------------------------------
# IF YOU HAVE TO CREATE THE FILE

<?php
include/config_local.inc.php
?>

# IF YOU HAVE TO UPDATE THE FILE add this Between the <?php    AND  ?>     

include/config_local.inc.php

#
#-----[ UPDATE TO CONTAIN ]------------------------------------------
# Code:
// file_ext : file extensions (case sensitive) authorized
$conf['file_ext'] = array('jpg','JPG','png','PNG','gif','GIF','zip',
                      'mp3','ogg','avi','AVI','asf','ASF','wmv','WMV',
              'mpg','MPG','mpeg','MPEG','divx','DIVX','xvid','XVID',
              'qt','QT','mp4','MP4','mov','MOV','swf','SWF');

// picture_ext : file extensions for picture file, must be a subset of
// file_ext
$conf['picture_ext'] = array('jpg','JPG','png','PNG','gif','GIF');

// music_ext : file extensions for Music file (played in WMV), must be a
// subset of file_ext
$conf['music_ext'] = array('mp3','MP3');

// wmv_ext : file extensions for Windows Media Player file, must be a subset of
// file_ext
$conf['wmv_ext'] = array('avi','AVI','asf','ASF','wmv','WMV','mpg','MPG','mpeg','MPEG','divx','DIVX','xvid','XVID');

// qtime_ext : file extensions for Quick Time file, must be a subset of
// file_ext
$conf['qtime_ext'] = array('qt','QT','mp4','MP4','mov','MOV');

// flash_ext : file extensions for Flash file, must be a subset of
// file_ext
$conf['flash_ext'] = array('swf','SWF');

#
#-----[ PREPARE YOUR TEMPLATE(S) ]--------------------------------------------
#    REPEAT FOR ALL TEMPLATE USED
#
# in icon Directory Copy:   Example pour YOGA->   template/yoga/icon
Enlever la mention au fichier noflash.png
video_curtain.png

# in icon/mimetypes Directory Copy:              Example pour YOGA->   template/yoga/icon/mimetypes

asf.png
divx.png
mp4.png
mpg.png

mov.png
qt.png
swf.png
wmv.png
xvid.png

# in the template Directory (yoga-dark) Copy:   Example pour YOGA->  template/yoga/
media-player.css
#
#-----[ OPEN ]----------------------------------------------------------------
#    REPEAT FOR ALL TEMPLATE USED
layout.css
#
#-----[ FIND ]----------------------------------------------------------------
# around line 14

/* common css */
@import "../../template-common/layout.css";
#
#-----[ AFTER, ADD ]------------------------------------------
#
/* MOD CSS */
@import "media-player.css";

#-----[ OPEN ]----------------------------------------------------------------
#    REPEAT FOR ALL TEMPLATE USED - YOGA TEMPLATE INCLUDED IN ZIP FILE
picture.tpl
#
#-----[ FIND ]----------------------------------------------------------------
# around line 60
<!-- END high -->
  <img src="{SRC_IMG}" style="width:{WIDTH_IMG}px;height:{HEIGHT_IMG}px;" alt="{ALT_IMG}">
#
#-----[ REPLACE WITH ]------------------------------------------
# currently 91 following lines
# (Read comments in the same time)
<!-- END high -->

<!-- BEGIN picture -->        <!-- MOD Video Integrator -->
  <img class="image" src="{picture.SRC_IMG}" style="width:{picture.WIDTH_IMG}px;height:{picture.HEIGHT_IMG}px;" alt="{picture.ALT_IMG}"/>
<!-- END picture -->

<!-- BEGIN music -->
<!-- If you don't plan to display MP3 or any files readable via Windows Media Player on your web site, -->
<!--   this movie block can be removed from begin movie to end movie.                 -->
<!-- Windows Media Player for PhpWebGallery - a PHP based picture gallery             -->
<!-- Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net             -->
<!-- Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net             -->
<!-- Based on documention from http://msdn.microsoft.com/library/en-us … ebpage.asp -->
<span class=curtain>
<object id="MediaPlayer" height=46 classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
      <param name="autostart" value="true" />
      <param name="filename" value="{music.SRC_MUSIC}" />
      <param name="showcontrols" value="true" />
          <embed type="application/x-mplayer2" src="{music.SRC_MUSIC}" name="MediaPlayer" height="46" showcontrols="true" autostart="true"></embed>
</object> <!-- embed is needed for Opera and FireFox -->       
</span>
<!-- END music -->

<!-- About curtain: Visible under Opera and under IE only with Windows Media Player, but just a small strip under Firefox -->
<!-- BEGIN wmv -->
<!-- If you don't plan to display WMV or any files readable via Windows Media Player on your web site, -->
<!--   this movie block can be removed from begin movie to end movie.                 -->
<!-- Windows Media Player for PhpWebGallery - a PHP based picture gallery             -->
<!-- Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net             -->
<!-- Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net             -->
<!-- Based on documention from http://msdn.microsoft.com/library/en-us … ebpage.asp -->
<span class=curtain>
<object id="player" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
    codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701">
      <param name="autostart" value="true" />
      <param name="enablecontextmenu" value="true" />
      <param name="fullscreen" value="false" />
      <param name="stretchtofit" value="false" />
      <param name="uimode" value="none" />
      <param name="filename" value="{wmv.SRC_WMV}" />
      <param name="showcontrols" value="false" />
      <param name="animationatstart" value="true" />
      <param name="showdisplay" value="false" />
      <param name="transparentatstart" value="true" />
      <param name="showstatusbar" value="true" />
      <param name="allowchangedisplaysize" value="true" />
      <param name="autosize" value="true" />
      <param name="volume" value="0" />
      <param name="type" value="video/x-ms-asf-plugin" />
      <param name="pluginspage" value="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" />
      <embed pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
            src="{wmv.SRC_WMV}" showcontrols="false" autostart="true" loop="false"
        animationatstart="true" showdisplay="false" transparentatstart="true"
          showstatusbar="false" enablecontextmenu="true" width="640" height="500"
          fullscreen="false" stretchtofit="false" uimode="none" id="embedplayer"
          allowchangedisplaysize="true" autosize="true" displaysize="mpfittosize"
          autorewind="true" volume="0" type="video/x-ms-asf-plugin" />
</object> <!-- embed is needed for Opera and FireFox -->       
</span>
<!-- END wmv -->

<!-- BEGIN qtime -->
<!-- If you don't plan to display MOV files on your web site,                     -->
<!--   this qtime block can be removed from begin qtime to end qtime.                 -->
<!-- Quicktime Player for PhpWebGallery - a PHP based picture gallery                 -->
<!-- Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net             -->
<!-- Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net             -->
<!-- Based on documention from http://www.apple.com/quicktime/tutorials/embed.html -->
<span class=curtain>
<object id="player" CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="348" HEIGHT="271"
    CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
      <param name="Controller" VALUE="true" />
      <param name="Type" VALUE="video/quicktime" />
      <param name="Autoplay" VALUE="true" />
      <param name="TargetCache" VALUE="true" />
      <param name="Cache" VALUE="true" />
      <param name="Target" VALUE="myself" />
      <param name="Src" VALUE="{qtime.SRC_QTIME}" />
      <param name="PluginsPage" VALUE="http://www.apple.com/quicktime/download/" />
    <param name="Loop" VALUE="false" />
    <param name="Scale" VALUE="ToFit" />
      <param name="Volume" VALUE="100" />
      <embed PluginsPage="http://www.apple.com/quicktime/download/"
            Controller="true" Type="video/quicktime" Autoplay="true"
            TargetCache="true" Cache="true" id="embedplayer"
          Target="myself" Src="{qtime.SRC_QTIME}"  WIDTH="348" HEIGHT="271"
          Loop="false" Scale="ToFit" Volume="100" />
</object> <!-- embed is needed for Opera and FireFox -->
</span>
<!-- END qtime -->

<!-- BEGIN flash -->                <!-- MOD Video Integrator -->
<!-- If you don't plan to display SWF files on your web site,                      -->
<!--   this flash block can be removed from begin flash to end flash.                 -->
<!-- Flash Player for PhpWebGallery - a PHP based picture gallery                 -->
<!-- Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net             -->
<!-- Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net             -->
<!-- Based on documention from http://www.macromedia.com/devnet/flashplayer/ -->
<span id=curtain>
<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
    width="348" height="256" />
    <param name="Movie" value="{flash.NAME_FLASH}" />
    <param name="Play" value="true" />
    <param name="Loop" value="false" />
    <param name="Quality" value="AutoHigh" />
    <param name="Scale" value="ExactFit" />
    <param name="SAlign" value="B" />
    <param name="PluginsPage" value="http://www.macromedia.com/go/getflashplayer" />
    <param name="Type" value="application/x-shockwave-flash" />
      <param name="Volume" value="0" />
    <embed src="{flash.NAME_FLASH}" Type="application/x-shockwave-flash"
            PluginsPage="http:/www.macromedia.com/gogetflashplayer"
            width="348" height="256" id="embedplayer"
            Play="true" Loop="false" Quality="AutoHigh" Scale="ExactFit" SAlign="B"
            width="348" height="256" align="middle" />
</object> <!-- embed is needed almost for FireFox -->
</span>
<!-- END flash -->

#
#-----[ PREPARE YOUR MODULES DIRECTORY ]--------------------------------------------
#
# Refer to your PhpWebGallery Directory Copy:
modules/index.php
modules/media_integrator.php
# Please create "modules" directory if it doesn't exist yet
# COPY THE FILES media_integrator.php AND index.php LOCATED IN THE /MODULES
# DIRECTORY OF YOUR MEDIA INTEGRATOR DIRECTORY INTO YOUR LOCAL /MODULES directory

#
#-----[ OPEN ]----------------------------------------------------------------
#
picture.php
#
#-----[ FIND ]----------------------------------------------------------------
# around line 435
include(PHPWG_ROOT_PATH.'include/page_header.php');
$template->set_filenames(array('picture'=>'picture.tpl'));

#
#-----[ AFTER, ADD ]------------------------------------------
#

//   Begin MOD Video Integrator
include(PHPWG_ROOT_PATH. 'modules/media_integrator.php');
//   End MOD Video Integrator

# Think about other templates... if your members use them !!!
#
#----- FOR PWG 1.6.2 [EDIT THE create_listing.php  FILE LOCATED in the TOOLS DIRECTORY OF MEDIA INTEGRATOR]
#------FIND - Around line 64 

// $conf['version'] is used to verify the compatibility of the generated
// listing.xml file and the PhpWebGallery version you're running
$conf['version'] = '1.6.1';

#------REPLACE '1.6.1'   FOR '1.6.2'           -> It seems obvious but just in case

#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# COPY all the modified files in your directory -> It is obvious but just in case...
#

Hors ligne

#2 2007-02-23 18:35:50

VDigital
Former Piwigo Team
Montpellier (FR)
2005-05-04
15127

Re: Media Integrator - Comment l'installer

DJCarlos a écrit:

DJCarlos a écrit:

Quelques erreurs se sont glissez dans le fichier install qui vient dans le MOD Media Integrator.
Un modo pourraiit Verrouiller ce sujet pour le garder propre.
La personne concernee pourrait mettre a jour le fichier install contenu dans le MOD
Voici les instructions a suivre, mes corrections sont en rouge (Pour le forum)

Renommer le fichier a : HOW TO INSTALL - README FIRST

("Quelques erreurs se sont glissez:" on lira se sont glissées...    8-)    )
A quoi, le modo [pourraiit] répondra que tu as raison, je pourrais verrouiller.
La personne concernée, si je lis bien "## MOD Mise a jour par: DJCarlos "     8-)

"[i]Voici les instructions a suivre, mes corrections sont en rouge (Pour le forum)"[/i]
sauf que tu introduis de nouvelles erreurs...

En effet, pour ma part et encore en lecture rapide... :

DJCarlos a écrit:

## MOD Title: Media Integrator                                                                                        ##
## MOD Author: noiry <http://forum.phpwebgallery.net/profile.php?id=1545>                     ##
## MOD Mise a jour par: DJCarlos                                                                                    ##
## MOD Description: SlideShow enhancement

On ne parlera pas de Slideshow (Diaporama) car cela n'a rien à voir.
Peut être de:  "Media support enhancement".

DJCarlos a écrit:

#-----[ Remarques generales ]----------------------------------------------------------------------------
# Pensez a ne pas laisser des lignes ou des espaces a la fin de vos fichiers

Un mod doit être en anglais, merci.

DJCarlos a écrit:

<?php
include/config_local.inc.php
?>

Qui a dit de mettre des balises php, ici?
Je ne sais pas comment c'était avant mais c'est pire.


DJCarlos a écrit:

#
#-----[ UPDATE TO CONTAIN ]------------------------------------------
# Code:

C'est là qu'il faut conseiller aux débutants (le mod ne s'adresse pas aux débutants)
de penser aux balises de PHP en cas de création.





Enfin:

DJCarlos a écrit:

#
#----- FOR PWG 1.6.2 [EDIT THE create_listing.php  FILE LOCATED in the TOOLS DIRECTORY OF MEDIA INTEGRATOR]
#------FIND - Around line 64 

// $conf['version'] is used to verify the compatibility of the generated
// listing.xml file and the PhpWebGallery version you're running
$conf['version'] = '1.6.1';

#------REPLACE '1.6.1'   FOR '1.6.2'           -> It seems obvious but just in case
#

Je n'ai aucune idée d'où provient cette histoire de $conf dans un fichier listing.xml cela n'a aucun sens.
Etant donné que le fichier listing.xml est un généré par create_listing_file.php, la version indiquée se verra écrasée automatiquement par principe du fonctionnement des sites distants.
Tout utilisateur avancé et capable de mettre en oeuvre un MOD l'aura rectifié naturellement de lui-même.

Merci de corriger, et de republier...
8-)


Vincent -« Plus vidéaste averti que photographe amateur... »
La galerie - Le blog   

Piwigo est une application libre de gestion de photos en ligne.

Hors ligne

  •  » Plugins
  •  » Media Integrator - Comment l'installer

Pied de page des forums

Propulsé par FluxBB

github twitter newsletter Faire un don Piwigo.org © 2002-2024 · Contact