Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Banniere sur coppermine  (Read 2924 times)

0 Members and 1 Guest are viewing this topic.

blockbuster3

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 37
Banniere sur coppermine
« 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)


Merci d'avance  :)
« Last Edit: January 27, 2007, 05:46:29 pm by Frantz »
Logged

François Keller

  • Moderator
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Banniere sur coppermine
« Reply #1 on: January 26, 2007, 07:17:34 am »

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
Code: [Select]
// 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.
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

blockbuster3

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 37
Re: Banniere sur coppermine
« Reply #2 on: January 27, 2007, 05:08:50 pm »

Merci beaucoup frantz sa marche. Probleme reglé ;)
Logged

Davide Renda

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1427
  • aka "Lontano"
    • www.daviderenda.eu
Re: Banniere sur coppermine
« Reply #3 on: January 27, 2007, 07:08:57 pm »

si non il y a aussi le plugin CopperAd ;-)
Pages: [1]   Go Up
 

Page created in 0.032 seconds with 20 queries.