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: Adsense on Upload screen  (Read 3274 times)

0 Members and 1 Guest are viewing this topic.

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Adsense on Upload screen
« on: August 13, 2007, 11:50:07 pm »

Hello,

I have searched the forum and have found loads of useful posts on postioning google adsense. However, i havnt foound one for the uploader. I have adverts on theme.html, these appear on most pages, however i would like one for the uploader only, (postioned below the upload button).

What file and where do i edit?

Thanks,
« Last Edit: August 14, 2007, 08:32:35 am by GauGau »
Logged
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Adsense on Upload screen
« Reply #1 on: August 14, 2007, 08:02:16 am »

The upload form doesn't have a template of its own, so if the overall template (themes/yourtheme/template.html) doesn't give you enough flexibility to add a site-wide adsense block, you'll have to edit coppermine's core code to have adsense appear on the upload form. As there is little textual content on the upload screen, the text ads served by google won't be very relevant and therefor won't bring you much benefit. However, if you must have this feature, edit upload.php, find
Code: [Select]
// Create the submit button and close the form.
echo <<<EOT
        <tr>
                <td colspan="2" align="center" class="tablef">
                        <input type="submit" value="{$button_value}" class="button" />
                </td>

        </tr>

EOT;
and replace with
Code: [Select]
// Create the submit button and close the form.
echo <<<EOT
        <tr>
                <td colspan="2" align="center" class="tablef">
                        <input type="submit" value="{$button_value}" class="button" />
                </td>

        </tr>
        <tr>
                <td colspan="2" align="center" class="tablef">
                        <!-- your adsense code goes here -->
                </td>

        </tr>

EOT;
Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Adsense on Upload screen
« Reply #2 on: August 14, 2007, 08:24:25 am »

Thanks,
Logged
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Adsense on Upload screen
« Reply #3 on: August 14, 2007, 08:31:33 am »

[sarcasm] It's always a pleasure having the privilege to support you. [/sarcasm]
Don't hurt your fingers by typing a bit more, like "works as expected, please mark as "solved" ::).
Well, marking as solved then.
Your overwhelming feedback is the reason that makes supporters do their unpaid work here. :-X
Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Adsense on Upload screen
« Reply #4 on: August 14, 2007, 08:34:06 am »

well, i havnt tried it yet, so i dont know.  ::)
Logged
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.