vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Ad after first post (https://vborg.vbsupport.ru/showthread.php?t=69863)

blueuniverse 09-25-2004 01:56 PM

Ad after first post
 
I have looked about for the last 30 mins, but I didn't manage to find a thread like this, that allows you on vb3, to have some ad space after the first post in the thread.

I am pretty sure this is possible, with conditionals, but how would you do it?

Dean C 09-25-2004 02:29 PM

Questions about modifying vBulletin's default behaviour and asking about modifications in general, should be posted in General vBulletin Questions. Please read the forum descriptions more carefully in future. I've moved your thread there for you :)

Thanks,
- Dean

blueuniverse 09-25-2004 02:31 PM

sorry about that, I've got a lot of browser windows open on this forum, must've accidently posted in the wrong one.

Milorad 09-25-2004 04:12 PM

Put this at the END of your postbit (or postbit_legacy) template. The ad will only be displayed after the first post in each thread.

HTML Code:


<if condition="$post['postid'] == $thread['firstpostid']">

  Your Ad Code Goes Here

</if>


blueuniverse 09-25-2004 04:30 PM

Thanks, I'll give that a go.

blueuniverse 09-25-2004 05:14 PM

Yeah, that worked brilliantly. Thanks

blueuniverse 09-29-2004 02:34 PM

1 Attachment(s)
Ok, it did work rather well....but I need a bit more help.

It is reasonably OK, but, when it shows on private messages, it displays like this (ridhproblems.gif)

The 2 problems with this, are that it goes to the side a bit (the sponsors box, which is the bit after the first post), and also there is no break.

Included, is a pic of how I want it to look (ridhright.gif). It displays like this on normal topics, although, topics with only 1 post, still have the line gap problem.

E.g. of how it is displayed right... http://www.rouseindahouse.com/showth...9&page=1&pp=20


The code for this is basically the following

Code:

<if condition="$post['postid'] == $thread['firstpostid']">
<!-- text advertising -->
<div id="posts">
        <div align="center">
                <div class="page" style="width:100%; text-align:left">
                        <div style="padding:0px 25px 0px 25px">
<div style="padding:0px 0px 6px 0px">
<table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center">
<tr>        <td class="thead" style="font-weight:normal" ><strong>Sponsors</strong></td>  </tr>
<tr>
<td class="alt1" align="center">
Google ads script here (not pasted)
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</if>

This is at the bottom, of the postbit template, as well as the postbit_legacy.

What would the problem be?

blueuniverse 10-01-2004 05:58 AM

*bump*

JuicyDuff 10-18-2004 07:43 PM

I'm having a few problems as you can see at: http://www.forum.juicyduff.com/showthread.php?t=32

What I want is the bg around the banner to be the same as the bg of the banner (AED1D7) and the bits outside the border ... please help!

Here is the post bit code:

Code:

</if>
<!-- / post #$post[postid] -->
<if condition="$post['postid'] == $thread['firstpostid']">
<table class="tborder" cellpadding="6" cellspacing="0" border="0" width="710" align="center"> <tr>        <td  class="thead" style="font-weight:normal" ><strong>Sponsors</strong></td>  </tr>
<tr>
<td class="alt1" align="center">
(adsense code here)
</td>
</tr>
</table>

</if>


JuicyDuff 10-18-2004 09:38 PM

No one here to help?


All times are GMT. The time now is 08:45 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.01200 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_html_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