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: banner problem  (Read 2925 times)

0 Members and 1 Guest are viewing this topic.

philadou

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
banner problem
« on: January 19, 2006, 01:49:10 am »

Hello everybody.
I'm new here and I have an urgent question:

When you click on an image in the gallery, the image open in fullsize mode.
Responsable file is "displayimage.php".
Now, I want to place 1 banner directly over the image and 1 banner directly under
the image.
I use the service from phpadsnew (banner roatation script)
and i get an IFRAME code which I have to integrate in the displayimage.php.

I tried a lot, but it don't work :-(
I searched also the complete support forum for answers but it don't work.

PLEASE, can anybody help me???
I use the newest version of CPG

My IFRAME Code:

<iframe id='a5c732e3' name='a5c732e3' src='http://web3.london023.server4you.de/adframe.php?n=a5c732e3&amp;what=zone:6' framespacing='0' frameborder='no' scrolling='no' width='468' height='60'><a href='http://web3.london023.server4you.de/adclick.php?n=a5c732e3' target='_blank'><img src='http://web3.london023.server4you.de/adview.php?what=zone:6&amp;n=a5c732e3' border='0' alt=''></a></iframe>
« Last Edit: January 19, 2006, 06:02:03 am by Paver »
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: banner problem
« Reply #1 on: January 19, 2006, 06:05:41 am »

You posted in a board titled "General discussion (no support)".  What part of "no support" did you not understand?

Please be more careful next time.  Take the time to look around and understand things before asking for time from others.

Your answer is to modify your theme.  If you haven't created a custom theme yet, copy the theme you like to a new folder, rename it to a name you pick and start to customize it.  All the customizations you can make to a theme are in the sample theme's theme.php file.  Go to that file, find the code section you want and copy it to your theme's theme.php file.

For the full-size picture code, look for the following lines:
Code: [Select]
// Display the full size image
function theme_display_fullsize_pic()
Then copy from this first line down to (but not including) the next function call which is:
Code: [Select]
function theme_vanity()
After copying this block of code, look through it for the HTML you want to modify and add your banners as desired.  Whenever you want to figure out where some code is for a theme customization, look at "View Source" for the web page and look for unique tags to search in the sample theme's theme.php.  Then copy & customize.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.