Hello
I want add Adsense like this picture!
http://img137.imageshack.us/img137/9282/untitled2kv2.jpg
thanks
You need to sign up with google here: https://www.google.com/adsense/g-app-single-1
http://forum.coppermine-gallery.net/index.php?action=search2;search=adsense
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 -->
Never change themes.inc.php instead , copy $template_display_media variable
$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
thanks guys for your fast answers :-)