Adsense on Upload screen Adsense on Upload screen
 

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]

Main Menu

Adsense on Upload screen

Started by just_some_guy, August 13, 2007, 11:50:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

just_some_guy

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,
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

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// 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// 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;

just_some_guy

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

[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

just_some_guy

well, i havnt tried it yet, so i dont know.  ::)
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