vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Management Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=217)
-   -   vBulletin Google Adsense Deep Integration Tutorial (https://vborg.vbsupport.ru/showthread.php?t=107965)

Blaine0002 03-10-2006 01:57 PM

i can make as much of it into a plugin as possible if you guys want :)

djr 03-13-2006 01:39 AM

Very useful info here, thanks for the tutorial!

m_k 03-15-2006 05:20 PM

great information - thanks for sharing this NeutralizeR...

I have tried out most of the ideas, and have settled on using the forumdisplay ads and the two for search results

forumdisplay is working great, but for some reason search results just comes back with collapsible ads all the time - I cut and pasted the code exactly, so can't figure out what isn't working

NeutralizeR 03-15-2006 08:23 PM

Quote:

Originally Posted by m_k
great information - thanks for sharing this NeutralizeR...

I have tried out most of the ideas, and have settled on using the forumdisplay ads and the two for search results

forumdisplay is working great, but for some reason search results just comes back with collapsible ads all the time - I cut and pasted the code exactly, so can't figure out what isn't working

:) try different searches... it'll be enough to see the ads once...
Quote:

Originally Posted by markbolyard
Remember however if you have multiple areas for which you are showing adsense on one page, but google doesn't have enough ads to fill all the spots based on your content, then that area will be blank. Give Google a little time to optimize it's ads for your content, then the ads will most likely show unless your forum content is so obscure that there are not many advertisers in that area.


raagaswaram 03-16-2006 12:27 AM

everything works fine except the postbitlegacy part i inserted the code but itz not displaying?

Reef 03-16-2006 01:10 AM

Excellent post NeutralizeR

I have a small problem though.... For some reason no matter what I try, only one add will display on any page.. If I add a second one anywhere it will not appear..

Any idea what that might be?

EDIT: nevermind I just now saw your explaination above... Sorry I missed it before

I will wait to see if they will populate later on

Thanks for the great work with this

hotrod1 03-19-2006 01:27 AM

Excellent article, thanks alot!

NeutralizeR 03-19-2006 03:49 AM

If you allow search engines to spider the single versions of your posts (This post, for example... showpost.php), you may want to use adsense ads on this template, too. I think you don't want to miss any possible renevue...

Open your SHOWTHREAD_SHOWPOST template: vBulletin AdminCP > Styles & Templates > Edit Templates > Show Thread Templates > SHOWTHREAD_SHOWPOST

Find:

Quote:

$postbits
Add above:
Quote:

<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="alt1" align="center">
&nbsp;<script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="yourchannelcode";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "FF0000";
google_color_url = "000000";
google_color_text = "22229C";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>&nbsp;
</td>
</tr>
</table>
(Or just the <script> section if you don't want the table.)

You can also add this code after $postbits if you want a second ad unit.

zkilzz 03-20-2006 06:37 PM

Quote:

Originally Posted by Blaine0002
i can make as much of it into a plugin as possible if you guys want :)

Hey!
I really want a plugin! Is it fare away?

Marius

thecool 04-28-2006 02:34 PM

Is there a way to place the ads randomly within the ForumDisplay as opposed to the first and last post?

similar to this:
http://www.aywe.com/news-announcements/


All times are GMT. The time now is 08:52 AM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03369 seconds
  • Memory Usage 1,739KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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