Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-25-2004, 01:56 PM
blueuniverse blueuniverse is offline
 
Join Date: Jul 2004
Location: UK
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 09-25-2004, 02:29 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 09-25-2004, 02:31 PM
blueuniverse blueuniverse is offline
 
Join Date: Jul 2004
Location: UK
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry about that, I've got a lot of browser windows open on this forum, must've accidently posted in the wrong one.
Reply With Quote
  #4  
Old 09-25-2004, 04:12 PM
Milorad Milorad is offline
 
Join Date: Mar 2003
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #5  
Old 09-25-2004, 04:30 PM
blueuniverse blueuniverse is offline
 
Join Date: Jul 2004
Location: UK
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I'll give that a go.
Reply With Quote
  #6  
Old 09-25-2004, 05:14 PM
blueuniverse blueuniverse is offline
 
Join Date: Jul 2004
Location: UK
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, that worked brilliantly. Thanks
Reply With Quote
  #7  
Old 09-29-2004, 02:34 PM
blueuniverse blueuniverse is offline
 
Join Date: Jul 2004
Location: UK
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Attached Images
File Type: gif ridhproblems.gif (842 Bytes, 0 views)
File Type: gif ridhright.gif (841 Bytes, 0 views)
Reply With Quote
  #8  
Old 10-01-2004, 05:58 AM
blueuniverse blueuniverse is offline
 
Join Date: Jul 2004
Location: UK
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*bump*
Reply With Quote
  #9  
Old 10-18-2004, 07:43 PM
JuicyDuff JuicyDuff is offline
 
Join Date: Sep 2004
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #10  
Old 10-18-2004, 09:38 PM
JuicyDuff JuicyDuff is offline
 
Join Date: Sep 2004
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No one here to help?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:51 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04069 seconds
  • Memory Usage 2,272KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete