Suivez la vidéo ci-dessous pour savoir comment installer notre site en tant qu'application web sur votre écran d'accueil.
Note: Cette fonction peut ne pas être disponible dans certains navigateurs.
Bonjour,
Un probleme lors de l'affiche de l'affiche des jeux sur l’accueil, en effet les images générées son trop grande !
A++
// Si case image_perso rempli
switch ($page) {
// Album, Spectacle, DVD/Blu-Ray et Ebook
case 'album':
case 'spectacle':
case 'dvd_blu_ray':
case 'ebook':
if (empty ($info['image_perso']) ){
$images = str_replace('._SS500_','._SL500_AA300_',$rep['image']);
$image = '<img src="'.$images.'"'.$redim.'"/><br /><br />';
$image_ = '[img]'.$images.'[/img]'."\n\n";
include($dossiers_compteurs.'/images_prez.php');
}else{
$image = '<img src="'.$info['image_perso'].'" /><br /><br />';
$image_ = '[img]'.$info['image_perso'].'[/img]'. "\n\n";
include($dossiers_compteurs.'/images_prez.php');
}
break;
// Film, Serie, Logiciel, Manga et Magazine
case 'film':
case 'serie':
case 'log':
case 'manga':
case 'magazine':
if (empty ($info['image_perso']) ){
$image = '<img src="'.$rep['image'].'"/><br /><br />';
$image_ = '[img]'.$rep['image_'].'[/img]'."\n\n";
include($dossiers_compteurs.'/images_prez.php');
}else{
$image = '<img src="'.$info['image_perso'].'" /><br /><br />';
$image_ = '[img]'.$info['image_perso'].'[/img]'. "\n\n";
include($dossiers_compteurs.'/images_prez.php');
}
break;
// Jeu
case 'jeu':
if (empty ($info['image_perso']) ){
if(preg_match('-g-',$rep['image'])){
$redim = ' width="500px"';
}else{}
$image = '<img src="'.$rep['image'].'"'.$redim.'/><br /><br />';
$image_ = '[img]'.$rep['image_'].'[/img]'."\n\n";
include($dossiers_compteurs.'/images_prez.php');
}else{
$image = '<img src="'.$info['image_perso'].'" /><br /><br />';
$image_ = '[img]'.$info['image_perso'].'[/img]'. "\n\n";
include($dossiers_compteurs.'/images_prez.php');
}
break;
// Film X
case 'film_x' :
if (empty ($info['image_perso']) ){
$image = '<img src="'.$rep['image'].'"/><br /><br />';
$image_ = '[img]'.$rep['image_'].'[/img]'."\n\n";
}else{
$image = '<img src="'.$info['image_perso'].'" /><br /><br />';
$image_ = '[img]'.$info['image_perso'].'[/img]'. "\n\n";
}
break;}
// on récupere l'url de l'image
if( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE.'#is') )
{
switch ($page) {
case 'magazine':
case 'film':
case 'serie':
case 'log':
case 'album':
case 'spectacle':
case 'ebook':
case 'jeu':
case 'manga':
case 'dvd_blu_ray':
$scan['image'] = RESULTAT_URL_IMAGE_DEBUT .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN;
$scan['image_'] = RESULTAT_URL_IMAGE_DEBUT .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN;
break;
case 'film_x':
$scan['image'] = RESULTAT_URL_IMAGE_DEBUT .net_img_film_x($imageTmp[0]) .RESULTAT_URL_IMAGE_FIN;
$scan['image_'] = RESULTAT_URL_IMAGE_DEBUT .net_img_film_x($imageTmp[0]) .RESULTAT_URL_IMAGE_FIN;
break;
case 'jaquette':
$scan['image1'] = RESULTAT_URL_IMAGE_DEBUT_1 .$imageTmp[0];
$scan['image2'] = RESULTAT_URL_IMAGE_DEBUT_2 .$imageTmp[0];
break;}
}elseif( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE1.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE_DEBUT1 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN1;
$scan['image_'] = RESULTAT_URL_IMAGE_DEBUT1 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN1;
}elseif( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE2.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE_DEBUT2 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN2;
$scan['image_'] = RESULTAT_URL_IMAGE_DEBUT2 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN2;
}elseif( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE3.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE_DEBUT3 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN3;
$scan['image_'] = RESULTAT_URL_IMAGE_DEBUT3 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN3;
}elseif( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE4.'#is') )
{
switch ($page) {
case 'magazine':
case 'film':
case 'serie':
case 'film_x':
case 'log':
case 'album':
case 'spectacle':
case 'ebook':
case 'manga':
case 'dvd_blu_ray':
$scan['image'] = RESULTAT_URL_IMAGE_DEBUT4 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN4;
$scan['image_'] = RESULTAT_URL_IMAGE_DEBUT4 .$imageTmp[0] .RESULTAT_URL_IMAGE_FIN4;
break;
case 'jeu':
$scan['image'] = RESULTAT_URL_IMAGE_DEBUT4.net_img_jeu($imageTmp[0]) .RESULTAT_URL_IMAGE_FIN4;
$scan['image_'] = RESULTAT_URL_IMAGE_DEBUT4.net_img_jeu($imageTmp[0]) .RESULTAT_URL_IMAGE_FIN4;
break;}
}else{
require('./auth.php');
$scan['image'] = $url_default.'images/no-'.$page.'.png';
$scan['image_'] = $url_default.'images/no-'.$page.'.png'."\n\n";
}
##################################
## par defaut du au multi choix ##
##################################
switch ($page){
case 'film':
// on récupere l'url de l'image
if( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE.$imageTmp[0];
$scan['image_'] = RESULTAT_URL_IMAGE.$imageTmp[0];
}else{
require('./auth.php');
$scan['image'] = $url_default.RESULTAT_NO_IMAGE;
$scan['image_'] = $url_default.RESULTAT_NO_IMAGE;
}
case 'log':
// on récupere l'url de l'image
if( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE.$imageTmp[0];
$scan['image_'] = RESULTAT_URL_IMAGE.$imageTmp[0];
}else{
require('./auth.php');
$scan['image'] = $url_default.RESULTAT_NO_IMAGE;
$scan['image_'] = $url_default.RESULTAT_NO_IMAGE;
}
break;
case 'serie':
// on récupere l'url de l'image
if( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE.'#is' ))
{
$scan['image'] = RESULTAT_URL_IMAGE.$imageTmp[0];
$scan['image_'] = RESULTAT_URL_IMAGE.$imageTmp[0];
}else{
require('./auth.php');
$scan['image'] = $url_default.RESULTAT_NO_IMAGE;
$scan['image_'] = $url_default.RESULTAT_NO_IMAGE;
}
break;
case 'manga':
// on récupere l'url de l'image
if( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE.$imageTmp[0];
$scan['image_'] = RESULTAT_URL_IMAGE.$imageTmp[0];
}elseif( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE1.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE1.$imageTmp[0];
$scan['image_'] = RESULTAT_URL_IMAGE.$imageTmp[0];
}elseif( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE2.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE2.$imageTmp[0];
$scan['image_'] = RESULTAT_URL_IMAGE.$imageTmp[0];
}elseif( $imageTmp = getEpression($contenuUrl,'#'.RESULTAT_IMAGE3.'#is') )
{
$scan['image'] = RESULTAT_URL_IMAGE3.$imageTmp[0];
$scan['image_'] = RESULTAT_URL_IMAGE.$imageTmp[0];
}else{
require('./auth.php');
$scan['image'] = $url_default.RESULTAT_NO_IMAGE;
$scan['image_'] = $url_default.RESULTAT_NO_IMAGE;
}
break;
}
}else $erreur[] = "impossible de lire la page";
return(array($scan,$erreur));
}
// ------------------------------------------------------------------------
?>
if (ACTIV_IMAGES_PREZ == '1'){
$image1 = str_replace(array('<img src="','<br />','<br/>','<br>','"/>','" />','[img]','[/img]','width="500px"',),array('','','','','','','','',''),trim($image_));
$new_ligne = '<img src="'.$image1.'" width="120px" height="160px" alt="" />'."\n";
Nous utilisons des cookies essentiels pour faire fonctionner ce site, et des cookies facultatifs pour améliorer votre expérience.