vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Show Thread Enhancements - Google Adsense Postbit Integration (https://vborg.vbsupport.ru/showthread.php?t=194817)

Atakan KOC 10-27-2008 10:00 PM

Google Adsense Postbit Integration
 
1 Attachment(s)
Google Adsense Postbit Integration

install

Go to your admin cp, then:
Plugin System -> Manage Products -> [Add/Import Product] -> Select 'product-googleadsensei.xml' from your computer then press 'Import'

Modifications Info

Plugin : 2
Phrases : 12
Template : 1
Setting : 5

Google Adsense Postbit Setting

Go to your admin cp, then:
vBulletin Options -> Google Adsense Postbit Integration ->

Versions:
v1.0 - 30 July 2007
-First release

v1.1
- 31 July 2007
- Usergroup Permissions Added

v1.2 - 31 July 2007
- Usergroup Permissions Problem Fixed

v1.3 - 20 December 2007
- "Sponsored Links" Phrase added
- small template change
- vBulletin 3.7 released

v2.0 - 12 Octaber 2008
- vBulletin 3.7 released

If does not work;

Open template "postbit or postbit_legacy"

Find
HTML Code:

<!-- post $post[postid] popup menu -->

After Add

HTML Code:

$template_hook[postbit_end]

Atakan KOC 10-28-2008 04:36 PM

Reserved.

kartik786 11-11-2008 08:04 AM

if you wish to improve this, enable channel integrated google adsense for each forum so that webmasters know ads in which forum is performing better ;)

example : here on vb.org , forum for vb 3.8 mods will use particular channelto track ads and orum for vb 3.7 mods will use particular channel.

This way the webmaster knows which section to focus on for revenues.

ultimatearco 11-11-2008 10:38 AM

works really fine.
Installed :)

abouahmed 11-11-2008 02:22 PM

installed,

thanks

Disi 11-21-2008 06:06 PM

Hi there, first of all, its a great hack, but i've got one question.
I'm very interested in showing the googleads after the last post.

Could you tell me how i can manage that?

Cheers and thanks

Disi

diouxsie 01-07-2009 07:02 PM

- Reserved -

acegames 01-09-2009 11:26 AM

Thanks just what I was looking for

jibi 01-12-2009 02:26 AM

As this is applied to all styles, would there be a way to have a 'style assignment' type feature? For example, I have the 728px width ads assigned to a mobile style where I would actually want to use the Mobile AdSense ads (it's very skewed at this point), so the use of this would not necessarily be feasible across all styles (unless you wanted to add a mobile style addition). Anyhow, great product! :up:

*EDIT: For alternate styles that may or may not require this product, you can delete the content from the 'gaip_code1' template for that style.

christon26 01-14-2009 01:56 AM

I've installed this thanx!

Is there a way to have the ads display at set intervals, such as after post 1, 5, 10, and on down to after the last post? Would it display randomly if so or would they all be the same? lol

Thanx for the mod!

M.C. 01-16-2009 09:36 AM

Installed BUT! I want to show it on everypage for multipage threads

-=Leb=- 01-16-2009 01:54 PM

Thank you Installed

kellyandmark04 01-17-2009 01:02 AM

Is there any way to show this in between more than one post and have it show on the forum homepage???

kellyandmark04 01-18-2009 07:23 AM

^^^Also is there any wa to have this pn my forum home in diff places???

vip-q.com 01-18-2009 07:43 AM

Installed, thanks :)

Silentonenz 01-19-2009 08:28 PM

Nice hack,

Anyway to put it on different positions on each thread? Some are multi-paged

Nadeemjp 01-19-2009 10:48 PM

can we use Ad Brite ads instead of google adsense in here?

tribedude 01-20-2009 09:29 AM

Is this going to work with 3.80?

M.C. 01-20-2009 10:31 AM

tribedude It's work on mine ;)

albear 01-27-2009 08:17 PM

Reserved.

Stubbed 01-29-2009 10:05 PM

Quote:

Originally Posted by Disi (Post 1670197)
Hi there, first of all, its a great hack, but i've got one question.
I'm very interested in showing the googleads after the last post.

Could you tell me how i can manage that?

Cheers and thanks

Disi

Go Admin CP > Styles & Templates > Style Manager > Edit Templates (On the style you want to ad adverts on) > Double Click 'Ad Location Templates

You can edit any of those subtemplates and put any ad code in there, Google Adverts, OpenX, what ever you want. For after the last post, ad_showthread_beforeqr is what you want to edit (qr as in quick reply).

Quote:

Originally Posted by Nadeemjp (Post 1718353)
can we use Ad Brite ads instead of google adsense in here?

It looks like you can put any code in there, give it a go :)

markusv3000 02-24-2009 09:42 PM

Thanks. this is great

thunderclap82 02-27-2009 04:30 PM

This mod seems to be working, but is there a reason it only adds an ad to the Sponsored Link section only half the time?

Brandon Sheley 02-27-2009 04:45 PM

Nice idea, altho I don't see why a product is needed when you can add your ads in the ad_location after first post and get the same results :)

Maybe I'm missing something

faxreport 02-28-2009 04:07 PM

Good job , thank you :)

vision.mmxlix 03-05-2009 10:19 PM

Very Cool, Thanks [^_^]

Jesse Stratford 03-12-2009 05:51 PM

Nice work. I had to do the manual step of updating the template to get it to work.

Question: is it possible to make this show an ad after more than one post? E.g. what if I want an ad after post 1, post 10, post 20, etc.... I'm just thinking it's an awful waste only having the ad on the first page of the thread when threads often run many pages... would be great if I could get it to show up at least once on each page.

Many thanks for the mod, and for any assistance.

rmxs 03-28-2009 10:25 AM

Installed..
Byt better change name because is not only for google :)

New name=more installs

Spaz21 03-30-2009 07:14 PM

so ive installed this... and the ad only appears once. other addons let you have it appear after every "x" number of posts... can this be done with this as well?

fmntprsv 05-17-2009 03:58 PM

It doesn?t work for me. Vbulletin 3.8.1 and vbseo 3.3.0. I tried to add

Code:

$template_hook[postbit_end]
and also doesn?t work. Any suggestion please! thanks in advance!

jkcerda 07-03-2009 07:48 PM

cool, will give it a try

Macgiber 07-08-2009 12:03 AM

thanks

daveaite 07-08-2009 05:23 AM

thanks

ricardoNJ 07-11-2009 04:23 PM

nice!

stickyslicks 07-13-2009 12:23 AM

Hi,

I installed, and it works great in IE, but no ads show up in Firefox 2.0.0.18. The wrapper for the ads is there, it just doesn't show content.

Any idea why it works in one browser and not the other?

Thanks for any help!

brvheart 07-20-2009 06:00 PM

How would I keep from working on my iphone template or at least adjust the size so that it looks ok with that template?

ARKphoenix2k 07-22-2009 11:11 PM

Works great, thanks.

Installed

MikesSite 08-03-2009 03:44 AM

I would like to install this, but I would like to have it only active for 1 forum. Could I possibly manually add it into the style? How could I do this? Thanks!!

elenh 08-18-2009 09:27 AM

If you want to add Google Adsense Postbit Integration in more places in your forum like in the Private messages then do this:
  • Create a new plugin and add:

  1. Product: Google Adsense Postbit Integration
  2. Hook Location: parse_templates
  3. Title: Google Adsense PM Integration
  4. Execution Order: 5
  5. Plugin PHP Code:
    PHP Code:

    eval('$gaip_code1= "' fetch_template('gaip_code1') . '";'); 

  6. Plugin is Active: Yes

  7. Click Save.



  • Now go style manager and search in templates:


  1. Find in Private Message / pm_showpm template:
  2. HTML Code:

    <if condition="$show['quickreply']">
  3. Adove add:
  4. HTML Code:

    $gaip_code1
            <br />

  5. Click Save and done!

Now if a member read a PM then before the Quick Reply editor is showing the Sponsor Banners.

Tip: You can put the code $gaip_code1 where ever you like to show the banners, but for me the best places/targets to provide the banners is under 1 post in the topics and before the quickreply editor when a member read the pm.If you place it in more places then your site will lose load speed.

Thanks a lot!!

corsacrazy 08-21-2009 10:09 PM

what if we dont want to show this in certain forums.. like the important forums etc and only keep it in a few ?


All times are GMT. The time now is 10:20 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01413 seconds
  • Memory Usage 1,810KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_html_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete