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)
-   -   Show Thread Enhancements - Show Adsense After post number "x" and "x" (https://vborg.vbsupport.ru/showthread.php?t=138312)

SaN-DeeP 03-14-2007 09:56 PM

thanks for sharing

proxx 03-20-2007 01:48 PM

does anyone know how to get rid of that space on the left and right of the ad box?

http://img250.imageshack.us/img250/3...titled8cj1.jpg

Guest210212002 03-22-2007 08:58 PM

At a guess (I don't have this installed), change:

google_ad_width = 468;

To whatever your default template scaling is. So something like:

google_ad_width = 95%;

Xplorer4x4 03-23-2007 04:54 AM

PHP Code:

<!-- controls -->
<if 
condition="in_array($post['postcount'], array(1,10,20,21,30))">
<
span style="float:$stylevar[left]">
[
ad code]
</
span>
</if>
</if> 

I through the <!-- controls --> part in for reference as to where I am using the code. I actually tried both if conditions referring to post count(not worried about the user group condition)
and neither condition worked for anything but the first post.

Atakan KOC 03-26-2007 06:57 AM

Thanks...

imk 03-28-2007 07:20 PM

at last thanks man

nethelp 04-25-2008 10:06 PM

I'm trying to set a subscription for my mebers. I want thoose who pay a small fee to have no ads when they are logged. How do I do that?

I did placed this code, but still have ads upon payment complete:
Code:

<if condition="in_array($post['postcount'], array(1, 5, 10, 15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100))">
<if condition="in_array($bbuserinfo['usergroupid'], array(1, 2, 3, 4,5,6,7,8, 9))">
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="thead" align="left">Sponsored Links (<a href=/payments.php>No Ads</a>)</td>
</tr>
<tr>
        <td class="alt1" align="center">

    MY ADSENSE CODE

        </td>
</tr>
</table>

</div>
$spacer_close

</if></if>


LAJAURIA 07-08-2008 05:25 PM

any way of exclude some forums ID??

I tryed this conditional:

Quote:

<if condition="$post[postcount]==1 AND !in_array($forumid, array(20,32,34,40,135,136,70,25,26,73,124,27,137,6 6,164,3,4,54,42,43,116))">
<p align="center">

ADSENSE CODE

</p>
</if>

but it doesn't work.


any ideas??


All times are GMT. The time now is 04:33 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.01200 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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