@sm3287: the instructions in the initial posting of this thread are somewhat misleading and inacurate (that's why this thread hasn't been moved into the mods section as intended by the thread starter; there are better postings that explain how to add adsense or any other piece of static HTML/JavaScript to your Coppermine-driven pages). If a particular section (function or variable definition) doesn't exist in your custom theme, copy it (the missing section) from themes/sample/theme.php into a new line before?>
of the file themes/yourtheme/theme.php, then edit as suggested in the initial posting of this thread.
@all: I suggest searching the board for the search term "adsense" - there are loads of postings that explain how to add adsense - many of them have better instructions and are more complete. If you still can't find what you're looking for, start a new thread for your issue, posting a link to your gallery. Additionally, zip the content of your custom theme folder and attach it to your new thread (using "additional options" when composing your message). If you want detailed answers, attach a screenshot of your gallery as well that highlights the section where you want your adsense code to show up. As these instructions (searching the board, starting a new thread with the required information) applies not only to you, but everyone who is looking for a similar thing, I will now close and lock this thread. Everyone who's looking to accomplish a similar thing should do as I suggested above.
@just_some_guy: please don't get me wrong: I appreciate your readiness to share your insight with others. However, your instructions can only be carried out by people with intermediate skills in coppermine - those who have those skills probably won't need instructions anyway. You're of course welcome to come up with a newbie-proof instructions in another thread.
Joachim