vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Adding custom html code (adsense, ads...) after first post (postbit) (https://vborg.vbsupport.ru/showthread.php?t=91182)

RCA 06-27-2005 03:40 PM

Adding custom html code (adsense, ads...) after first post (postbit)
 
Adding custom html code (adsense, ads...) after first post (postbit)

How to do this in vb 3.5.0?

I need to add custom code after first post on every thread page, but it only custom html only appears at first page.

WEForums 06-27-2005 05:06 PM

Try:

Code:

<if condition="$post[postcount] == 1">whatever</if>
Should work. Might be a better code, though. Place it at the end of postbit/legacy.

RCA 06-28-2005 11:27 AM

Thanks, but with code like this, custom html is shown only after first post on first page. At Page 2, Page 3 ... isn't shown because postcount != 1.

Chris M 06-28-2005 01:15 PM

This was a thread on vBulletin.com yesterday...

http://www.vbulletin.com/forum/showthread.php?p=812388
http://www.vbulletin.com/forum/showthread.php?t=144577

Satan

Gary King 07-07-2005 07:31 PM

Quote:

Originally Posted by hellsatan

Those solutions aren't for vB 3.5

RCA 07-07-2005 10:51 PM

still no way...

Andreas 07-07-2005 11:07 PM

Hmm, try

HTML Code:

<if condition="!$GLOBALS['FIRSTPOSTID']">
<!-- Adsense here -->
</if>

at the End of Template postbit

RCA 07-08-2005 03:23 PM

great, with that conditional ! is working ok! :D

vauge 07-31-2005 06:14 AM

No worky for me in RC1. :(

Am I doing something wrong?

BamaStangGuy 08-03-2005 04:53 AM

Works for me

http://www.mustangevolution.com/forum/t16230/

Example


All times are GMT. The time now is 08:24 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.01085 seconds
  • Memory Usage 1,728KB
  • 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_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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