vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Not displaying ads upon post (https://vborg.vbsupport.ru/showthread.php?t=110327)

miner2049er 03-14-2006 08:15 AM

Not displaying ads upon post
 
I'm currently displaying Google Adsense ads on just my showthread.php generated pages, at the bottom. For example:

http://www.foothillsforum.com/forum/showthread.php?t=32

What happens is that when someone makes a new post they get shown their post along with a bunch of google ads. In this situation - just after someone has posted - I do not want to display the ads.

Before I start digging around in the vB code and templates, what is a suitable condition/variable state to look for, so I can use a code or template conditional to skip the display of the ads just after someone has posted?

In other words, ads will only get shown when somebody is browsing thread posts, not on the page presented immediately after posting.

TIA, Miner2049er.

UPDATE...

After some investigations, it seems that

newreply.php (replying to an existing thread)

and

newthread.php (starting a new thread)

redirect to

showthread.php

so I'm assuming if I find where that happens, I can insert a GET variable, and then check for that in showthread.php or the SHOWTHREAD template.

Or is there a pre-existing variable I can check for without having to create my own?

I'm still digging around (lots of vB code there) and any advice is still welcomed.

Miner2049er.

miner2049er 03-15-2006 07:21 PM

Moderator - can this thread be moved to forum

vB3.5 Code Modifications ?


All times are GMT. The time now is 03:03 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.00993 seconds
  • Memory Usage 1,710KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete