vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Forum Display Enhancements - Adsense linkunit below the last thread (https://vborg.vbsupport.ru/showthread.php?t=151593)

StarBuG 07-06-2007 10:00 PM

Adsense linkunit below the last thread
 
Hi

This is another one of my adsense modifications. I hope you like it.


What it does:

This places an adsense linkunit under the last thread on forumdisplay.

Install:

in Forumdisplay template find:


Code:

</if>
    $threadbits

and add below:


Code:

</tbody>
</table>
<table class="tborder" id="threadslist" align="center" border="0" cellpadding="6" cellspacing="1" width="100%">
<tr>
    <td class="thead" align="center" <if condition="$show['inlinemod']">colspan="7"<else /> colspan="6"</if>>
        <div>
<!-- Adsense linkunit under last thread of forumdisplay start -->
<script type="text/javascript"><!--
google_ad_client = "YOUR PUB ID HERE";
google_alternate_color = "405888";
google_ad_width = 728;
google_ad_height = 15;
google_ad_format = "728x15_0ads_al_s";
google_color_border = "405888";
google_color_bg = "405888";
google_color_link = "FFFFFF";
google_color_text = "FFFFFF";
google_color_url = "FFFFFF";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- Adsense linkunit under last thread of forumdisplay end -->
        </div>
    </td>
</tr>

You just need to customize the adsense code marked with:

<!-- Adsense linkunit under last thread of forumdisplay start -->

replace "YOUR PUB ID HERE" with your pub-ID
and change the colors to fit your forum colors


DEMO: http://www.elternfragen.net/forumdisplay.php?f=12


Changelog:

v1.01 - 2007/07/22: NO CHANGES, just removed my Pub-ID from the hack!
v1.01 : Fixed a display bug for Internet Explorer
v1.00 : Initial release

Please click install and leave feedback, if you use this mod. THX

StarBuG

If you did not register for an Adsense account yet but you plan to, feel free to contact me. If you register via my referral I am willing to help you get the most out of your adsense placement by assisting you during the setup process and implementing the best adsense modifications. Just write me a Private message.

David Lama 07-08-2007 02:53 AM

didnt work for me :(

StarBuG 07-08-2007 07:08 AM

Quote:

Originally Posted by David Lama (Post 1285520)
didnt work for me :(

What exactly did not work?

Smoothie 07-08-2007 09:02 PM

Does this also show when searching for new posts?

StarBuG 07-08-2007 09:29 PM

No it doesn't ;)

Smoothie 07-09-2007 12:48 PM

I have this installed and added a condition to not show in private forums, per googles TOS. As a suggestion, might want to include with your next release.

StarBuG 07-09-2007 01:05 PM

What in googles TOS states, that you are not allowed to show ads in private sections?

Smoothie 07-09-2007 04:15 PM

Quote:

Originally Posted by StarBuG (Post 1286692)
What in googles TOS states, that you are not allowed to show ads in private sections?

I may have misread the program terms. It does say that it is not recommended to display adsense behind a login page (Private forums would be considered behind a login page) because relevant ads may not show. So, I apologize for the misunderstanding.

rootnik 07-11-2007 08:05 PM

Quote:

Originally Posted by Smoothie (Post 1286818)
I may have misread the program terms. It does say that it is not recommended to display adsense behind a login page (Private forums would be considered behind a login page) because relevant ads may not show. So, I apologize for the misunderstanding.


I have no problems with relevant ads showing up in my 'staff' forums.

Smoothie 07-12-2007 02:26 PM

Quote:

Originally Posted by rootnik (Post 1288577)
I have no problems with relevant ads showing up in my 'staff' forums.

Good for you.

MetalORock 07-12-2007 03:01 PM

very good, thanks :)

StarBuG 07-13-2007 04:43 PM

If Adsense can't determine the content of a thread because of spider restrictions (like in staff forums) adsense serves ads fitting the theme and keywords of your forum in general.

So the ads should be somewhat relevant.

momo2 09-05-2007 10:22 PM

Installed, was looking for this a while... thanksss

FIM 09-10-2007 12:54 PM

reserved :)

Fenriz 09-17-2007 09:25 PM

Is it possible to make links with transparent background? I have a thead class with gradient background..

StarBuG 09-18-2007 02:36 PM

The adsense ad will not be transparent.
I usually pick the middle color of the gradient and make it the bg color of the adsense ad.

caractacus 09-22-2007 09:03 AM

This is probably a blatantly obvious question, but where is the Forumdisplay template?

StarBuG 09-22-2007 11:05 PM

In your admin controll panel, in styles and templates -> your style << >>

ThorstenA 09-22-2007 11:48 PM

Do these link units work out well?

Fenriz 09-23-2007 12:34 AM

StarBuG, could you write how to have this adsense unit under the last message in showthread?

ctfortner 12-07-2007 02:15 PM

seemed to work great, nice mod, thanks. installed

Ba$im 12-13-2007 02:34 PM

thanks install

StarBuG 12-13-2007 09:37 PM

@Fenriz: https://vborg.vbsupport.ru/showthrea...75#post1400475

Check the Add-on Part ;)

momo2 02-13-2008 06:51 AM

how do i do above instead of below ???


All times are GMT. The time now is 03:36 PM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01282 seconds
  • Memory Usage 1,758KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete