vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Ads after first post in selected threads only (https://vborg.vbsupport.ru/showthread.php?t=195877)

prawn_86 11-10-2008 04:28 AM

Ads after first post in selected threads only
 
Hi All,

Newbie here so be nice :)

Is it possible to put ads/banners after the first post in selected threads only?

IE If i had 5 threads but only wanted ads/banners after the first post in 2 of them how would i do that?

If its not possible through tweaking the default ad templates, would it be possible to use something like this:
http://www.vbulletin.com/forum/showt...ght=first+post

Any help/advice appreciated as it has been a long time since i did and coding or scripting so im very very rusty!

SEOvB 11-10-2008 04:32 AM

Dont think it'd be possible unless you made a plugin specifically for this need

prawn_86 11-10-2008 04:33 AM

Quote:

Originally Posted by FRDS (Post 1662751)
Dont think it'd be possible unless you made a plugin specifically for this need

Any ideas on where to start in order to make it?

Or how much it would cost to get one made?

Dismounted 11-10-2008 05:11 AM

You can use conditionals in the ad location template for after the first post.

prawn_86 11-10-2008 06:27 AM

Quote:

Originally Posted by Dismounted (Post 1662762)
You can use conditionals in the ad location template for after the first post.

Would you be able to explain further or give me a link for further reading?

thanks

Dismounted 11-10-2008 07:05 AM

Code:

<if condition="$thread['threadid'] == X">Ad Here</if>

MrEyes 11-10-2008 08:24 AM

The complexity of this depends on what criteria you want to use to decide whether the ad should be displayed or not. For example, if you only wanted to display the ad on threads that are older than X days you could use a conditional.

If you could tell us what criteria you want to use we might be able to help out with the correct conditional statement to use in your ad template.

prawn_86 11-10-2008 08:28 AM

awesome D,

works a treat. Thanks heaps.

Prawn

--------------- Added [DATE]1226312990[/DATE] at [TIME]1226312990[/TIME] ---------------

MrEyes,

Dismounteds suggestion worked fine. I'll just load up the IF functions for each thread i want an ad on. I basically just want to place a few selectively, no specific criteria.


All times are GMT. The time now is 08:11 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.01034 seconds
  • Memory Usage 1,726KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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