Back to vBulletin 3.7 Template Modifications

Custom Ad Box
Mod Version: 1.10, by mac-warez

This modification is in the archives.
vB Version: 3.7.3 Rating: (1 vote - 4.00 average) Installs: 9
Released: 07 Oct 2008 Last Update: Never Downloads: 41
Not Supported Template Edits Re-usable Code Translations  

This mod was custom made by our other admin.


It is a custom advertisement placement ad. Use with any other ad management software for vbulletin. We made this code by displacing some of the built in AD hooks in the teplates.

Place this code anywhere in any of your templates you would like to display it in. In this code we use the ad hook for the header.
Code:
<!-- ADVERTISEMENT TABLE -->
<br>
<table width="100%" style="background-image:url($stylevar[imgdir_misc]/cat_back.gif)" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="33" height="27" align="left" valign="top"><img src="$stylevar[imgdir_misc]/cat_top_ls.gif" width="33" height="27" alt=" " border="0" /></td>
     <td width="22" height="27" align="left" valign="top"><img src="$stylevar[imgdir_misc]/text_ls.gif" width="22" height="27" alt=" " border="0" /></td>
    <td width="50%" class="tcat" style="background-image:url($stylevar[imgdir_misc]/cat_top_text_bk.gif)" align="left">
			<div align="left" class="smallfont">
			<b>Advertisement</b></div>
	</td>
    <td width="30" height="27" align="left" valign="top"><img src="$stylevar[imgdir_misc]/cat_top_text_end.gif" width="30" height="27" alt=" " border="0" /></td>
    <td width="50%" height="27" align="left" valign="top"><img src="$stylevar[imgdir_misc]/cat_back.gif" width="50%" height="27" alt=" " border="0" /></td>
       <td width="10" height="27" align="left" valign="middle"><a style="float:$stylevar[right]" href="#top" onClick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a></td>
     <td width="20" height="27" align="right" valign="top"><img src="$stylevar[imgdir_misc]/cat_top_rs.gif" width="20" height="27" alt=" " border="0" /></td>
  </tr>
</table>
        <!-- End top category table setup -->
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<tr align="center">
	  <td class="thead" width="100%" align="$stylevar[left]">
<!-- content table -->
<center><!--AD Code Here--!>
<!--End Ad Code--!>
</center>
<!-- / content table --></td>
	</tr>
</tbody>
</table>
      <!-- bottom table setup -->
  <div class="ftr_bdr">
    <table width="100%" class="thead" cellpadding="0" cellspacing="0">
      <tr>
        <td width="100%" height="9"><img src="$stylevar[imgdir_misc]/btm_base.gif"  width="100%" height="9" alt=" " border="0" /></td>
      </tr>
    </table>
</div>
   <!-- End bottom table setup -->  
<br> 
<!-- / ADVERTISEMENT TABLE -->
When you install place this code anywhere. Then replace the
Code:
<!--AD Code Here--!>
<!--End Ad Code--!>
With your raw ad code. The reason for this is that when you update vbulletin it erases the moved ad hooks. This way you don't have to add the ad hook again.

This is compatible with vbulletin 3.6x also

Screenshots Added

Download

This modification is archived, downloads are still allowed.

File Type: %1$s customadplacement.zip (883 Bytes, 42 downloads)

Screenshots

Click image for larger version
Name:	adscreen.JPG
Views:	933
Size:	15.1 KB
ID:	87846  


vblts.ru supports vBulletin®, 2022-2024