google adsense code on displaimage.php google adsense code on displaimage.php
 

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

Main Menu

google adsense code on displaimage.php

Started by calyps, May 06, 2009, 01:01:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

calyps

Hello All,

I want to display google adsense code on the left and right hand side of the actual image on displayimage.php. Please refer to the screen shot. The screen shot have two black boxes were i want to display the ads (in square box). Please let me know how and what is the file that i will need to make change to?


Your help would be highly appreciated :)

Thanks,

Ali


calyps

Hello,

Sorry for not sending you the URL to the actual gallery. The gallery URL is http://www.thebestin.asia/Gallery/index.php

and the picture can be viewed directly @ http://www.thebestin.asia/Gallery/displayimage.php?album=random&cat=0&pos=-33

As you can see there is a big gap on the left and right hand side of the website (light gray area) which i need to cover it with advertisement.


Thanks,

Ali

Joachim Müller


calyps

Hi,

I thought I have the latest version of Coppermine? Please help.


Thanks,

Ali

phill104

Far from it. You are using <!--Coppermine Photo Gallery 1.4.9 (stable)--> while the current release is 1.4.22 making you 13 revisions behind.

http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upgrade_why

I'm assuming from your comment "I thought I had the latest revision" that you are using one installed by your webhost. If that is the case this is a classic reason why we are against the use of such installers.

Download the latest version from here then follow all the upgrade steps outlined in the docs.

http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upgrade
It is a mistake to think you can solve any major problems just with potatoes.

calyps

finally managed to get it done now. Sorry for such a late reply. Got stuck with my studies.

Any help now?

Thanks,

Sorry once again :(

Joe Carver

Look in the Sample theme for this section

// HTML template for intermediate image display
$template_display_media = <<<EOT
 
AND ALL CODE UNTIL

EOT;


Copy it into your theme and modify to your needs.


Joachim Müller


calyps

Hello,

Thank you for providing me with some valuable website and links to existing posts! I have spend several days trying to fix and get the ads on the right spot. However I failed  :'(

I managed to get the ads working right next to the images but that impacts the layout of the screen. Also, i managed to get the whole gallery (including albums and the rest of the pages) to reduce in size in width and installed ads on the left and right .. however, I just want them to be on displayimage file in the box area and not impacting any layout issues.
(see image in my first post)

Any help would be highly appreciated!

Thanks,

Ali

Joachim Müller

We need to see what you did. Zip your custom theme folder and attach the zip to your posting.
To me it seems like you did quite the opposite of what you're supposed to do: you edited http://www.thebestin.asia/Gallery/themes/rainy_day/template.html and dumped the adbrite code right above the placeholder token {GALLERY}, which is not what the thread I have refered to says.

In fact I haved posted nearly the identical information in the thread I have refered to:
Quote from: Joachim Müller on January 20, 2008, 10:11:17 AM
The code you refered to indeed needs to go into themes/yourtheme/theme.php. If you want answers, post a link to your gallery and let us see your changes by zipping your custom theme folder and attaching the zip archive to your posting (using "additional options" when composing your message).
Why don't you start playing by the rules - do what supporters say if you want support.

calyps

Hello,

Sorry! Basically, i tried everything but when it all failed i tried playing with it myself and stopped half way though .. Anyway, I will try again tomorrow and see what results i get. Thank you once again for helping me out so far. Much appreciated!

Thanks,


Joachim Müller

Quote from: Joachim Müller on July 09, 2009, 11:12:47 AM
Why don't you start playing by the rules - do what supporters say if you want support.
You don't need to reply or start a new thread if you don't do as suggested.