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

Reply
 
Thread Tools Display Modes
  #1  
Old 02-01-2008, 11:21 PM
aj8690 aj8690 is offline
 
Join Date: Oct 2006
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default need some help with ads in postbit [3.7]

Hello.

I'm having a bit of trouble placing an advertisement in the first post of every thread properly. I'm trying to place a 300x250 square inside the first post of each thread, aligned to the right.

Here is what I have done to my postbit:

This is the ORIGINAL:
Code:
                <!-- message -->
                <div id="post_message_$post[postid]" class="post_message">$post[message]</div>
                <!-- / message -->
I changed it to this:

Code:
                
<!-- message -->
<if condition="(($post[postcount] % $vboptions[maxposts] == 1))">
	<table class="tborder" cellpadding="0" cellspacing="1" border="0" width="302"  align="right">
		<tr> 
			<td class="alt1"><center><script  src="http://tag.contextweb.com/TagPublish/getjs.aspx?action=VIEWAD&cwrun=200&cwadformat=300X250&cwpid=504309&cwwidth=300&cwheight=250&cwpnet=1&cwtagid=18849"></script></center></td>
		</tr>
		</table>
         </if>
                <div id="post_message_$post[postid]" class="post_message">$post[message]</div>
                <!-- / message -->
On lengthy posts it looks good, but in short posts it messes up the sig and the quote, edit, etc. buttons. (see attachment).

Is there a way to make it so that it will "push" the quote, edit, etc. area down instead of making it go to the left of it?

I found a site where they basically did the same thing (but with adsense) and it doesn't mess up the buttons there, so I know it's possible (http://www.modmymoto.com/forums/showthread.php?t=66756).

Any suggestions are appreciated. Thanks!
Attached Images
File Type: jpg ad.jpg (55.5 KB, 0 views)
Reply With Quote
  #2  
Old 02-02-2008, 03:13 PM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<!-- message -->

                <div id="post_message_$post[postid]" class="post_message">
<if condition="(($post[postcount] % $vboptions[maxposts] == 1))">
         <div style="float: right; margin: 3px; padding 3px;">PLACE AD CODE HERE
</div>
</if>
$post[message]</div>
                <!-- / message -->
After
Code:
		$template_hook[postbit_signature_start]
add
Code:
		<div style="clear: both; height: 5%; border-width: 1px 0 0 0; border-style: solid; border-color: black; vertical-align: middle; padding: 5; margin: 5;"><br />
Then after
Code:
<!-- / controls -->
Add
Code:
</div>
Demo I've changed my CSS slightly from whats posted above, but this is the effect that it will give.
Reply With Quote
  #3  
Old 02-02-2008, 03:33 PM
aj8690 aj8690 is offline
 
Join Date: Oct 2006
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you. That's strange, though...because it looks like the website I posted has made it so the buttons do get pushed down somehow...oh well.

Thank you.

Edit: THANK YOU! Your edited post worked like a charm! The only thing I changed is

Code:
<div style="clear: both; height: 5%; border-width: 1px 0 0 0; border-style: solid; border-color: black; vertical-align: middle; padding: 5; margin: 5;"><br />
To this:

Code:
<div style="clear: both; height: 5%; border-width: 0px 0 0 0; border-style: solid; border-color: black; vertical-align: middle; padding: 5; margin: 5;"><br />
Otherwise, there's a line in the middle of the post. Thanks! Works great!
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 06:51 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.03706 seconds
  • Memory Usage 2,201KB
  • 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
  • (9)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (1)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete