Add banners at displayimage Add banners at displayimage
 

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

Main Menu

Add banners at displayimage

Started by Cobra, November 24, 2005, 11:04:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Cobra

I want to add a banner at displayimage. How can I do that?

I'm using rainy_day theme with a modificated header (with adsense).

Thanks,

Joachim Müller

edit themes/yourtheme/template.html

Cobra

QuoteI'm using rainy_day theme with a modificated header (with adsense).

I already edit the theme.html when I modificated the header to add google adsense.

Now I want to add a banner at the top of the image in the displayimage.

artistsinhawaii

Quote from: Cobra on November 25, 2005, 12:39:05 AM
QuoteI'm using rainy_day theme with a modificated header (with adsense).

I already edit the theme.html when I modificated the header to add google adsense.

Now I want to add a banner at the top of the image in the displayimage.

Wow! We just release 1.4.2 and already you want to desecrate it!  ;)
Shame on you!


I suppose you could open theme.inc.php
search for:

Quote// HTML template for intermediate image display
if (!isset($template_display_media))  //{THEMES}
$template_display_media = <<<EOT

and right below that add:

Quote
<tr>
Your banner content here
</tr>

Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Joachim Müller

do not edit the core file include/theme.inc.php - edit themes/yourtheme/theme.php instead! Should be pretty easy to add a banner there.

artistsinhawaii

#5
Quote from: GauGau on November 25, 2005, 10:48:30 AM
do not edit the core file include/theme.inc.php - edit themes/yourtheme/theme.php instead! Should be pretty easy to add a banner there.


Oops sorry about that.

Gaugau is right, of course.


Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

donnoman

You could do this with the plugin system, across all themes in one whack!

codebase.php

$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;
    }
}