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)

VViper 06-12-2007 10:07 AM

GREAT tutorial, man that worked a charmed, do you have a tutorial for getting the google adsense search in the pull down search bar?

Thanks again what an awesome tut

raiderlax 06-20-2007 03:22 AM

Great tut, thanks for sharing :)

Dmit87 07-07-2007 09:13 PM

amazing tutorial, rep added.

adivor 09-09-2007 10:44 PM

How is possible insert this adsense banner???

i see this page in this forum:
http://www.p2pforum.it/forum/showthread.php?t=222604

many thanks for this beatiful guide !!!


https://vborg.vbsupport.ru/external/2007/10/1.jpg

Riccardo83 09-14-2007 07:43 AM

Still there was no real answer where to put

<!-- google_ad_section_start -->

into showthread templates... ?

NeutralizeR 09-14-2007 11:33 AM

Quote:

Originally Posted by Riccardo83 (Post 1338782)
Still there was no real answer where to put

<!-- google_ad_section_start -->

into showthread templates... ?

Start.
Quote:

<div id="posts">$postbits<div id="lastpost"></div></div>
End.

@ adivor, it's Adsense Premium.

ziahaq21 09-23-2007 10:41 AM

hi
i tried your codings, but the search results and post bit legacy its not working, it shows page cannot find in place of add...rest of the page is ok... it normally happens when adsense account gets terminated, but in rest pages ads are coming...i checked everything is as prescribed by you any idea...

adivor 10-31-2007 02:39 PM

Quote:

Originally Posted by adivor (Post 1335802)
How is possible insert this adsense banner???

i see this page in this forum:
http://www.p2pforum.it/forum/showthread.php?t=222604

many thanks for this beatiful guide !!!


https://vborg.vbsupport.ru/external/2007/10/1.jpg

no help for this question? :confused:

markbolyard 10-31-2007 03:03 PM

adivor, use this code:

Code:

<if condition="!$GLOBALS['FIRSTPOSTID']">
 <br>
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
    <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" colspan="2">       
        Sponsored Links
    </td>
</tr>
<tr>
    <td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
<center>
------PLACE AD CODE HERE------
</center>
    </td>
</tr>
</table>
</if>

and place it at the end of your postbit template. Remember to change "------PLACE AD CODE HERE------" with your ad code / banner image.

adivor 10-31-2007 03:16 PM

tanks but my question is about font dimension in google banner , can you help me ?

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.

nirvana43 06-01-2008 02:14 AM

i've implemented this!! but there are 3 errors...
please check this link : http://validator.w3.org/check?uri=ht...Inline&group=0

how do i fix those 3 errors??? :(

nirvana43 06-16-2008 04:20 AM

I have 1 question,
when we place ads in navbar i.e. :
http://img234.imageshack.us/img234/9625/snap17ub.gif

this unit is displayed only when user is logged in.... please can you tell me, what if i want to display this unit for guests too??
where do i place the code and is there any code modifications??? please help..
i'm not a pro coder... :(

munnakv 06-22-2008 05:04 PM

Fantastic tutorial. bookmarked it. Will read it soon.

Thanks.

Declan127 06-23-2008 05:30 PM

One of the best Tutorials ive seen in a while.

Cheers =]

jalmz 06-30-2008 02:48 PM

wow.. thanks!

glenbelt 07-02-2008 02:14 PM

Added this code to my forum and it seems good but I have one problem.

My link unit is at the top of the forum but below this there is an empty strip. I'm not sure if this was there before I made the changes to the forum, and was wondering if that is where I am meant to be displaying the Ad Unit?

Have attached a screenshot below.
http://img47.imageshack.us/img47/3577/forumbc7.jpg


Thanks for any help.

NeutralizeR 07-02-2008 04:56 PM

It's the first ad unit (728 x 90). Check your navbar edits again. You should know that Google has changed the ad codes incase you are using the ones in this tutorial. If you have just put the ads in your pages, wait a couple of days for the adsense bot to crawl your pages.

glenbelt 07-03-2008 08:12 AM

Thanks NeutralizeR.

I realised that Google had changed their ad codes, but I was a bit confused. Firstly I used the new adsense codes, and then I realised that I had missed out the line of code mentioning the collapsible ad unit html page, so then I went and changed all my adverts over to the style of the ones in the article.

Should I just use the newer adsense codes?

Also would I simply link to the collapsible ad unit.html file from within adsense, where they ask me about showing alternative adverts instead of PSA ones?

Thanks for any help

NeutralizeR 07-03-2008 09:12 AM

Quote:

Originally Posted by glenbelt (Post 1565569)
Thanks NeutralizeR.

I realised that Google had changed their ad codes, but I was a bit confused. Firstly I used the new adsense codes, and then I realised that I had missed out the line of code mentioning the collapsible ad unit html page, so then I went and changed all my adverts over to the style of the ones in the article.

Should I just use the newer adsense codes?

Also would I simply link to the collapsible ad unit.html file from within adsense, where they ask me about showing alternative adverts instead of PSA ones?


Thanks for any help

Yes, use the new adsense codes and enter the link of the collapsible html within adsense.

glenbelt 07-03-2008 09:42 AM

Oh okay, thanks again NeutralizeR.

Can I just ask, what does the collapsible ad unit do? What does it show?

Thanks again

NeutralizeR 07-03-2008 10:01 AM

Quote:

Originally Posted by glenbelt (Post 1565631)
Oh okay, thanks again NeutralizeR.

Can I just ask, what does the collapsible ad unit do? What does it show?


Thanks again

It's optional.

Quote:

The collapsing ad unit code will 'collapse' your ad unit so that it takes up no page space if there are no relevant ads available. This allows you to minimize any blank space that would otherwise occur through the use of alternate colors.

PoetJA-1975 07-12-2008 05:00 PM

Nice locations = Thanx for sharing.

Jacquii.

pranaysanghavi 09-03-2008 08:48 AM

very nice step by step article..

also i'd appreciate if u explain some basic terminologies surrounding google adsense, and a basic screenshot pointing out different names and locations all at once..

however, its commendable article. :) thanks

--------------- Added [DATE]1220509859[/DATE] at [TIME]1220509859[/TIME] ---------------

Hi,

i had added all types of ad units explained in the article yesterday, and they were showing fine. Today when i see i dont see a single ad.

Also i tried to add a tower ad at one more place on my forum home page here at www.officechai.com/forum .. but i dont see at all.

The ad [AdSense unit: Sponsor Lance120x240, towerHome] is active in google adsense ..
I also went through all the trouble shooting steps, but to no avail.

where could I've gone wrong :confused:

here is the adcode:

<td class="alt5" align="left"> <span class="smallfont">
<a href="http://www.nasscom.in/" target="_blank">Nasscom</a> <br />
<a href="http://www.intellibuzz.net/" target="_blank">Intellibuzz Communications</a> <br />

<script type="text/javascript"><!--
google_ad_client = "pub-nnnnnnnnnn";
/* Sponsor Lance120x240, towerHome */
google_ad_slot = "nnnnnn";
google_ad_width = 120;
google_ad_height = 240;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<a href="http://www.forumregistry.com/registry" id="R4ED683">Forum Directory</a>


</span>

pranaysanghavi 09-14-2008 04:20 PM

Quote:

Originally Posted by NeutralizeR (Post 903931)
Some More....

Open your MEMBERINFO template: vBulletin AdminCP > Styles & Templates > Edit Templates > Member Info Templates > MEMBERINFO

Find:

Add above:

Save.

Find: <if condition="$show['signature']">

.


there's not one instance of "$show['signature']">

--------------- Added [DATE]1221412863[/DATE] at [TIME]1221412863[/TIME] ---------------

I've got this one figured out.. thanks

glenbelt 10-08-2008 09:18 AM

Please can someone help... my template is not the default one, and I'm having a problem with the 468x15 adsense unit.

https://vborg.vbsupport.ru/

As you can see in the screenshot above, the unit is below the navibar but I want it to be moved down into the next box, which is currently empty.

Any idea what part of code the box is in?


Thanks for any help

Mustang Sally 10-09-2008 03:28 PM

Is this still OK to use? It's a couple of years old, has anything changed?

NeutralizeR 10-09-2008 03:47 PM

I think it's still good enough to start with.

glenbelt 10-13-2008 11:43 AM

Quote:

Originally Posted by glenbelt (Post 1640135)
Please can someone help... my template is not the default one, and I'm having a problem with the 468x15 adsense unit.

http://img410.imageshack.us/img410/2087/helphz8.jpg

As you can see in the screenshot above, the unit is below the navibar but I want it to be moved down into the next box, which is currently empty.

Any idea what part of code the box is in?


Thanks for any help



Anybody able to help? :(

NeutralizeR 10-13-2008 12:42 PM

If you followed this guide it must be the container table of the 728x90 ad unit.
Move the 468x15 link unit's code to there.

glenbelt 10-14-2008 08:16 AM

Thanks NeutralizeR.

I've moved some code, and now the link unit has gone (which is good), but there is now just an empty space (about 728x90 in size) but no advert is displayed.

When I go to my URL/collapsible-ad-unit.html it loads the page but doesn't display an advert. Could this be why it also doesn't display an advert on the forum?

Thanks for any help again


All times are GMT. The time now is 08:30 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.01708 seconds
  • Memory Usage 1,829KB
  • 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
  • (3)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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