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!

Re: [extension request] Adsense after the first post

Hm... I think I could make it... I'm currently working on a Sitemap-generating extension, though.

Re: [extension request] Adsense after the first post

Sounds good. I am actually looking forward to the sitemap extension as well smile

4 (edited by fantasma 2008-11-25 23:07)

Re: [extension request] Adsense after the first post

Garciat wrote:

Hm... I think I could make it... I'm currently working on a Sitemap-generating extension, though.
Garciat - Die hard

My 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

5 (edited by hcs 2008-12-09 15:40)

Re: [extension request] Adsense after the first post

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.

6

Re: [extension request] Adsense after the first post

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?

Re: [extension request] Adsense after the first post

i want to know if this extension work well, because i didn't try it .
thank u

Re: [extension request] Adsense after the first post

Garciat,

Just wanted to check in and see if you planned on converting this extension over to 1.3?

Re: [extension request] Adsense after the first post

I'm sorry, it's not in my plans.

Re: [extension request] Adsense after the first post

hcs wrote:

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.

Re: [extension request] Adsense after the first post

Garciat wrote:

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 smile

Re: [extension request] Adsense after the first post

can you reuplaod the link to download this extension.
thank you

Re: [extension request] Adsense after the first post

No help

14

Re: [extension request] Adsense after the first post

mixcelebs wrote:

No help

http://punbb.ru/extensions/attach/download.php?aid=118

Re: [extension request] Adsense after the first post

thanks work good!!

16

Re: [extension request] Adsense after the first post

This works great and was so easy to install! Thank you so much.

Re: [extension request] Adsense after the first post

thank you for the link....

Re: [extension request] Adsense after the first post

does that work with punbb 1.3.2

MyFootballCafe.com  is Now Online!

Re: [extension request] Adsense after the first post

SuperMAG wrote:

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

20 (edited by hcs 2009-03-01 14:50)

Re: [extension request] Adsense after the first post

get anycodetool here: http://punbb.ru/downloads/anycodetool.zip
http://punbb.ru/downloads/anycodetool.7z

Re: [extension request] Adsense after the first post

what does that do

MyFootballCafe.com  is Now Online!

Re: [extension request] Adsense after the first post


Great i downloaded it.  Now where are the instructions?  Can you please post each step to make this work?

Thanks,

Gibs

Re: [extension request] Adsense after the first post

I've installed the extension. now how to add addsense ? how to configurate the extensions?


smile thanks !

Re: [extension request] Adsense after the first post

well! i see it now . you just got to go to settings> features > anycode