The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
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. |
|
#2
|
||||
|
||||
|
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 --> 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 -->
|
|
#3
|
||||
|
||||
|
thankz, any way to remove the left colum, whick contains the stats.gif image? and so that the bg is all one color?
|
|
#4
|
||||
|
||||
|
All you need to do is first remove:
HTML Code:
colspan="2" HTML Code:
<td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
|
|
#5
|
||||
|
||||
|
ok, ty, now if i wanted to insert another ad into that same block on the same line what code would i use then?
|
|
#6
|
||||
|
||||
|
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.
|
|
#7
|
||||
|
||||
|
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.
|
|
#8
|
||||
|
||||
|
Jinx, you owe me a coke Rich
|
|
#9
|
||||
|
||||
|
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?
|
|
#10
|
||||
|
||||
|
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.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|