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)

NeutralizeR 08-25-2006 02:23 PM

Quote:

Originally Posted by bbcentral
Great tutorial!
I will use some of the info, but no matter how much money NeutralizeR is making off his forum, nothing will convince me to make my members suffer like that. Sorry man, the site is plain shocking. I care about my members far too much to make them go through an epileptic-fit-inducing experience like your site. My browser struggled to scroll down!
Anyway, at least you've given us lots of examples to check out, very much appreciated! :D

You are welcome :)

Yes, i don't know who visits and registers my web site but they are really insistent on that :P Google likes me...

doushx 08-26-2006 05:56 PM

greatly thanks

J-TEK 09-02-2006 12:10 AM

Nice work, seems great.

Klaymen TK 09-02-2006 10:27 PM

Really [for 1000] great tutorial. Really [for others 1000] thanks!

NeutralizeR 09-11-2006 09:35 AM

And your members doesn't even notice your ads anymore?

Then change the ad colors while keeping the default colors for the visitors.

Quote:

google_color_border = <if condition="$show['guest']">"CDE7FF";<else />["CDE7FF","FFFF00","011160","FF0000"];</if>
google_color_bg = <if condition="$show['guest']">"CDE7FF";<else />["CDE7FF","011160","FFFFE1","FFFFFF"];</if>
google_color_link = <if condition="$show['guest']">"FF0000";<else />["FF0000","FFFF00","FF0000","FF0000"];</if>
google_color_url = <if condition="$show['guest']">"000000";<else />["000000","FFFFFF","000000","000000"];</if>
google_color_text = <if condition="$show['guest']">"0000A0";<else />["0000A0","FFFFFF","0000A0","0000A0"];</if>
Quote:

<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>
Example:
Quote:

<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 = <if condition="$show['guest']">"CDE7FF";<else />["CDE7FF","FFFF00","011160","FF0000"];</if>
google_color_bg = <if condition="$show['guest']">"CDE7FF";<else />["CDE7FF","011160","FFFFE1","FFFFFF"];</if>
google_color_link = <if condition="$show['guest']">"FF0000";<else />["FF0000","FFFF00","FF0000","FF0000"];</if>
google_color_url = <if condition="$show['guest']">"000000";<else />["000000","FFFFFF","000000","000000"];</if>
google_color_text = <if condition="$show['guest']">"0000A0";<else />["0000A0","FFFFFF","0000A0","0000A0"];</if>
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Visitors will always see the ads in their default colors.

Members will see them in four rotating color combinations.


Test Account @ My forum:
Username: Tester
Password: asd123

http://www.msxlabs.org/forum/

VBUsers 09-11-2006 10:13 PM

how can i put my google adsense after every first post of a page? when i add it it shows under every post instead of just the first one on that page.

dougeetx 09-11-2006 10:21 PM

Quote:

Originally Posted by AR Forums
how can i put my google adsense after every first post of a page? when i add it it shows under every post instead of just the first one on that page.


There's another thread that tells how to do that. Look on my site at http://www.RealityTVFriends.com/forum and you'll see how it works.

VBUsers 09-11-2006 10:27 PM

Quote:

Originally Posted by dougeetx
There's another thread that tells how to do that. Look on my site at http://www.RealityTVFriends.com/forum and you'll see how it works.

do you happen to know where the thread is? nice site by the way. hope it goes good for you.

NeutralizeR 09-12-2006 04:14 AM

Quote:

Originally Posted by AR Forums
how can i put my google adsense after every first post of a page? when i add it it shows under every post instead of just the first one on that page.

Open your postbit(legacy) template: vBulletin AdminCP > Styles & Templates > Edit Templates > Postbit Templates > postbit(legacy)

(First post and last shown post)

Find:
Quote:

<!-- / message -->
Add below:
Quote:

<if condition="(($post[postcount]==1) and !$GLOBALS['vbulletin']->GPC['ajax'])">
<center>
<script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_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>
</center>
</if>
Save.
https://vborg.vbsupport.ru/showp...30&postcount=7

VBUsers 09-12-2006 06:54 PM

Quote:

Originally Posted by NeutralizeR
Open your postbit(legacy) template: vBulletin AdminCP > Styles & Templates > Edit Templates > Postbit Templates > postbit(legacy)

(First post and last shown post)

Find:

Add below:


Save.
https://vborg.vbsupport.ru/showp...30&postcount=7

great post and it works some what but i really wanted to look like a post and on every page in the thread. is there a way to do that?


All times are GMT. The time now is 06:25 PM.

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.01493 seconds
  • Memory Usage 1,753KB
  • 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
  • (10)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