vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Adsense, different sizes for visitors to members ? under last post (https://vborg.vbsupport.ru/showthread.php?t=119620)

MadKad 06-24-2006 10:00 PM

Adsense, different sizes for visitors to members ? under last post
 
I made this for our forum because our members didn?t like it when we added the big Adsense banner under last post, so I made this small hack where it shows smaller adverts for members and bigger ones to visitors.

What it does:
Shows one size advert to visitors (Adsense, text links, banners or anything you want)
Can be set to have more features that to adds if you no coding (or ask)
Set to show for user groups

Files:
1 Product file
1 Main template edit
New template will need your ad?s adding

Folder contains:
product-google_adds_sizes.XML file
Read me first.txt file (please read first)

FAQ:

Q: will this work in 3.6.0
A: Yes :D

Q: Can I add more that two kinds of adverts?
A: Yes you will need to add more code to the template

Q: My ad's are not showing?
A: Please make sure you add your user groups like 1, 2, 3, 4 with the spaces and not 1,2,3,4

This is the code you will need I have commented it.

Code:

<if condition="in_array($bbuserinfo['usergroupid'], array(usergroupshere))">
advert here
</if>

Supported at webmaster forum

Thank you

MadKad 06-25-2006 03:31 PM

Adding the adverts after the first post insted or as well please do the following


After first post ad's:
================================================

Template > postbit_legacy

Find:
Code:

<!-- / post #$post[postid] -->
After add:
Code:

<!-- Start Google bottom -->
$google_bottom
<!-- / End Google bottom -->

=================================================

Template > postbit

Find:
Code:

<!-- / post #$post[postid] -->
After add:
Code:

<!-- Start Google bottom -->
$google_bottom
<!-- / End Google bottom -->

=================================================

Thats it that is the codes needed for both post styles after the first post :cool:

Snake 06-25-2006 05:00 PM

Very nice idea! :)

MadKad 06-25-2006 05:12 PM

Thank you I have more Ideas for other things, I am just trying to think of best ways to do them lol, this was my first mod release :D

MadKad 06-25-2006 06:01 PM

Post two I have added for the adverts to be able to go under the first post on every thread :D

wobbly 06-26-2006 04:08 AM

Does this fall within the Adsense Terms of Service?

MadKad 06-26-2006 05:59 AM

Yes, I have looked and there TOS doesnt say anything about changing the size of adverts :)

All it does is show the visitors a big banner and the members a small banner :)

egyptsons 06-26-2006 06:12 AM

Great idea ;)

Installed

MadKad 06-26-2006 06:31 AM

Thanks mate :D

*Makes me feel good*

Zia 06-26-2006 06:54 AM

hi there..
like ur idea...hope will use that....

can we share idea with u ?
can u integrate goolgle adsense , miva & clickshor ?
like google searc + miva search ?
https://vborg.vbsupport.ru/showthread.php?t=118940


[high]* Zia kliks installed[/high]


All times are GMT. The time now is 05:33 AM.

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.01450 seconds
  • Memory Usage 1,735KB
  • 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
  • (5)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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