OakleyBoss
07-19-2011, 07:13 PM
Ok, So I added an adsense ad inside of my first post, by going into postbit_legacy and adding the adsense code and conditional.
I added the code right before
<vb:if condition="$show['attachments']">
The code I added was:
<vb:if condition="!$GLOBALS['FIRSTPOSTID']">
<script type="text/javascript"><!--
google_ad_client = "";
/* First Post Full */
google_ad_slot = "";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</vb:if>
It works great and looks great and only shows up in the first post. However when I edit the first post, and click save, it brings me to a blank screen with only the ad on it. The URL is correct and when I click refresh it brings me to the correct thread. Why is it doing this? Please Help
--------------- Added 1311106854 at 1311106854 ---------------
Solved it by using this mod https://vborg.vbsupport.ru/showthread.php?t=234851&highlight=first+post+advertisement
I added the code right before
<vb:if condition="$show['attachments']">
The code I added was:
<vb:if condition="!$GLOBALS['FIRSTPOSTID']">
<script type="text/javascript"><!--
google_ad_client = "";
/* First Post Full */
google_ad_slot = "";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</vb:if>
It works great and looks great and only shows up in the first post. However when I edit the first post, and click save, it brings me to a blank screen with only the ad on it. The URL is correct and when I click refresh it brings me to the correct thread. Why is it doing this? Please Help
--------------- Added 1311106854 at 1311106854 ---------------
Solved it by using this mod https://vborg.vbsupport.ru/showthread.php?t=234851&highlight=first+post+advertisement