Topic: [extension request] Adsense after the first post
This was a working plugin for the PunBB 1.2.xx series, hopefully it can be easily modified to work with 1.3:
http://www.punres.org/viewtopic.php?id=1753
Thanks!
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.3 extensions → [extension request] Adsense after the first post
This was a working plugin for the PunBB 1.2.xx series, hopefully it can be easily modified to work with 1.3:
http://www.punres.org/viewtopic.php?id=1753
Thanks!
Hm... I think I could make it... I'm currently working on a Sitemap-generating extension, though.
Sounds good. I am actually looking forward to the sitemap extension as well
Hm... I think I could make it... I'm currently working on a Sitemap-generating extension, though.
Garciat - Die hardMy Extensions and Me
Yes, you can take how example the Google XML sitemap plugin of Wp, you know http://www.arnebrachhold.de/projects/wo … generator/
....Adsense after first post? NICE IDEA
Get Anycode 1.0.0b extension:
http://punbb.ru/extensions/attach/download.php?aid=118
Make solution on Admin Panel: google_adsense
Add Hook for google_adsense solution: vt_row_pre_display
Add code for this hook:
if ($forum_page['item_count'] == 2) {
echo '<script type="text/javascript"><!--
google_ad_client = "PLACE YOUR CODE HERE";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "image";
google_ad_channel = "";
//-->
</script>
<div style="text-align:center;">
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
';
}
Press Submit
Add another hook: vt_end
and code for this hook:
if ($forum_page['item_count'] == 1) {
echo '<script type="text/javascript"><!--
google_ad_client = "PLACE YOUR CODE HERE";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "image";
google_ad_channel = "";
//-->
</script>
<div style="text-align:center;">
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
';
}
Submit, go "Solutions" page and activate google_adsense solution.
i think it would be very cool, if not only adsense we could use, there are much more ad ways. maybe someone make something similar on 1.3 version?
i want to know if this extension work well, because i didn't try it .
thank u
Garciat,
Just wanted to check in and see if you planned on converting this extension over to 1.3?
I'm sorry, it's not in my plans.
Get Anycode 1.0.0b extension: http://punbb.ru/download.php?aid=118
Make solution on Admin Panel: google_adsense
Add Hook for google_adsense solution: vt_row_pre_display
Add code for this hook
if ($forum_page['item_count'] == 2) {
echo '<script type="text/javascript"><!--
google_ad_client = "PLACE YOUR CODE HERE";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "image";
google_ad_channel = "";
//-->
</script>
<div style="text-align:center;">
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
';
}
Press Submit
Add another hook: vt_end
and code for this hook
if ($forum_page['item_count'] == 1) {
echo '<script type="text/javascript"><!--
google_ad_client = "PLACE YOUR CODE HERE";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "image";
google_ad_channel = "";
//-->
</script>
<div style="text-align:center;">
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
';
}
Submit, go "Solutions" page and activate google_adsense solution.Last edited by hcs (2008-11-28 10:39:50)
the link to download doesn't work.
I'm sorry, it's not in my plans.
That's OK. Thanks for all your hard work on the other extensions, I really appreciate it
can you reuplaod the link to download this extension.
thank you
No help
No help
thanks work good!!
This works great and was so easy to install! Thank you so much.
thank you for the link....
hcs wrote:mixcelebs wrote:No help
does that work with punbb 1.3.2
Hi,
Does this work with the latest punbb version? I tried downloading the code above and it says zip file invalid.
Gibs
get anycodetool here: http://punbb.ru/downloads/anycodetool.zip
http://punbb.ru/downloads/anycodetool.7z
what does that do
get anycodetool here: http://punbb.ru/downloads/anycodetool.zip
http://punbb.ru/downloads/anycodetool.7z
Great i downloaded it. Now where are the instructions? Can you please post each step to make this work?
Thanks,
Gibs
I've installed the extension. now how to add addsense ? how to configurate the extensions?
thanks !
well! i see it now . you just got to go to settings> features > anycode
PunBB Forums → PunBB 1.3 extensions → [extension request] Adsense after the first post
Powered by PunBB, supported by Informer Technologies, Inc.