vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Advertisement Inside First Post In A Thread (https://vborg.vbsupport.ru/showthread.php?t=234851)

TheSupportForum 02-06-2010 11:00 PM

you are getting message becuase vb4 already has an ad program integrated
you cant parse the same function more than once

your add function does

djbaxter 02-06-2010 11:29 PM

Quote:

Originally Posted by simonhind (Post 1976329)
you are getting message becuase vb4 already has an ad program integrated
you cant parse the same function more than once

your add function does

No that's not it.

But you could try adding <vb:literal>... </vb:literal> tags around the code.

KevinGupta 02-07-2010 01:23 AM

Works great with the tags :)
thanks

djbaxter 02-07-2010 01:33 AM

Glad to hear that. :)

ndut 02-08-2010 10:57 PM

Quote:

Originally Posted by civil78 (Post 1973930)
ADMINCP --> Advertising --> Add New Ad

and from dropdown Page select Thread



From VB4 Adv system you can set a lot of rules where and when something appears.

when i click advertising, why there is DATABASE ERROR??

PjDaBadMan 02-21-2010 12:44 AM

I have installed this to my site.
I have one question though, How come the ads randomly appear?

Let me explain more. I will click on a thread and under the first post there will be an ad. I will backspace after and go to another thread then the ad does not appear under the first post on the new thread.
So basically the ads randomly appear on and off under the first posts.

Any advice?

kingMOB 02-24-2010 11:08 AM

Could this code be adapted to be used in the cms? Like, after the third article print a banner, or insert a widget?

Dr.osamA 03-17-2010 02:09 AM

goood work

installed

5 stars

thanxxxx

Sancipa 04-02-2010 12:17 PM

this mod only works if you have edited the post


you got put it wrong...

try this

Put this script:
Code:

<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
  <div class="body">
  <div style="width: 100%">

Your Advertisement Code here...

</div>
</div>
</vb:if>


After this:
Code:

{vb:raw template_hook.postbit_end}

Sancipa 04-11-2010 06:31 PM

Not working on 4.0.3 need little help here...


All times are GMT. The time now is 02:04 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.01164 seconds
  • Memory Usage 1,730KB
  • 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
  • (2)bbcode_code_printable
  • (2)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