Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Adsense dans displayimage.php  (Read 3032 times)

0 Members and 1 Guest are viewing this topic.

cyril054

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Adsense dans displayimage.php
« on: March 05, 2008, 05:51:36 am »

Bonjours à tous alors voila je vais vous expliquez mon problème,
enfaite j'aimerais insérer une pub adsense dans la page displayimage cliquez ici pour voir ou exactement :)
http://cyril054.free.fr/adsense.bmp

J'ai rechercher avant de poster mais

Je ne veux pas modifier mon fichier template.php car ce n'est pas la que je veux afficher l'image

J'ai installer minicms mais sa va pas c'est pas ce que je veux non plus :s

J'ai vu un post ressemblant

http://forum.coppermine-gallery.net/index.php/topic,24063.0.html

Mais j'ai pas compris le dernier post

Code: [Select]
You could do this with the plugin system, across all themes in one whack!

codebase.php
Code:

$thisplugin->add_filter('post_breadcrumb','banner'); //below the breadcrumb

function banner()
{
    if (defined('DISPLAYIMAGE_PHP')) { 
        echo <<<EOT

<h1>This is my little banner</h1>

EOT;
    }
}


Donc voila j'espers que vous pourrez m'aider ?

Merci

Cyril
Logged

Elwood J. Blues

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Eymard.net
Re: Adsense dans displayimage.php
« Reply #1 on: March 05, 2008, 07:09:19 am »

Il faut que tu ouvres themes/mon_theme/theme.php et que tu  modifies ceci : // HTML template for intermediate image display
Code: [Select]
$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>

S'il y ai pas, tu colles ceci dans ton fichier :

Code: [Select]
// HTML template for intermediate image display
$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;
Logged
Avant de poser une question passez par ici . 90% des réponses s'y trouvent !
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.