Bonjour, j'au un petit problème avec le code adsense pour le rentrer dans un code php ...
voici le code php en question :
en fait, je voudrais inserer le code adsence au niveau de "html template for the display of comment",
mais quand je l'insère, ca désactive completement le code qui suit dans la page
exemple du code avec adsence:
Je comprend pas trop pourquoi, mais bon je m'y connais pas trop en PHP :wink:
voici le code php en question :
Code:
// HTML template for the image rating box
$template_image_rating = <<<EOT
<tr>
<td colspan="6" class="tableh2_compact"><b>{TITLE}</b> {VOTES}</td>
</tr>
<tr>
<td class="tableb_compact" width="17%" align="center"><a href="{RATE0}" title="{RUBBISH}"><img src="images/rating0.gif" alt="{RUBBISH}" border="0" /><br /></a></td>
<td class="tableb_compact" width="17%" align="center"><a href="{RATE1}" title="{POOR}"><img src="images/rating1.gif" alt="{POOR}" border="0" /><br /></a></td>
<td class="tableb_compact" width="17%" align="center"><a href="{RATE2}" title="{FAIR}"><img src="images/rating2.gif" alt="{FAIR}" border="0" /><br /></a></td>
<td class="tableb_compact" width="17%" align="center"><a href="{RATE3}" title="{GOOD}"><img src="images/rating3.gif" alt="{GOOD}" border="0" /><br /></a></td>
<td class="tableb_compact" width="17%" align="center"><a href="{RATE4}" title="{EXCELLENT}"><img src="images/rating4.gif" alt="{EXCELLENT}" border="0" /><br /></a></td>
<td class="tableb_compact" width="17%" align="center"><a href="{RATE5}" title="{GREAT}"><img src="images/rating5.gif" alt="{GREAT}" border="0" /><br /></a></td>
</tr>
EOT;
// HTML template for the display of comments
$template_image_comments = <<<EOT
<tr>
<td>
<table width="100%" cellpadding="0" cellspacing="0">
<td class="tableh2_compact" nowrap>
<b>{MSG_AUTHOR}</b>
<!-- BEGIN ipinfo -->
en fait, je voudrais inserer le code adsence au niveau de "html template for the display of comment",
mais quand je l'insère, ca désactive completement le code qui suit dans la page
exemple du code avec adsence:
Code:
HTML template for the image rating box
$template_image_rating = <<<EOT
<tr>
<td colspan="6" class="tableh2_compact"><b>{TITLE}</b> {VOTES}</td>
</tr>
<tr>
<td class="tableb_compact" width="17%" align="center"><a href="{RATE0}" title="{RUBBISH}"><img src="images/rating0.gif" alt="{RUBBISH}" border="0" /><br /></a></td>
<td class="tableb_compact" width="17%" align="center"><a href="{RATE1}" title="{POOR}"><img src="images/rating1.gif" alt="{POOR}" border="0" /><br /></a></td>
<td class="tableb_compact" width="17%" align="center"><a href="{RATE2}" title="{FAIR}"><img src="images/rating2.gif" alt="{FAIR}" border="0" /><br /></a></td>
<td class="tableb_compact" width="17%" align="center"><a href="{RATE3}" title="{GOOD}"><img src="images/rating3.gif" alt="{GOOD}" border="0" /><br /></a></td>
<td class="tableb_compact" width="17%" align="center"><a href="{RATE4}" title="{EXCELLENT}"><img src="images/rating4.gif" alt="{EXCELLENT}" border="0" /><br /></a></td>
<td class="tableb_compact" width="17%" align="center"><a href="{RATE5}" title="{GREAT}"><img src="images/rating5.gif" alt="{GREAT}" border="0" /><br /></a></td>
</tr>
EOT;
// HTML template for the display of comments
$template_image_comments = <<<EOT
<tr><script type="text/javascript"><!--
google_ad_client = "pub-5021251884706330";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_channel ="";
google_color_border = "003366";
google_color_bg = "003366";
google_color_link = "FF6600";
google_color_url = "99CCFF";
google_color_text = "FFFFFF";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<td>
<table width="100%" cellpadding="0" cellspacing="0">
<td class="tableh2_compact" nowrap>
<b>{MSG_AUTHOR}</b>
<!-- BEGIN ipinfo -->
({HDR_IP} [{RAW_IP}])
<!-- END ipinfo -->
</td>
<td class="tableh2_compact" align="right" width="100%">
<!-- BEGIN buttons -->
<a href="javascript:;" onClick="blocking('cbody{MSG_ID}','', 'block'); blocking('cedit{MSG_ID}','', 'block'); return false;" title="{EDIT_TITLE}"><img src="images/edit.gif" border="0" align="absmiddle" ></a>
<a href="delete.php?msg_id={MSG_ID}&what=comment" onclick="return confirm('{CONFIRM_DELETE}');"><img src="images/delete.gif" border="0" align="absmiddle" ></a>
<!-- END buttons -->
</td>
Je comprend pas trop pourquoi, mais bon je m'y connais pas trop en PHP :wink: