vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Home Enhancements - Custom Ad Box (https://vborg.vbsupport.ru/showthread.php?t=192952)

mac-warez 10-06-2008 10:00 PM

Custom Ad Box
 
This mod was custom made by our other admin.
https://vborg.vbsupport.ru/attachmen...6&d=1223410203

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.
Please Mark as INSTALLED

This is compatible with vbulletin 3.6x also

Screenshots Added

xxalexkimxx 10-07-2008 12:30 PM

NO Demo at all?

mac-warez 10-07-2008 02:08 PM

hold on i'll set up my test board

azyya 10-07-2008 02:17 PM

demo plz

mac-warez 10-07-2008 02:22 PM

Hold on i am setting up my test board

mac-warez 10-07-2008 02:43 PM

OK demo board added

Nikke 10-07-2008 02:49 PM

No offence but that doesn't look good.

mac-warez 10-07-2008 02:50 PM

OK look now. It doesn't look good on the default style

Forum Lover 10-07-2008 05:30 PM

Nice try.. :)

mac-warez 10-07-2008 05:31 PM

Thanks. Any more people want to install?

Brandon Sheley 10-07-2008 06:17 PM

no ads on the demo of the warez site either...

worthless

mac-warez 10-07-2008 06:20 PM

I don't get what your saying

I will put an ad in the box for display purposes only.

Brandon Sheley 10-07-2008 07:02 PM

I said there was no ads on your demo.
this is an ad placement hack right?

no ads, therefor it's a worthless hack

show some ads or your saying there is no point is adding it..

mac-warez 10-07-2008 07:08 PM

I just placed a screenshot of it in use with the ads. I had to remove content from them but that is what the box looks like when there would be an ad in it

Adam21 10-08-2008 01:55 AM

u did not include the cat_top_text_bk.gif and a few others in your attached,u just copy and paste your style codes over only

SEOvB 10-08-2008 03:39 AM

thats not even the correct code to get vBulletin tables to show correctly, less time pirating and more time reading about vbulletin will help you i beleive.

mac-warez 10-19-2008 07:55 PM

Code Updated

mac-warez 11-30-2008 11:50 PM

I recommend using the raw ad code for this. Because when you update vbulletin it erases the hook.

macbooking 07-07-2009 06:17 PM

lol it's useless


All times are GMT. The time now is 04:42 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.01190 seconds
  • Memory Usage 1,753KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)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