coppermine-gallery.com/forum

Support => Français (French) => Language Specific Support => cpg1.4.x Français (French) => Topic started by: cyril054 on March 05, 2008, 05:51:36 AM

Title: Adsense dans displayimage.php
Post by: cyril054 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 (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 (http://forum.coppermine-gallery.net/index.php/topic,24063.0.html)

Mais j'ai pas compris le dernier post

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
Title: Re: Adsense dans displayimage.php
Post by: Elwood J. Blues 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
$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 :

// 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;