vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Box For Ads (https://vborg.vbsupport.ru/showthread.php?t=116275)

pumarjr 05-21-2006 02:39 PM

Box For Ads
 
1 Attachment(s)
How can i create a box/table so that it matches the forum & so i can insert ads into it?
any help would be appreciated.

attached is an image of what i'm talking about.

ericgtr 05-21-2006 03:44 PM

You mean in a collapsable table? Here is one way to do it...

In your FORUMHOME template find:
Code:

<if condition="$show['birthdays']">
<!-- today's birthdays -->

Then above it place this code, insert your ad code in between the labels where I've bolded it:
Code:

<!-- Begin Ad Module -->
<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('attachstats_stats')"><img id="collapseimg__ads_module" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg__ads_module].gif" alt="" border="0" /></a>
                        <phrase 1="$vboptions[bbtitle]">$vbphrase[attach_stats]</phrase>
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_attachstats_stats" style="$vbcollapse[collapseobj_attachstats_stats]">
        <tr>
                <td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
                <td class="alt1" width="100%">
                <div class="smallfont">
<!-- Place Ad Code -->

<!-- End Place Ad Code -->
                </div>
                </td>
        </tr>
</tbody>
<!-- /End Ad Module -->


pumarjr 05-21-2006 05:48 PM

thankz, any way to remove the left colum, whick contains the stats.gif image? and so that the bg is all one color?

Rich 05-21-2006 08:26 PM

All you need to do is first remove:

HTML Code:

colspan="2"
Then remove this entire line:

HTML Code:

<td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
There you go, no left column. :)

pumarjr 05-22-2006 10:41 PM

ok, ty, now if i wanted to insert another ad into that same block on the same line what code would i use then?

Rich 05-22-2006 10:54 PM

If I knew what you meant, I would be able to answer that. If you are asking how to add to different banners to that same block, just add a <br /> after the first banner and following the <br /> add the second banner.

ericgtr 05-22-2006 10:55 PM

You should be able to put it right underneath to have it on the same line but if it's too wide it will break to the next line. Also a <br /> would move it to the next line.

ericgtr 05-22-2006 10:55 PM

Jinx, you owe me a coke Rich ;)

pumarjr 05-22-2006 11:57 PM

so to have the ads one on the left, and one on the right, and on the same line without making the height any greater, just add <br/> at the end of the first ad?

ericgtr 05-23-2006 12:55 AM

No, only add the <br /> if you want to have it on two lines, otherwise just paste the second ad below it without that. Best thing to do is play with it a little and experiment, you will see what you need to do.


All times are GMT. The time now is 03:52 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.01054 seconds
  • Memory Usage 1,729KB
  • 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_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete