พอดีผมจะลง โฆษณา ที่หัวกระทู้ของ IPB แต่แก้ไม่เป็น
นี้โคดเก่า
//-----------------------------------------
// Format and print out the topic list
//-----------------------------------------
while ( $row = $this->ipsclass->DB->fetch_row( $oq ) )
{
$return = $this->lib->parse_row( $row );
$poster = $return[‘poster’];
อันนี้ทำตามที่เว็บเค้าสอนเอา AdSense ไปใส่ เว็บปกติครับ AdSense ก็ขึ้น
//-----------------------------------------
// Format and print out the topic list
//-----------------------------------------
//Replace the text below with your AdSense code
$adsense=’<script type=“text/javascript”><!–
google_ad_client = “pub-xxxxxxxxxxxxxxx”;
google_ad_slot = “xxxxxxxxx”;
google_ad_width = 728;
google_ad_height = 90;
</script>
<script type="text/javascript"
src=“http://pagead2.googlesyndication.com/pagead/show_ads.js”>
</script>
’;
$a=1;
while ( $row = $this->ipsclass->DB->fetch_row( $oq ) )
{
$return = $this->lib->parse_row( $row );
if($a == 1){
$return[‘row’][‘post’]=$adsense. $return[‘row’][‘post’];
}
$a++;
$poster = $return[‘poster’];
$row = $return[‘row’];
$row = $return[‘row’];
แต่ๆๆ โฆษณาตัวนี้เวลาจะให้มันขึ้นผมจะต้องทำแบบนี้
<?
include(‘adrotate.php’);
?>
ผมจะเอา
<?
include(‘adrotate.php’);
?>
[b]
ไปแทน AdSense ยังไงคับ ช่วยหน่อยนะครับ
ขอบคุณมากครับ[/b]