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

Xplorer4x4 11-05-2005 10:19 AM

Quote:

Originally Posted by smsmasters
How do you stop the code from displaying under PM's?

:ermm: Doesn't for me, are you sure your not thinking about the other ads in thread hack?

Quote:

Why is it sometimes all I get is blank?
I had to turn on the displayed on framed pages options on for my ads. Sometimes the ads can not target the content of the page if there isn;t enough thread content for the ads to decide what audience to target.

ChrisSy 11-07-2005 05:19 PM

Quote:

Originally Posted by WiBu
With that code it hangs when the post is about to create a new page. Otherwise it's fine.

same problem here

Xplorer4x4 11-07-2005 05:24 PM

Well if you haven't done so then just delete the </IF> right before </TD> if you have not done so already.

There is a whole thread of variations in the quick tips and custimizations forum over at vB in the 3.5 section. However the code for adsence before the last post does cause hangs in firefox everytime.

Snoop-It 11-07-2005 07:09 PM

Quote:

Originally Posted by Xplorer4x4
Well I finally have found the fix. This is tested and working in firefox, and does not create any more of those anoying empty tables when you edit.

REPLACE
PHP Code:

<if condition="!$GLOBALS['FIRSTPOSTID']"

WITH
PHP Code:

<if condition="$post[postcount] % $vboptions[maxposts] == 1"

If you need to exclude a user group form seeing them,
PHP Code:

<if condition="$post[postcount] % $vboptions[maxposts] == 1 AND $vbulletin->userinfo[usergroupid] != 'x' "



Nice one dude! It works like a charm!! Thank you!!

ubuntu-geek 11-09-2005 06:57 PM

What if I wanted to exlcude it from one forum? Is there a variable for that?

krg2k 11-11-2005 06:04 AM

Xplorer4x4

GREAT JOB man.... it fixed TWO issues
1. when using QR no more extra tables..
2. in my vbgallery now it only shows after the first comment, before it was showing after every single comment on photos ...

so thanks a milllll

romow 11-12-2005 03:53 AM

i really do NOT recommend using this mod.
after installing the mod, the page loading becomes noticeably slower..

that's because vb has to check "for each reply" whether to display adsense.
i do not want to sacrifice my members' viewing convenience this much.

pelican 11-15-2005 11:32 PM

Quote:

Originally Posted by romow
i really do NOT recommend using this mod.
after installing the mod, the page loading becomes noticeably slower..

that's because vb has to check "for each reply" whether to display adsense.
i do not want to sacrifice my members' viewing convenience this much.

actually it is just comparing of variables, the check whether to display or not is negligible. it is when the banner is display that will takes time because you are retrieving info from a 3rd party.

MissKalunji 11-16-2005 04:43 PM

Quote:

Originally Posted by romow
i really do NOT recommend using this mod.
after installing the mod, the page loading becomes noticeably slower..

that's because vb has to check "for each reply" whether to display adsense.
i do not want to sacrifice my members' viewing convenience this much.


just use iframe.....so the whole board will load then the iframe will........no?

MissKalunji 11-16-2005 05:02 PM

got a small problem when i add the script at the bottom of the postbit legacy

after a while it messes up the template example the 4 first shows up normal then the 5-6 shows up 3 times larger.....


All times are GMT. The time now is 04:54 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.01436 seconds
  • Memory Usage 1,749KB
  • 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_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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