Advanced search  

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]

Pages: [1]   Go Down

Author Topic: How i Add adbrite code to giallo Theme in this place ?  (Read 2424 times)

0 Members and 1 Guest are viewing this topic.

cong

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
« Last Edit: February 08, 2007, 07:48:33 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How i Add adbrite code to giallo Theme in this place ?
« Reply #1 on: February 07, 2007, 07:30:02 pm »

I have no idea what adbrite is. If it is static HTML/JavaScript, edit themes/giallo/template.html, find
Code: [Select]
<td bgcolor="#F0F0F0" valign="top" nowrap="nowrap"><div class="topmenu">{SYS_MENU}</div><div class="topmenu">{SUB_MENU}</div></td>and replace with
Code: [Select]
<td bgcolor="#F0F0F0" valign="top" nowrap="nowrap"><div class="topmenu">{SYS_MENU}</div><div class="topmenu">{SUB_MENU}</div>your custom code here</td>
If you need to add custom PHP code, replace
Code: [Select]
<body>
{CUSTOM_HEADER}
with
Code: [Select]
<body>and replace
Code: [Select]
<td bgcolor="#F0F0F0" valign="top" nowrap="nowrap"><div class="topmenu">{SYS_MENU}</div><div class="topmenu">{SUB_MENU}</div></td>with
Code: [Select]
<td bgcolor="#F0F0F0" valign="top" nowrap="nowrap"><div class="topmenu">{SYS_MENU}</div><div class="topmenu">{SUB_MENU}</div>{CUSTOM_HEADER}</td>and set the relative path to your external PHP ad page up for the custom header in coppermine's config.

Logged

cong

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Re: How i Add adbrite code to giallo Theme in this place ?
« Reply #2 on: February 08, 2007, 07:40:32 am »

thank you very much for your quick reply

adbrite code like adsense code (advertising program )
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How i Add adbrite code to giallo Theme in this place ?
« Reply #3 on: February 08, 2007, 07:48:14 am »

That's what I guessed from your question. What really would be important: is it static HTML/JavaScript or dynamic PHP-driven code.
Anyway, marking thread as "solved".
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 15 queries.