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 09-30-2006 10:43 PM

Quote:

Originally Posted by Smoothie
Ok, next easy question. Where in showthread template to add adsense directly after last post, attached to it, similar to the first post. I assume you would need a conditional to show this?

Open your SHOWTHREAD template,
Find:
Quote:

<!-- / start content table -->
Add below:
Quote:

<center>
<< adsense codes comes here >>
</center>
Save.

Smoothie 10-01-2006 04:32 AM

Quote:

Originally Posted by NeutralizeR
Open your SHOWTHREAD template,
Find:

Add below:

Save.

That didn't seem to work. There's a slight gap between the end of the postbit and the ad.

How do I combine these condtionals?

Code:

<if condition="!in_array($forum[forumid], array(14,19))">
<if condition="$post[islastshown]">


NeutralizeR 10-01-2006 04:56 AM

Quote:

Originally Posted by Smoothie
That didn't seem to work. There's a slight gap between the end of the postbit and the ad.

How do I combine these condtionals?

Code:

<if condition="!in_array($forum[forumid], array(14,19))">
<if condition="$post[islastshown]">


Check the first post, it's in the postbit template.

You need this conditional:
Quote:

<if condition="!$post['islastshown']">

</if>
This should work.

Smoothie 10-01-2006 04:59 AM

1 Attachment(s)
Quote:

Originally Posted by NeutralizeR
Open your SHOWTHREAD template,
Find:

Add below:

Save.

Found where to add it. Here's the bottom and top.

Smoothie 10-01-2006 05:01 AM

Quote:

Originally Posted by NeutralizeR
Check the first post, it's in the postbit template.

You need this conditional:


This should work.

Yes, but I need to combine them both into one, but not sure how to do that.

NeutralizeR 10-01-2006 05:03 AM

I think it should work that way, too.

Quote:

<if condition="!in_array($forum[forumid], array(14,19))">
<if condition="$post[islastshown]">
<<---ads--->>
</if>
</if>
Try this:
Quote:

<if condition="(!$post['islastshown']) and !in_array($forum[forumid], array(14,19))">
<<---ads--->>
</if>

lowlight 10-01-2006 05:30 PM

Is there an update for 3.6? The tables in my forum are shifted to the right now in thread view.

NeutralizeR 10-01-2006 06:41 PM

Quote:

Originally Posted by lowlight
Is there an update for 3.6? The tables in my forum are shifted to the right now in thread view.

Which template edit did you use and which code?

All edits should be ok with vBulletin 3.6 series.

Smoothie 10-02-2006 01:15 AM

Quote:

Originally Posted by NeutralizeR
I think it should work that way, too.



Try this:

Thanks!

rezapci 10-12-2006 07:07 AM

do we have any for yahoo publisher?

NeutralizeR 10-12-2006 02:49 PM

Quote:

Originally Posted by rezapci
do we have any for yahoo publisher?

I don't use Yahoo Publisher but you can apply the same template edits if the ad sizes are matching.

farukcan 10-15-2006 06:18 AM

thank you... :)

teknoledge 10-24-2006 05:08 AM

How to implement adsense in the same style as in forumshow template but for forumhome?

NeutralizeR 10-24-2006 11:53 AM

Quote:

Originally Posted by teknoledge
How to implement adsense in the same style as in forumshow template but for forumhome?

https://vborg.vbsupport.ru/showpost....31&postcount=9

popiul99 10-25-2006 04:33 AM

ok so i integrated this in my forum www.ps3center.net/forums .. but I tweaked it a little .. I added the logo`s around it etc. Do you guys think this is against Google`s TOS ? What would you guys do? Keep it or take it off .. I dont wanna get banned from Adsense ...

soletrader 10-26-2006 04:12 AM

How would I make it viewable by certain usergroups only? Thanks

yesfans 10-26-2006 03:51 PM

This not real clear, to me anyways. I want to put my ads in between the posts in a thread. So instead of the ads being at the top of the site pages as it is now. Take them from there have them show in the threads. When some one opens a thread and they cruz thru the posts, there would be my ads in them, between the posts.

On my site, the posts are in sep boxes with a space between them. Anyway to code the Google ads to fit in between them, another box, that flows with the posts?

teknoledge 11-03-2006 06:47 AM

Quote:

Originally Posted by NeutralizeR

Obviously I wasnt clear enough :P...

I want to integrate adsense 236x60 half banner into the forum list on forumhome page....

EXAMPLE:
  • General Forum
    • Forum1
    • Forum2
    • Adsense banner (to be displayed as forum category ;) )
    • Forum3
    • ...

imported_infitech 11-13-2006 09:53 AM

this is great

lazydesis 11-15-2006 09:54 PM

google banned my website cuz I used this ..wudnt recommend this for google ..but other ad networks are fine i guess ...great hack meanwhile :)

neverknow1 11-16-2006 10:52 AM

Quote:

Originally Posted by lazyindian (Post 1118219)
google banned my website cuz I used this ..wudnt recommend this for google ..but other ad networks are fine i guess ...great hack meanwhile :)

Are you sure you are banned because of this reason? Most of the people use it without any problem including NeutralizeR. I think it is some other reason, please find out.

I also install the code.... my forum look very nice right now.. you can take a look at http://forum.easywordpress.com for example.

Thanks to NeutralizeR, you did a great job.

Tips for you guys who are not quite sure about this modifications. You need to use dreamweaver or any HTML editor which can show you the interface. From there you can edit the code and add in the boarder easily.

By the way, do any one of you using adsense sharing mod by chance??

croportal 11-22-2006 12:10 PM

when i add google adsense i have problem in opera, it only view header notging else

http://img176.imageshack.us/my.php?i...2211200md9.jpg

zınar 11-27-2006 06:09 AM

thank you NeutralizeR
-Eline sağlık bu derecede başarılı arkadaşları burda görmek çok güzel, çalışmalarının daim olması dileği ile.-

simi 11-29-2006 10:14 AM

thank you NeutralizeR
-eline sağlık dostum-

projectego 11-30-2006 01:19 PM

Awesome guide, NeutralizeR! I've implemented some your tutorial ideas into my forums. :)

BigJimTheLug 12-21-2006 09:14 PM

Hello everyone,


I would like to offer some advice to those who perform these modifications.

if you value your google adsense account, please verify that all these positions are within Google's TOS. Just because an Adsense modification is approved for someone, doesn't mean it is approved for you. Case in point, I notified Google about these positions for my forum, and I am not allowed to display Google Adsense link units above the navbar. Please be careful guys and do not lose your Adsense accounts.

Here is an Adsense link unit blended above the navbar:
http://i116.photobucket.com/albums/o...bovenavbar.jpg

efe 12-28-2006 01:13 AM

google_ad_channel nedir ve nereden öğrenilir?

NeutralizeR 12-31-2006 12:26 PM

Quote:

Originally Posted by efe (Post 1146128)
google_ad_channel nedir ve nereden ?ğrenilir?

Her bir reklam biriminin performansını ayrı ayrı izlemek i?in kullanılır kanallar.

Adsense hesabınızla giriş yaptıktan sonra kodu oluşturmadan ?nce kanal se?imi yapıyorsunuz, tabii isteğe bağlı. google_ad_channel satırını tamamen silebilirsiniz.

vietfancy 01-02-2007 06:57 PM

great tutorial

zkilzz 01-07-2007 12:16 PM

Hello guys!
I want to make a change here in forumdisplay and search result.
Right now they both look like this

https://vborg.vbsupport.ru/

I want to drop the other TD and have only one so the ad can lay over not just the thread title but also last post, replies views and forum.

Like this.

https://vborg.vbsupport.ru/


Anyone have any ideas?

Ironduke 01-12-2007 08:31 AM

Hi, question about "after first post deployment"... I've put the code in the postbit_legacy afer <!-- / message -->, but this makes the ad deploy within the posts, I was forced to put it and the end of the postbit_legacy to make it work, but now my multi-quote and quick reply buttons are broken past the second post.



Example:
http://www.worldaffairsboard.com/sho...128#post327128

EDIT

After <!-- / message --> in the postbit legacy:

Quote:

<div id="post_message_$post[postid]">$post[message]</div>
<!-- / message -->
<if condition="(($post[postcount]==1) and !$GLOBALS['vbulletin']->GPC['ajax'])">
<center>
<script type="text/javascript"><!--
google_ad_client = "pub-4952345823118343";
google_alternate_color = "FFFFFF";
google_ad_width = 728;
google_ad_height = 15;
google_ad_format = "728x15_0ads_al";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "FF0000";
google_color_text = "22229C";
google_color_url = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
</if>
Nothing is displaying, but the buttons are working correctly. I need the ads to display between the first and second post on every page. Thanks for any help anybody can give me.

bolly.beats 02-09-2007 01:48 AM

thanx thanx thanx wow:p

Nwemo'# 03-01-2007 07:05 AM

Thanks a lot for this GREAT Integration Tutorial!

How can i put Ads in the forum list on forumhome page, like on this example.

http://imagesjack.us/picture.php?p=e7ed01cecb.jpg

Sorry for my bad English.

kenfuzed 03-02-2007 04:40 PM

Quote:

Originally Posted by Nwemo'# (Post 1193178)
Thanks a lot for this GREAT Integration Tutorial!

How can i put Ads in the forum list on forumhome page, like on this example.

http://imagesjack.us/picture.php?p=e7ed01cecb.jpg

Sorry for my bad English.

Making the ad look too much like an actual post can get you into trouble under Google's TOS. Basically you want your visitors to click on ads voluntarily rather than tricking them into clicking something they think is content. I always keep that in mind when placing my ads. When in doubt I don't do it in fear of getting banned. Between my site and forum I do fairly well with adsense so it's not worth losing it.

I added the ad code into my Forumdisplay as described in this tutorial and it looks great. I tweaked it slightly since I use a stickies plugin, that way the ads appear between the sticky and the first post.

Nwemo'# 03-05-2007 06:16 AM

Ok, but How can i put Ads in the forum list on forumhome page, with message about "Sponsored Links" like on NeutralizeR example?

styleforum 03-07-2007 07:33 PM

Quote:

Originally Posted by zkilzz (Post 1152567)
Hello guys!
I want to make a change here in forumdisplay and search result.
Right now they both look like this

http://www.bilforumet.net/images/ski...engoogle01.gif

I want to drop the other TD and have only one so the ad can lay over not just the thread title but also last post, replies views and forum.

Like this.

http://www.bilforumet.net/images/ski...engoogle02.gif


Anyone have any ideas?

You need to use a colspan (column span) in your <tr> ... sorry I can't be more specific but if you look it up you'll figure it out.

SaN-DeeP 03-15-2007 08:03 PM

how to put google adsense large rectangles on top right of first post..

Smitty 03-24-2007 10:59 AM

Where would one put
Code:

<!-- google_ad_section_start -->

<!-- google_ad_section_end -->

in the showthread template?

Now that I think of it, what's the best place in the forumdisplay to put the code in?

croportal 04-24-2007 08:18 AM

adsense after 1post and last post but not in all forum i can change in which forum to display

kollam003 05-23-2007 06:03 AM

very wonderful tutorial very well and detailed explanations given thanks a lot for this


All times are GMT. The time now is 02:57 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.01678 seconds
  • Memory Usage 1,831KB
  • 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
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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