| admin |
10-06-2009 10:13 AM |
إظهار إعلان جوجل ادسنس كقسم في المنتدى
[ شرح + كود ] إظهار إعلان جوجل ادسنس كقسم في المنتدى ! ( حصرياً لمطور )
هل ترغب بإظهار اعلانات جوجل ادسنس كقسم في المنتدى ؟؟
تابع هذا الشرح لتتمكن من وضعها في المنتدى .!
مثال :
http://www.mtwer.com/files/2726.gifhttp://i.ixnp.com/images/v6.10/t.gif
باب الحارةhttp://i.ixnp.com/images/v6.10/t.gif
يمكنك من خلال الكود والشرح التالي إظهار إعلانات جوجل ادسنس كقسم من أقسام المنتدى في الصفحة الرئيسية للمنتدى ..
في أسفل تمبلت :
كود PHP:
forumhome_forumbit_level2_post
أضف :
كود:
<if condition="$forumid == 2">
<tr align="center">
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_link.gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
<td class="alt1Active" align="$stylevar" id="f$forum[forumid]">
<div>
<script type="text/javascript"><!--
google_ad_client = "pub-1447043386355513";
/* نصى بنرى كبير */
google_ad_slot = "9608556083";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</td>
<td class="alt2">Sponsored Links</td>
<td class="alt1">-</td>
<td class="alt2">-</td>
</tr>
</if>
استبدل الرقم 2 برقم القسم الذي ترغب بأن يكون اعلانات جوجل ادسنس اسفله ..
==============================
شرح تغيير كود الإعلانات الخاص بحسابك في جوجل ادسنس :
استبدل هذا الكود الخاص بإعلانات جوجل ادسنس بكود خاص بإعلانات ادسنس مرتبط بحسابك ..
كود:
<script type="text/javascript"><!--
google_ad_client = "pub-1447043386355513";
/* نصى بنرى كبير */
google_ad_slot = "9608556083";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
|