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: Adsense in different area..  (Read 4175 times)

0 Members and 1 Guest are viewing this topic.

disposition

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 183
Adsense in different area..
« on: January 11, 2008, 05:49:49 pm »

Hi,

I search your massive area on this forum for different adsense placement, but my question is I would like a small adsense ad to be placed between "Rate This File" and "Add your comment".

I hope you can help.

Thanks
www.blackdeathmetal.com     - main website
http://www.blackdeathmetal.com/displayimage.php?album=2&pos=6     - link to area I want an ad.
« Last Edit: January 13, 2008, 06:14:45 pm by Nibbler »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Adsense in different area..
« Reply #1 on: January 12, 2008, 10:34:57 am »

Both sections you refer to only get displayed on your page if a visitor is logged in. Do you want the adsense code only to be displayed for registered users?
Logged

disposition

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 183
Re: Adsense in different area..
« Reply #2 on: January 12, 2008, 03:42:45 pm »

Yeah, I should have stated that.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Adsense in different area..
« Reply #3 on: January 13, 2008, 01:28:52 pm »

Then either modify the rating section and add the adsense code below it or edit the comment section and add the adsense code in front of it. To do this, edit themes/yourtheme/theme.php, find the corresponding section and edit it. If the section you're suppossed to edit doesn't exist in your custom theme, copy the definition from themes/sample/theme.php into a new line of themes/yourtheme/theme.php before
Code: [Select]
?>and then modify it.
It's always the same way, described in thousands of postings on this board. I'm reluctant to explain this yet one more time - after all, you're a frequent posted on this board, so I can expect that you have done your homeworks.
The sections to search for are
Code: [Select]
function theme_html_rating_boxor
Code: [Select]
function theme_html_comments($pid)
Logged

disposition

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 183
Re: Adsense in different area..
« Reply #4 on: January 13, 2008, 03:43:50 pm »

I will give it a try and see how it comes out, I will keep ya posted.

Thanks!
Logged

disposition

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 183
Re: Adsense in different area..
« Reply #5 on: January 13, 2008, 04:04:05 pm »

I got it working.  It is a cool addition to the site.

Thanks for your help.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.