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)

modefly 11-04-2007 09:32 PM

<a href="https://www.google.com/images/adsense/en_us/support/forum_en.jpg" target="_blank">http://www.google.com/images/adsense...t/forum_en.jpg</a>
I would like to add adsense like in the picture, without the one next to the logo.
I've founded in your tutorial how to add after the first post and below the last post, but I didn't added before the first post and on left and right.
I've used left/right column hack and make myself 2 columns, but I haven't found any script for left and right adsense.

baerwurz 11-04-2007 09:55 PM

Quote:

Originally Posted by adivor (Post 1372810)
tanks but my question is about font dimension in google banner , can you help me ?

You have to become an adsense Premium Member than you get other Banner Sizes and Customized Ads. ;-)
If i am right, you need to have 2 Million Page Impressions daily.

modefly 11-04-2007 09:59 PM

I've done with those on right and left, it remains the one above the first post ...

baklash 12-11-2007 12:15 PM

thnqaks will look at when i get homee

testaj 12-14-2007 04:26 PM

This tutorial rocks! Thanks for saving me a bunch of time!

I've got one question I'm wondering if anyone can help me out.

http://first-solo.net/forums/forumdisplay.php?f=2

This is my site. I've narrowed the page down to fit the template I liked. I'm having a problem of my adsense kicking the table outside of my dimensions. I've modified the code here a bit to use "colspan" and make one "<td>" for the row that contains my adsense code. However, when I use the 468px ad, it pushes my table wider than normal. I can use 2 234px ads, and the problem doesn't occur.

The other funny thing is, with the 468px ad, I can copy the source code directly to a new html page, and the adjusting doesn't happen.

Has anyone had any experiences like this in the past? I'm new to vB, but have been experimenting with adsense for a little while, nothing big, just experimenting.

Flep 12-15-2007 03:51 PM

Amazing tutorial !

thank you :)

Bok 02-17-2008 09:06 PM

Is it possible to restrict the ads, to not show if a particular user is logged in ?

i.e. based on $bbuserid perhaps

markbolyard 02-18-2008 02:33 AM

Sure just place conditional statements before your ad code.

<if condition="is_member_of($bbuserinfo, X, Y, Z)">

YOUR AD CODE

</if>

What I have found from past experience with this addition is, set them to show for unregistered members only. Members tend to be ad-aware and not click them, and most of my clicks come from non members. This way your existing members don't get overrun with ads, and chances are your ad revenue will stay the same, but of course you know you members best, these are just my opinions.

valdet 05-16-2008 02:04 AM

Code:

<if condition="(($post[postcount]==1) or ($post[islastshown] and !$GLOBALS['vbulletin']->GPC['ajax']))">
This code for first and last post on postbit(_legacy) is incomplete as it shows ads on first post of only the first page. If there are multiple page threads, there will be no ads in first post of XX page of a thread.




In order to fix that, you will need to use this code:

Code:

<if condition="(($post[postcount] % $vboptions[maxposts] == 1) or ($post[islastshown] and !$GLOBALS['vbulletin']->GPC['ajax']))">

nirvana43 05-21-2008 06:16 AM

thanks a million man.


All times are GMT. The time now is 06:54 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.01599 seconds
  • Memory Usage 1,734KB
  • 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
  • (2)bbcode_code_printable
  • (1)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