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 07-17-2006 11:41 AM

np :D

ok for showing just the adds to your visitors and not the table to your registerd users do this

Code:


<!--######## start of bottom add's ########-->
<if condition="in_array($bbuserinfo['usergroupid'], array(1, 2, 3, 4, 5))">
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
    <td class="thead" style="font-weight:normal" align="left">Advertisements</td>
</tr>
<tr>
    <td align="center" class="alt1">

<script type="text/javascript"><!--
google_ad_client = "pub-7213854248425086";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel ="";
//--></script>
<script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


<!-- Ad End -->
<!-- User ad's end -->
</div>
</if>
</td>
</tr>
</table>

</div>
</if>
<!--####### end of bottom add's #######-->

and my fault you need to add spaces like this

Code:

<if condition="in_array($bbuserinfo['usergroupid'], array(1, 2, 3, 4, 5))">
anmd not like this
Code:

<if condition="in_array($bbuserinfo['usergroupid'], array(1,2,3,4,5))">
that is me that sorry :confused:

that should do it for you just copy that big code as I have set it all for you

rollo tamasi 07-17-2006 11:48 AM

cheers mate :)
works a charm

MadKad 07-17-2006 11:51 AM

np mate dont forget to click install :D

rollo tamasi 07-17-2006 11:53 AM

installed!

MadKad 07-19-2006 08:29 PM

Thanks mate :D

bollie 08-09-2006 04:01 PM

Work for 3.6.0 ????

MadKad 08-09-2006 04:54 PM

I havent tried but I dont see why not as there is no mager code used, if you try please tell us :)

bollie 08-10-2006 05:05 AM

Work for 3.6.0 ;)

MadKad 08-29-2006 09:54 AM

great thanks for telling us :D

novastar 09-07-2006 02:12 AM

nice hack, had no problems installing it in 3.6.0
Thanks.


All times are GMT. The time now is 10:37 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.00945 seconds
  • Memory Usage 1,730KB
  • 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
  • (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
  • (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