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 in like this! Please help  (Read 6676 times)

0 Members and 1 Guest are viewing this topic.

Surya

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Adsense in like this! Please help
« on: November 18, 2006, 11:44:44 am »

Hello

I want add Adsense like this picture!

http://img137.imageshack.us/img137/9282/untitled2kv2.jpg

thanks
« Last Edit: November 19, 2006, 04:01:48 pm by Sami »
Logged

reece296

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 47
Re: Adsense in like this! Please help
« Reply #1 on: November 18, 2006, 11:56:19 am »

You need to sign up with google here: https://www.google.com/adsense/g-app-single-1
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

b4uphotos

  • Translator
  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 59
    • B4U India
Re: Adsense in like this! Please help
« Reply #3 on: November 19, 2006, 10:01:19 am »

you required to change in /includes/themes.inc.php

change the code:

Quote
// HTML template for intermediate image display
if (!isset($template_display_media))  //{THEMES}
$template_display_media = <<<EOT
        <tr>
                <td align="center" class="display_media" nowrap="nowrap">
                        <table cellspacing="2" cellpadding="0" class="imageborder">
                                <tr>
                                        <td align="center">
                                                {IMAGE}

                                        </td>
                                </tr>
                        </table>
                </td></tr>
                <tr><td>
                                                <table width="100%" cellspacing="2" cellpadding="0" class="tableb">
                                <tr>
                                        <td align="center">

                                                {ADMIN_MENU}
                                        </td>
                                </tr>
                        </table>





<!-- BEGIN img_desc -->


To:

Quote
// HTML template for intermediate image display
if (!isset($template_display_media))  //{THEMES}
$template_display_media = <<<EOT
        <tr>
                <td align="center" class="display_media" nowrap="nowrap">
                        <table cellspacing="2" cellpadding="0" class="imageborder">
                                <tr>
                                       <td width="120" valign="top"><script type="text/javascript"><!--
google_ad_client = "pub-5110371032262766";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "2D8930";
google_color_bg = "ffa600";
google_color_link = "FFFFCC";
google_color_text = "40454A";
google_color_url = "FFFFCC";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

</td>
               <td valign="top"><table width="100%"><tr><td align="center" valign="top">{IMAGE}</td></tr><tr><td align="center" valign="top"><script type="text/javascript"><!--
tyroo_pub = "10159";
tyroo_ad_width = "300";
tyroo_ad_height  = "250";
tyroo_adtype = "300x250_both";
tyroo_chnl ="1014";
tyroo_ads_frame = "tyrooads";
tyroo_ad_output = "html";
//--></script>
<script type="text/javascript"
 src="http://Ads4.tyroo.com/js/Tyrooads.js">
</script>
</td></tr></table>
                                               

                                        </td>
               <td width="120" valign="top"><!-- BEGIN STANDARD TAG - 120 x 600 - b4uphotos.com: Run-of-site - DO NOT MODIFY -->
<SCRIPT TYPE="text/javascript" SRC="http://content.cpxinteractive.com/rmtag3.js"></SCRIPT>
<SCRIPT language="JavaScript">
var rm_host = "http://adserving.cpxinteractive.com";
var rm_section_id = 86781;

rmShowAd("120x600");
</SCRIPT>
<!-- END TAG -->
</td>
                                </tr>
                        </table>
                </td></tr>
                <tr><td>
                                                <table width="100%" cellspacing="2" cellpadding="0" class="tableb">
                                <tr>
                                        <td align="center">

                                                {ADMIN_MENU}
                                        </td>
                                </tr>
                        </table>





<!-- BEGIN img_desc -->
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Adsense in like this! Please help
« Reply #4 on: November 19, 2006, 10:52:56 am »

Never change themes.inc.php instead , copy $template_display_media variable
Code: [Select]
$template_display_media = <<<EOT
        <tr>
                <td align="center" class="display_media" nowrap="nowrap">
                        <table cellspacing="2" cellpadding="0" class="imageborder">
                                <tr>
                                        <td align="center">
                                                {IMAGE}

                                        </td>
                                </tr>
                        </table>
                </td></tr>
                <tr><td>
                                                <table width="100%" cellspacing="2" cellpadding="0" class="tableb">
                                <tr>
                                        <td align="center">

                                                {ADMIN_MENU}
                                        </td>
                                </tr>
                        </table>





<!-- BEGIN img_desc -->
                        <table cellpadding="0" cellspacing="0" class="tableb" width="100%">
<!-- BEGIN title -->
                                <tr>
                                        <td class="tableb"><center><b>
                                                {TITLE}
                                        </b></center></td>
                                </tr>
<!-- END title -->
<!-- BEGIN caption -->
                                <tr>
                                        <td class="tableb"><center>
                                                {CAPTION}
                                        </center></td>
                                </tr>
<!-- END caption -->
                        </table>
<!-- END img_desc -->
                </td>
        </tr>

EOT;

to theme/your theme/theme.php and edit it the way you want to
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Surya

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Adsense in like this! Please help
« Reply #5 on: November 19, 2006, 03:59:09 pm »

thanks guys for your fast answers :-)

Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 20 queries.