forum.coppermine-gallery.net
Support => Français (French) => Language Specific Support => cpg1.4.x Français (French) => Topic started by: blockbuster3 on January 26, 2007, 12:29:52 am
-
Bonjour a tous,
Voila j'aurai voulut savoir comment mettre une banniére pub comme sur le screen
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg99.imageshack.us%2Fimg99%2F3182%2Fscreen8zk.png&hash=7d76118406220b9b7e58a98f30a16d1e814dcd1f) (http://imageshack.us)
Merci d'avance :)
-
Bonjour,
copiez le code ci dessous dans votre fichier theme.php (celui de votre theme)
et modifiez le pour permettre l'affichage de la bannière
// HTML template for intermediate image display
if (!isset($template_display_media)) //{THEMES}
$template_display_media = <<<EOT
<tr>
<td align="center" class="display_media" nowrap="nowrap">
<table cellspacing="2" cellpadding="0" class="imageborder">
<tr>
<td align="center">
{IMAGE}
</td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" cellspacing="2" cellpadding="0" class="tableb">
<tr>
<td align="center">
{ADMIN_MENU}
</td>
</tr>
</table>
<!-- BEGIN img_desc -->
<table cellpadding="0" cellspacing="0" class="tableb" width="100%">
<!-- BEGIN title -->
<tr>
<td class="tableb"><center><b>
{TITLE}
</b></center></td>
</tr>
<!-- END title -->
<!-- BEGIN caption -->
<tr>
<td class="tableb"><center>
{CAPTION}
</center></td>
</tr>
<!-- END caption -->
</table>
<!-- END img_desc -->
</td>
</tr>
EOT;
Ce code est pris dans le fichier theme.php du theme sample. Vous trouverez aussi ce code dans le fichier theme.inc.php mais il ne faut pas le modifier directement dans ce fichier.
-
Merci beaucoup frantz sa marche. Probleme reglé ;)
-
si non il y a aussi le plugin CopperAd (http://forum.coppermine-gallery.net/index.php?topic=33151.0) ;-)