Random vidéos in a central bloc

Current Version: 1.0.6
Released: 09.01.10
Forum rules
Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.

Topic author
maxmar
Active Member
Active Member
Posts: 5
Joined: 13. June 2011 08:48

Random vidéos in a central bloc

Post by maxmar »

Your Portal Version: 1.0.6
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Beginner
Boardlink: http://www.laryngo.com/forum/portal.php

What have you done before the problem was there?
Reading knowledge base

What have you already tryed to solve the problem?
changing code

Description and Message
I'm trying to re install a randow vidéo affichage in a portal center block, as i've done in my original site.

Original site : http://www.laryngo.com

New portal board : http://www.laryngo.com/forum/portal.php

I can't do the same thing

here's the code of the html block

the file called in my portal is this one
http://www.laryngo.com/forum/styles/pro ... steur.html


Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>fichier testeur</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

{$C_BLOCK_H_L}testeur{$C_BLOCK_H_R}

<body>

<?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>

</body>
{$C_BLOCK_F_L}{$C_BLOCK_F_R}
</html>
I'm really a begginer in HTML / PHP, i had a few help just for doint it in my original page...

Thanks by advance for any help for adjusting my code

Maxime[/i]

Topic author
maxmar
Active Member
Active Member
Posts: 5
Joined: 13. June 2011 08:48

Re: Random vidéos in a central bloc

Post by maxmar »

I've changed some lines in my code, you can see the last version in the first post of this topic.

http://www.laryngo.com/forum/styles/pro ... steur.html

seems to work well, but nothing appear in my portal when a install this file as a new central bloc

Any idea ?

Return to “board3 Portal 1.0.x - English Support”