vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   need some help with ads in postbit [3.7] (https://vborg.vbsupport.ru/showthread.php?t=169387)

aj8690 02-01-2008 11:21 PM

need some help with ads in postbit [3.7]
 
1 Attachment(s)
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!

SEOvB 02-02-2008 03:13 PM

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.

aj8690 02-02-2008 03:33 PM

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! :D


All times are GMT. The time now is 10:00 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.00989 seconds
  • Memory Usage 1,723KB
  • 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
  • (9)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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