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)
-   -   Add Advertising after first post - Postbit Alteration (https://vborg.vbsupport.ru/showthread.php?t=126107)

UncoderMom 11-11-2006 04:31 PM

anyone??

KipLarson 11-14-2006 02:50 PM

Does this work in 3.61? Also, is this a violation of Google's TOS? I can only assume it is not as Google themselves recommend placing ads after the first post on forum sites.

See this link

https://www.google.com/adsense/suppo...y?answer=43868

kman5428 11-14-2006 05:20 PM

Hey I'm using the above hack and love it, currently I use it to show PHPadsNew ads to only guest on the forum with this code:

<if condition="$post[postcount] % $vboptions[maxposts] == 1 AND !$bbuserinfo[userid]">

but I want to also show the ads after the last post on each page, how can I add that to the code?

KipLarson 11-16-2006 09:01 PM

Anyone know if this works with 3.61? Please respond :(

Mecho 11-16-2006 09:13 PM

Quote:

Originally Posted by KipLarson (Post 1118911)
Anyone know if this works with 3.61? Please respond :(


yes . it works

KipLarson 11-17-2006 02:48 PM

Quote:

Originally Posted by Mecho (Post 1118921)
yes . it works

What about 3.54? I might try it on my 3.61 forum first. (Thanks by the way for the response)

KipLarson 11-19-2006 07:28 PM

Ok, I posted this on two of my forums, however I use vb advanced links directory and the ads are displayed after every single reply in the links directory.

It works fine in the forum though.

Here is the code I'm using:

PHP Code:

<if condition="!is_member_of($bbuserinfo, 2, 3, 6, 7, 9, 10) AND !$GLOBALS['FIRSTPOSTID']">
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">

<
table class="tborder" cellpadding="0px" cellspacing="$stylevar[cellspacing]border="0" width="100%" <td align="center">
<
tr>
    <
td class="thead" align="left">Sponsored LinksLog in or <a href="http://www.haloboards.com/register.php?">Register</ato remove these</td>
</
tr>
<
tr>
    <
td class="alt1" align="center">

Adsense Ad here

    
</td>

</
tr>
</
table>

</
div>
$spacer_close

</if> 

So why is it showing up on after every reply in my links directory? I tried using an if conditional to not show it on that page, but I didn't do it right and can't figure out how to fix it. Any help please?

RealRnB 11-26-2006 07:39 AM

thanks

JohnGBSA 11-28-2006 07:57 PM

This is confusing me no end right now...

I added the code as the last thing in my legacy_postbit template, and made sure I replaced the adsense code with my own. However I get nothing when I look at my forum. No advertising at all.

I'm running 3.6.4 so I'm not sure if that has anything to do with it.

Any help would be apreciated.

/John

GFX Brands 12-06-2006 11:53 PM

i have a question

if i use a banner system already

i tried to put in my code

$bannerads

but no ads showed up any help ?


All times are GMT. The time now is 07:10 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.01658 seconds
  • Memory Usage 1,744KB
  • 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_php_printable
  • (2)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
  • (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