Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 112

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/dangon27/decolore.maslindo.com/forum/includes/bbcode.php on line 483
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3824: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:112)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3826: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:112)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3827: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:112)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3828: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:112)
decolore.maslindo.com • Afficher le sujet - Insértion player vidéo dans drupal 7

Welcome Guest ( Connexion | M’enregistrer )



Heures au format UTC + 1 heure



Poster un nouveau sujet Répondre au sujet  [ 1 message ] 
Auteur Message
 Sujet du message: Insértion player vidéo dans drupal 7
MessagePosté: Mar 26 Juil 2011 13:45 
Administrateur du site

Inscription: Lun 9 Nov 2009 17:10
Messages: 75

Hors ligne
Voici la méthode que j'ai utilisé pour insérer mon player vidéo (swf) dans mon template drupal 7 (mon template est marinelli mais je pense que c'est identique dans tous les templates).

1 - Créer un répertoire nommé "scripts" à la racine de son site (dans le répertoire marinelli).
2 - Insérer dans ce répertoire le fichier swfobject.js (voir fichier joint pour le télécharger)
3 - Ouvrir la page html.tpl.php (page ou se trouve la balise <head></head>). Juste avant la fermeture du </head> insérer ce script javascript:
Code:
<script type="text/javascript" src="http://localhost/ffsb_maslindo/sites/all/themes/marinelli/scripts/swfobject.js"></script>
(Mettre l'url complète de votre site)
4 - Créer un répertoire "videos" dans marinelli (sites/all/themes/marinelli/videos)
5 - Créer un répertoire "videos_img" dans videos (sites/all/themes/marinelli/videos/videos_img). Ce répertoire servira à mettre la première image de chaque vidéo.
6 - Placer dans le répertoire "videos" sa vidéo au format .flv
7 - Placer dans le répertoire "videos_img" son image à la bonne dimension.
8 - Aller dans la page drupal ou l'on veut placer sa vidéo sur son site web et insérer ce code :
Code:
<div id="contentplayer" class="videoContenu">
<a href="http://www.macromedia.com/go/getflashplayer">Téléchargez le Flash Player</a> pour voir cette vid&eacute;o, ou mettez &agrave; jour votre player.</div>
<script type="text/javascript">
var so = new SWFObject('http://localhost/ffsb_maslindo/sites/all/themes/marinelli/player.swf','mpl','195','160','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&file=http://localhost/ffsb_maslindo/sites/all/themes/marinelli/videos/test_video.flv&image=http://localhost/ffsb_maslindo/sites/all/themes/marinelli/videos/videos_img/test_video.jpg&frontcolor=0058a0&lightcolor=0058a0&mute=fals');
so.write('contentplayer');
</script>

Attention bien vérifier que l'on est en FULL HTML !!
Ce code va appeler le player swf et insérer la vidéo dedans. A l'endroit ou il y a les chiffres 195,160 vous mettez la largeur et la hauteur que vous voulez en pixels.
9 - Sauver et allez vérifier que votre player et la vidéo s'affichent bien.
10 - En ce qui concerne la css, j'ai mis une class "videoContenu" dans laquelle j'ai mis ce code css :
Code:
.videoContenu {
        position: relative;
        border: 1px solid #8098d6;
        float: left;
        margin-right: 10px;
}


FIN


Vous n’avez pas les permissions nécessaires pour voir les fichiers joints à ce message.


 Profil Envoyer un e-mail  
 
Afficher les messages postés depuis:  Trier par  
Poster un nouveau sujet Répondre au sujet  [ 1 message ] 

Heures au format UTC + 1 heure


Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 1 invité


Vous ne pouvez pas poster de nouveaux sujets
Vous ne pouvez pas répondre aux sujets
Vous ne pouvez pas éditer vos messages
Vous ne pouvez pas supprimer vos messages
Vous ne pouvez pas joindre des fichiers

Rechercher:
Aller à:  
cron