Adding 2 skyscraper banners in intermediate view Adding 2 skyscraper banners in intermediate view
 

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]

Main Menu

Adding 2 skyscraper banners in intermediate view

Started by Hercules24, August 30, 2007, 10:23:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hercules24

Hi, I'm trying to add 2 120x600 javascript banners on both sides of an intermediate picture in my gallery.
First I added the intermediate code from the sample theme.php to my customised theme, them I added both javascript codes next to the {IMAGE}, but no matter where I try to place them, I only get 1 banner left of the picture, and the other banner below the picture.
Is there anything I'm overlooking or doing wrong?
The page is still W3C validated, but somethings not working out the way I'ld like it to be...
I hope somebody here can help me out.
Gallery url where I'm testing: http://www.kuikens.com/laurentius/displayimage.php?album=4&pos=31


// 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"><script type="text/javascript" src="BANNER CODE LEFT" charset="ISO-8859-1"></script>
                                                {IMAGE}
<script type="text/javascript" src="BANNER CODE RIGHT" charset="ISO-8859-1"></script>
                                        </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;


Hercules24

I've attached an example the way I would like it to be.
Banners are only needed in the intermediate view screen.

Hercules24

Looks like I finally got it working, maybe somebody else can benefit from it too.



$template_display_media = <<<EOT
        <tr>
                <td align="center" class="display_media" nowrap="nowrap">
                        <table cellspacing="2" cellpadding="0" class="imageborder">
                                <tr>
                                <td><script type="text/javascript" src="BANNER CODE LEFT" charset="ISO-8859-1"></script></td>
                                        <td align="center">
                                                {IMAGE}

                                        </td><td><script type="text/javascript" src="BANNER CODE RIGHT" charset="ISO-8859-1"></script></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>

Joachim Müller

Split unrelated reply by mrloo to this topic into a separate thread and named it Adsense: Posting 1000x the same question over. Do not clutter this thread with unrelated stuff. This thread deals with adding a skyscraper banner, nothing else.

Davis

Hercules24 writes that this code $template_display_media = <<<EOT
        <tr>
                <td align="center" class="display_media" nowrap="nowrap">
                        <table cellspacing="2" cellpadding="0" class="imageborder">
                                <tr>
                                <td><script type="text/javascript" src="BANNER CODE LEFT" charset="ISO-8859-1"></script></td>
                                        <td align="center">
                                                {IMAGE}

                                        </td><td><script type="text/javascript" src="BANNER CODE RIGHT" charset="ISO-8859-1"></script></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>
will display a skyscrapper banner to the left and to the right of a picture in the  intermediate view.  I have tried it multiple ways and cannot seem to make it work.  Do I need to put something in my template.html as well or does putting it in the theme.php work?  I have tried everything and cannot make it work.  If someone could give me a little more of an explanation as to what I need to do to make it work it would be appreciated.

Joachim Müller

The code you refered to indeed needs to go into themes/yourtheme/theme.php. If you want answers, post a link to your gallery and let us see your changes by zipping your custom theme folder and attaching the zip archive to your posting (using "additional options" when composing your message).

hny1

i also want to add these adds in the intermediat view. but i just wanto to add one add to the left side of the Image.
my galley link is http://www.ookat.com/displayimage.php?album=lastup&cat=0&pos=1
can anybody give me explanatons about this?

hny1

i want to show adds in the red box the is shown in attached Picture

Joachim Müller

I already told you what you need to do:
Quote from: Joachim Müller on January 20, 2008, 10:11:17 AM
let us see your changes by zipping your custom theme folder and attaching the zip archive to your posting (using "additional options" when composing your message).
Stop replying unless you do as I suggested. Stop behaving like a moron - this is the last time that I remind you to use common sense. Next time you will get banned.

hny1

ok i have attached the theme folder that im using.


Joachim Müller

I won't. Others might. Thread is open as far as I'm concerned.

Joachim Müller

hny1 by PM:
Quote from: hny1 on August 13, 2009, 11:11:03 AM
Müller if i did a mistake im sorry 4 that, you r the only one after Almighty God on which i can depend.. Plzz Plzz help me
You're not allowed to PM me nor anyone else here according to board rules. Not respecting my wish for privacy is rude. Accept a "no" as in "no, I will not look into your issues, as I'm fed up with your behaviour, no matter what". I'm banning you for a week from posting. Next slightest misbehaviour will result in you getting banned for good.

Keep god of of your postings and use plain English without pseudo-slang abbreviations if you can. It's no problem if your English is not so good, but then don't abuse the language that you're not so familiar with: no more "rpl plzzz"  crap!

There is no guarantee that people will look into your issues. You're asking too much maybe. If you can't get your issues solved for free, hire a pro. You shouldn't have hijacked this thread in the first place, so I'm locking it.

Joachim

P.S. The first name is "Joachim", the last name is "Müller", so it's "Joachim" for you or "Mr. Müller", but not "Müller". Just calling someone by his last name is considered to be an insult where I come from.