Problème affiche vidéo dans portail phpBB
maxime31
Messages postés
56
Statut
Membre
-
maxime31 Messages postés 56 Statut Membre -
maxime31 Messages postés 56 Statut Membre -
[b]Your Portal Version:[/b] 1.0.6
[b]Your phpBB Type:[/b] Standard phpBB3
Original site : http://www.laryngo.com/forum/portal.php
New portal board : http://www.laryngo.com/forum/portal.php
Bonsoir, je ne parviens pas a installer correctement un bloc permettant d'afficher une vidéo aléatoire.
Je l'ai fait en page d'accueil de mon site, mais impossible de le reproduire dans un bloc.
Il est stocké dans
http://www.laryngo.com/forum/styles/provereor/template/portal/block/bloc_video.html
il affiche un carré blanc dans le portail, et un message d'erreur quandn on rentre son adresse, que je ne comprends pas.
Merci d'avance pour votre aide
Voici le code du fichier, appelé dans le bloc :
Maxime
[b]Your phpBB Type:[/b] Standard phpBB3
Original site : http://www.laryngo.com/forum/portal.php
New portal board : http://www.laryngo.com/forum/portal.php
Bonsoir, je ne parviens pas a installer correctement un bloc permettant d'afficher une vidéo aléatoire.
Je l'ai fait en page d'accueil de mon site, mais impossible de le reproduire dans un bloc.
Il est stocké dans
http://www.laryngo.com/forum/styles/provereor/template/portal/block/bloc_video.html
il affiche un carré blanc dans le portail, et un message d'erreur quandn on rentre son adresse, que je ne comprends pas.
Merci d'avance pour votre aide
Voici le code du fichier, appelé dans le bloc :
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
$user->session_begin();
$auth->acl($user->data);
$user->setup();
$forum_id = request_var('forum_id', 0);
$dontshow = 20;
$where = ($dontshow) ? " WHERE forum_id <> $dontshow" : '';
$sql = 'SELECT forum_id,topic_id, topic_time, topic_title, topic_views, topic_replies, topic_poster, topic_first_poster_name, topic_first_poster_colour, topic_last_post_id, topic_last_poster_id, topic_last_poster_name, topic_last_poster_colour, topic_last_post_time
FROM ' . TOPICS_TABLE .
$where .
' ORDER BY topic_last_post_time DESC ' .
' LIMIT 0 , 5 ';
$result = $db->sql_query($sql);
?>
<?php
$videos = array(
//--> NOUS RESTONS VIGILANTS
array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.youtube.com/v/Gz-GQyPfg80&hl=fr_FR&fs=1&color1=0x234900&color2=0x4e9e00'
)
//--> IADE UNITED
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.youtube.com/v/HHQrGrmA4-I&hl=fr_FR&fs=1&color1=0x234900&color2=0x4e9e00'
)
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.dailymotion.com/swf/video/xd4wiy?background=%23171D1B&foreground=%23F7FFFD&highlight=%230EFF00&autoPlay=0&hideInfos=0&width=320&additionalInfos=1&colors=background%3A171D1B%3Bforeground%3AF7FFFD%3Bspecial%3A0EFF00%3B'
)
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.dailymotion.com/swf/video/xd76r0?background=%23171D1B&foreground=%23F7FFFD&highlight=%230EFF00&autoPlay=0&hideInfos=0&width=320&additionalInfos=1&colors=background%3A171D1B%3Bforeground%3AF7FFFD%3Bspecial%3A0EFF00%3B'
)
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.dailymotion.com/swf/video/xddw53?background=%23171D1B&foreground=%23F7FFFD&highlight=%230EFF00&autoPlay=0&hideInfos=0&width=320&additionalInfos=1&colors=background%3A171D1B%3Bforeground%3AF7FFFD%3Bspecial%3A0EFF00%3B'
)
//--> VIDEO BREST 18 juin
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.youtube.com/v/mlUhM-qp0SU&hl=fr_FR&fs=1&color1=0x234900&color2=0x4e9e00'
)
//--> VIDEO laryngo 18 juin
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.megavideo.com/v/BEJWNVOC3ca1142a4303d885a56d942778a56840'
)
//--> VIDEO 18 juin aristoIADE
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.youtube.com/v/kdKM5JDuTm0&hl=fr_FR&fs=1&color1=0x234900&color2=0x4e9e00'
)
//--> LARYNGO BANDE SON MINISTERE 25 JUIN
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.megavideo.com/v/IQ0I96RQ6b8c1f213e9ee107d1911bf3f8f3fd68'
)
//--> BACHELOT RMC
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.youtube.com/v/IYlVq1zD8RU&hl=fr_FR&fs=1?color1=0x234900&color2=0x4e9e00'
)
//--> 18 Juin BFC partie 1
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.youtube.com/v/OCFd1AHy8jM&hl=fr_FR&fs=1?color1=0x234900&color2=0x4e9e00'
)
//--> 18 Juin BFC partie 2
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.youtube.com/v/mjgXFj6PNTU&hl=fr_FR&fs=1?color1=0x234900&color2=0x4e9e00'
)
//--> Printemps IADE
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.youtube.com/v/DlFDhJEQ218&hl=fr_FR&fs=1?color1=0x234900&color2=0x4e9e00'
)
//--> Vague Bleue
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.megavideo.com/v/JP6XFJ7Rf09d064efaef13d39ec4b985c15817e5'
)
//--> BFC 24h IADE Vs BACHELOT
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.youtube.com/v/0hSNJIXhpb8?fs=1&hl=fr_FR'
)
//--> laryngo DDAY IADE
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.youtube.com/v/Dms8h8p3OF0?fs=1&hl=fr_FR'
)
//--> Vendredi Noir IADE
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.dailymotion.com/swf/video/xf35ut?additionalInfos=0'
)
//--> 1 octobre Vendredi Noir IADE
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.youtube.com/v/RvuoWaSkzVA?fs=1&hl=fr_FR'
)
);
$video_a_afficher = $videos[rand(0,sizeof($videos) - 1)];
?>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
{$LR_BLOCK_H_L}Your_Block_Title{$LR_BLOCK_H_R}
<div style="text-align: center;">
<body bgcolor="#009933" text="#000000" link="#990000">
<div align="center">
<object width="<?php echo $video_a_afficher['width'];?>" height="<?php echo $video_a_afficher['height'];?>">
<param name="movie" value="<?php echo $video_a_afficher['../../../../../../src'];?>">
<param name="allowFullScreen" value="true">
<param name="allowScriptAccess" value="always">
<embed type="application/x-shockwave-flash" src="<?php echo $video_a_afficher['../../../../../../src'];?>" width="<?php echo $video_a_afficher['width'];?>" height="<?php echo $video_a_afficher['height'];?>" allowfullscreen="true" allowscriptaccess="always"></embed></object>
</div>
</body>
{$LR_BLOCK_F_L}{$LR_BLOCK_F_R}
Maxime
A voir également:
- Problème affiche vidéo dans portail phpBB
- Montage video windows - Guide
- Insérer vidéo dans powerpoint - Guide
- Comment télécharger une vidéo youtube - Guide
- Nommez une application d'appel vidéo ou de visioconférence - Guide
- Freemake video downloader - Télécharger - Téléchargement & Transfert
4 réponses
Recherche sur googe mais je crois que si tu modifie une ligne du bloc tu pourra lire les video prmettant d'afficher en aleatoire , je crois que c'est les dernière ligne qu'il faut modifier !
J'ai pas mal cherché, sur google comme sur le site du créateur du portail (anglais), mais je n'ai rien trouvé
Si tu as des idées que je pourrai tester, je suis preneur
Si tu as des idées que je pourrai tester, je suis preneur
J'ai allégé le code, mais ça n'améliore pas trop mon problème. C'est pas contre bcp plus simple. Il restait des morceaux de code utilisé par un autre script.
http://www.laryngo.com/forum/styles/provereor/template/portal/block/testeur.html
http://www.laryngo.com/forum/styles/provereor/template/portal/block/testeur.html
{$C_BLOCK_H_L}testeur{$C_BLOCK_H_R}
<?php
$videos = array(
//--> NOUS RESTONS VIGILANTS
array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.youtube.com/v/Gz-GQyPfg80&hl=fr_FR&fs=1&color1=0x234900&color2=0x4e9e00'
)
//--> IADE UNITED
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.youtube.com/v/HHQrGrmA4-I&hl=fr_FR&fs=1&color1=0x234900&color2=0x4e9e00'
)
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.dailymotion.com/swf/video/xd4wiy?background=%23171D1B&foreground=%23F7FFFD&highlight=%230EFF00&autoPlay=0&hideInfos=0&width=320&additionalInfos=1&colors=background%3A171D1B%3Bforeground%3AF7FFFD%3Bspecial%3A0EFF00%3B'
)
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.dailymotion.com/swf/video/xd76r0?background=%23171D1B&foreground=%23F7FFFD&highlight=%230EFF00&autoPlay=0&hideInfos=0&width=320&additionalInfos=1&colors=background%3A171D1B%3Bforeground%3AF7FFFD%3Bspecial%3A0EFF00%3B'
)
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.dailymotion.com/swf/video/xddw53?background=%23171D1B&foreground=%23F7FFFD&highlight=%230EFF00&autoPlay=0&hideInfos=0&width=320&additionalInfos=1&colors=background%3A171D1B%3Bforeground%3AF7FFFD%3Bspecial%3A0EFF00%3B'
)
//--> VIDEO BREST 18 juin
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.youtube.com/v/mlUhM-qp0SU&hl=fr_FR&fs=1&color1=0x234900&color2=0x4e9e00'
)
//--> VIDEO laryngo 18 juin
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.megavideo.com/v/BEJWNVOC3ca1142a4303d885a56d942778a56840'
)
//--> VIDEO 18 juin aristoIADE
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.youtube.com/v/kdKM5JDuTm0&hl=fr_FR&fs=1&color1=0x234900&color2=0x4e9e00'
)
//--> LARYNGO BANDE SON MINISTERE 25 JUIN
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.megavideo.com/v/IQ0I96RQ6b8c1f213e9ee107d1911bf3f8f3fd68'
)
//--> BACHELOT RMC
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.youtube.com/v/IYlVq1zD8RU&hl=fr_FR&fs=1?color1=0x234900&color2=0x4e9e00'
)
//--> 18 Juin BFC partie 1
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.youtube.com/v/OCFd1AHy8jM&hl=fr_FR&fs=1?color1=0x234900&color2=0x4e9e00'
)
//--> 18 Juin BFC partie 2
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.youtube.com/v/mjgXFj6PNTU&hl=fr_FR&fs=1?color1=0x234900&color2=0x4e9e00'
)
//--> Printemps IADE
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.youtube.com/v/DlFDhJEQ218&hl=fr_FR&fs=1?color1=0x234900&color2=0x4e9e00'
)
//--> Vague Bleue
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.megavideo.com/v/JP6XFJ7Rf09d064efaef13d39ec4b985c15817e5'
)
//--> BFC 24h IADE Vs BACHELOT
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.youtube.com/v/0hSNJIXhpb8?fs=1&hl=fr_FR'
)
//--> laryngo DDAY IADE
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.youtube.com/v/Dms8h8p3OF0?fs=1&hl=fr_FR'
)
//--> Vendredi Noir IADE
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.dailymotion.com/swf/video/xf35ut?additionalInfos=0'
)
//--> 1 octobre Vendredi Noir IADE
,array(
'width' => '400'
,'height' => '300'
,'src' => 'http://www.youtube.com/v/RvuoWaSkzVA?fs=1&hl=fr_FR'
)
);
$video_a_afficher = $videos[rand(0,sizeof($videos) - 1)];
?>
<body text="#000000" link="#990000">
<p>
<object width="<?php echo $video_a_afficher['width'];?>" height="<?php echo $video_a_afficher['height'];?>">
<param name="movie" value="<?php echo $video_a_afficher['src'];?>">
<param name="allowFullScreen" value="true">
<param name="allowScriptAccess" value="always">
<embed type="application/x-shockwave-flash" src="<?php echo $video_a_afficher['src'];?>" width="<?php echo $video_a_afficher['width'];?>" height="<?php echo $video_a_afficher['height'];?>" allowfullscreen="true" allowscriptaccess="always"></embed></object>
</p>
{$C_BLOCK_F_L}{$C_BLOCK_F_R}