vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How To Show A Banner After The First Post In A Thread (https://vborg.vbsupport.ru/showthread.php?t=196730)

symptome 11-19-2008 09:49 PM

How To Show A Banner After The First Post In A Thread
 
This was explained in the following post ..
http://www.vbulletin.com/forum/showthread.php?t=157022
but seems not to be correct anymore (3.7.2)

What and where do I have to insert something to have the same effect?

Thanks a lot!

Marcel

supermak 11-19-2008 11:40 PM

I´m looking for the same solution...

thanks in advance,

SEOvB 11-19-2008 11:58 PM

use the build in ad location templates for after first reply

bluesoul 11-20-2008 02:37 AM

Yup, it's called ad_showthread_firstpost.

Nadeemjp 11-20-2008 02:55 AM

but guys, just like the starter of the thread, we would like to know how to do it.
so can you be kind enough to put down a way to do that?

appreciate that.

SEOvB 11-20-2008 02:56 AM

you open the template and put your advertisement code in?

I'm not sure how else to explain it?

Do you know how to edit templates?

Nadeemjp 11-20-2008 02:58 AM

ahhan, lolz:d
now i get the picture why this question seemed too stupid to you:d

yes sir i kno how to edit the template.
so i just edit the template and put the ad codes there? doesnt matter put it in the beginning of the template or at the end?

SEOvB 11-20-2008 03:02 AM

There shouldn't be anything currently in the template if nothing is showing up after your first post :)

So just stick your code in there and you're set

Nadeemjp 11-20-2008 03:11 AM

gr8 then.
came to look for 2 things, got a solution for one, but the other is still pending:D

just one more thing, i have 8 styles right now which i use alternatively. and like any other modification, i have to edit all 8 style templates for it to work on all styles, right?

SEOvB 11-20-2008 03:18 AM

Thats right!

Glad you got it working!

Nadeemjp 11-20-2008 03:23 AM

good friend, i did as told, but the advertisement is not appearing. any possibilities that come to your mind?

SEOvB 11-20-2008 03:49 AM

that your showthread or postbit(_legacy) templates don't have the $ad_location variable in them.

Dismounted 11-20-2008 03:54 AM

They don't need to have an ad_location variable. The template is parsed automatically and added to the output.

SEOvB 11-20-2008 04:01 AM

Quote:

Originally Posted by Dismounted (Post 1669123)
They don't need to have an ad_location variable. The template is parsed automatically and added to the output.

I thought the $ad_location[ad_showthread_firstpost_start] was needed if they entered their code into the ad_showthread_firstpost_start template to display after the first post?:confused:

If I remove that code from my template it won't work, maybe variable isn't the correct word i was looking for then ?D:

Dismounted 11-20-2008 04:15 AM

Ah, my bad, I stand corrected - I haven't been dabbling in the new features much.

symptome 11-20-2008 05:02 PM

perfect, works nice for me! :)

Thanks a lot!


All times are GMT. The time now is 07:52 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.01309 seconds
  • Memory Usage 1,735KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)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