Bonjour, :)
Je souhaiterai modifier le lien d'une vignette exemple lors qu'on click sur la premiere vignette on est dirigé vers http://www.monsite/thumbnails.php?album=1.
J'aimerai que cette vignette pointe sur une autre page .
Mais je ne sai pas dans quel fichier doi je aller pour le modifier.
Le but de la manoeuvre est de passer par une page allopass pour ensuite acceder à l'album en question.
Merci d'avance !!! ;)
Bonjour,
Quote from: labricotblanc on April 10, 2006, 12:03:38 PM
Bonjour, :)
Je souhaiterai modifier le lien d'une vignette exemple lors qu'on click sur la premiere vignette on est dirigé vers http://www.monsite/thumbnails.php?album=1.
J'aimerai que cette vignette pointe sur une autre page .
Le but de la manoeuvre est de passer par une page allopass pour ensuite acceder à l'album en question.
Merci d'avance !!! ;)
La vignette dant tu parles est celle de la catégorie si je ne me trompe pas.
A priori c'est dans /includes/themes.inc.php qu'il faut regarder (si je ne me trompe pas c'est dans la partie <!-- BEGIN c_album_cell -->
J'ai regardé mais rien vu pour modifier uniquement l'album 9 :(
<!-- BEGIN c_album_cell -->
<td width="{COL_WIDTH}%" valign="top">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3" height="1" valign="top" class="tableh2">
<span class="alblink"><a href="{ALB_LINK_TGT}"><b>{ALBUM_TITLE}</b></a></span>
</td>
</tr>
<tr>
<td colspan="3">
<img src="images/spacer.gif" width="1" height="1" border="0" alt="" /><br />
</td>
</tr>
<tr>
<td align="center" valign="middle" class="thumbnails">
<img src="images/spacer.gif" width="{THUMB_CELL_WIDTH}" height="1" class="image" style="margin-top: 0px; margin-bottom: 0px; border: none;" alt="" /><br />
<a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br /></a>
</td>
<td>
<img src="images/spacer.gif" width="1" height="1" border="0" alt="" />
</td>
<td width="100%" valign="top" class="tableb_compact">
{ADMIN_MENU}
<p>{ALB_DESC}</p>
<p class="album_stat">{ALB_INFOS}</p>
</td>
</tr>
</table>
</td>
<!-- END c_album_cell -->
Mais c'est déja une petite piste
Merci
J'ai fais une erreur c'est du côté du code ci dessous (ligne 1591)
'{ALB_LINK_TGT}' => "thumbnails.php?album={$album['aid']}",
comment je peu faire pour que le lien de la vignette 9 soit allopass.php ?
merci
Je ne voi pas comment avec /includes/themes.inc.php je peu modifier mon lien (suis novice en php).
Si quelqu'un peu m'eclairer de sa lumiere.
Merci d'avance.
Quote from: labricotblanc on April 10, 2006, 06:23:21 PM
Je ne voi pas comment avec /includes/themes.inc.php je peu modifier mon lien (suis novice en php).
Si quelqu'un peu m'eclairer de sa lumiere.
Merci d'avance.
Moi aussi je suis novice. Voilà comment je ferais, je créerais un fichier allopass.php placé dans le répertoire racine de ma galerie, je remplacerais le code ci dessous
'{ALB_LINK_TGT}' => "thumbnails.php?album={$album['aid']}",
par
'{ALB_LINK_TGT}' => "allopass.php",
dans le fichier allopas.pfp je placerais un code du genre
$album={$album['aid'];
if ($album=9){
mon code allopass};
else {
'{ALB_LINK_TGT}' => "thumbnails.php?album={$album['aid']}";
}
Attention, je ne suis pas sur de mon coup, à tester en local (je n'ai pas eu le temps de le faire.
C'est peut être un peu "bourrin", mais encore une fois, je suis loin d'être un spécialiste (peut être que si Totooy passe par là il aura une solution plus pro qui marche
Presque,
en modifiant /includes/themes.inc.php avec '{ALB_LINK_TGT}' => "allopass.php",
toutes mes vignettes pointent vers allopass.php (c'est normal), si je met $album={$album['aid'];
if ($album=9){
mon code allopass};
else {
'{ALB_LINK_TGT}' => "thumbnails.php?album={$album['aid']}";
}
dans allopass.php j'ai une erreur à la premiere ligne du scrip.
Ou je ne l'ai pas correctement intégré (pas au bon endroit...) ou alors ce petit script à un bug.
En tout cas c'est cool ça avance !!! ;)
<?php $album={$album['aid'];
if ($album=9){
mon code allopass};
else {
'{ALB_LINK_TGT}' => "thumbnails.php?album={$album['aid']}";
} ?>
essaie en rajoutant les balises php comme dans le code ci dessus. N'oublie pas de remplacer "mon code allopass" par le code qui te permets d'acceder à l'identification du système allopass (je ne le connais pas)
Voici le code de ma page allopass.php (je doit surement faire une co***rie).
<?php
/*************************
Coppermine Photo Gallery
************************
Copyright (c) 2003-2005 Coppermine Dev Team
v1.1 originaly written by Gregory DEMAR
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
********************************************
Coppermine version: 1.4.3
$Source: /cvsroot/coppermine/stable/faq.php,v $
$Revision: 1.8 $
$Author: gaugau $
$Date: 2005/11/28 07:42:14 $
**********************************************/
define('IN_COPPERMINE', true);
define('ALLOPASS_PHP', true);
global $CONFIG;
require('include/init.inc.php');
?>
<?php $album={$album['aid'];
if ($album=9){
<table border="0" cellpadding="0" cellspacing="0" width="300" bordercolor="Black">
<tr>
<td width="300" height="25" colspan="2" bgcolor="#FFFFFF" align="center" valign="top">
<img src="http://www.allopass.com/imgweb/script/fr_uk/acces_title.jpg" width="300" height="25" align="center" alt="Logo">
</td>
</tr>
<tr>
<td colspan="2" width="300" height="137" align="left">
<img name="acces_top" src="http://www.allopass.com/show_top2.php4?SITE_ID=73986&DOC_ID=194075&LG=fr_uk" width="300" height="137" align="center">
</td>
</tr>
<tr>
<td width=79 height=29 bgcolor="#FFFFFF" align="center" valign="top">
<img src="http://www.allopass.com/imgweb/script/fr_uk/acces_left.jpg" width="79" height="29" align="center">
</td>
<td width="254" height="29" bgcolor="#FFFFFF" align="right"><a href="javascript:;" onClick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?PALIER=274877906948&SITE_ID=73986&DOC_ID=194075&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=320');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_fr.gif" width="35" height="29" alt="" /></a><a href="javascript:;" onClick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?PALIER=8192&SITE_ID=73986&DOC_ID=194075&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=320');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_it.gif" width="35" height="29" alt="" /></a><a href="javascript:;" onClick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?PALIER=33555456&SITE_ID=73986&DOC_ID=194075&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=320');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_es.gif" width="35" height="29" alt="" /></a><a href="javascript:;" onClick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?PALIER=32&SITE_ID=73986&DOC_ID=194075&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=320');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_uk.gif" width="35" height="29" alt="" /></a><a href="javascript:;" onClick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?PALIER=274945048576&SITE_ID=73986&DOC_ID=194075&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=320');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_be.gif" width="35" height="29" alt="" /></a><a href="javascript:;" onClick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?PALIER=274886295616&SITE_ID=73986&DOC_ID=194075&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=320');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_ch.gif" width="35" height="29" alt="" /></a>
</td>
</tr>
<tr>
<td colspan="2" align='right' bgcolor='white'><a href="javascript:;" onClick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?PALIER=4096&SITE_ID=73986&DOC_ID=194075&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=320');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_lu.gif" width="35" height="29" alt="" /></a><a href="javascript:;" onClick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?PALIER=134217728&SITE_ID=73986&DOC_ID=194075&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=320');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_ca.gif" width="35" height="29" alt="" /></a><a href="javascript:;" onClick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?PALIER=4398046511120&SITE_ID=73986&DOC_ID=194075&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=320');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_de.gif" width="35" height="29" alt="" /></a><a href="javascript:;" onClick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?PALIER=2048&SITE_ID=73986&DOC_ID=194075&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=320');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_at.gif" width="35" height="29" alt="" /></a><a href="javascript:;" onClick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?PALIER=512&SITE_ID=73986&DOC_ID=194075&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=320');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_nl.gif" width="35" height="29" alt="" /></a><a href="javascript:;" onClick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?PALIER=16777216&SITE_ID=73986&DOC_ID=194075&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=320');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_se.gif" width="35" height="29" alt="" /></a><a href="javascript:;" onClick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?PALIER=524288&SITE_ID=73986&DOC_ID=194075&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=320');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_hk.gif" width="35" height="29" alt="" /></a><a href="javascript:;" onClick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?PALIER=2097152&SITE_ID=73986&DOC_ID=194075&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=320');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_nz.gif" width="35" height="29" alt="" /></a></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" colspan="2" width="300" valign="top" align="center">
<font face="Arial,Helvetica" size="1" color="#000000">
<B>Entrer votre code d'accès - Enter your access code</B>
<form name="APform" action="http://www.allopass.com/check/index.php4" method="post">
<input type="hidden" name="SITE_ID" value="73986">
<input type="hidden" name="DOC_ID" value="194075">
<input type="text" size="8" maxlength="10" value="" name="CODE0" style="BACKGROUND-COLOR: #E7E7E7; BORDER-BOTTOM: #000080 1px solid; BORDER-LEFT: #000080 1px solid; BORDER-RIGHT: #000080 1px solid; BORDER-TOP: #000080 1px solid; COLOR: #000080; CURSOR: text; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT:bold; LETTER-SPACING: normal; WIDTH:70; TEXT-ALIGN=center;"> <br />
<input type="button" name="APsub" value="" onclick=" this.form.submit(); this.form.APsub.disabled=true;" style="border:0px;margin:0px;padding:0px;width:48px; height:18px; background:url('http://www.allopass.com/imgweb/common/bt_ok.gif');"><br />
<font face="Arial,Helvetica" size=1 color="#000000">
Allopass
<a href="http://www.allopass.com" target="_blank">
<font color="Black" size=1>http://www.allopass.com</font>
</a>
</font>
</form>
</font>
</td>
</tr>
</table> };
else {
'{ALB_LINK_TGT}' => "thumbnails.php?album={$album['aid']}";
} ?>