Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications

Reply
 
Thread Tools
Custom Ad Box Details »»
Custom Ad Box
Version: 1.10, by mac-warez mac-warez is offline
Developer Last Online: Oct 2009 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.7.3 Rating:
Released: 10-06-2008 Last Update: Never Installs: 9
Template Edits
Re-useable Code Translations  
No support by the author.

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

This is compatible with vbulletin 3.6x also

Screenshots Added

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 10-07-2008, 06:17 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

worthless
Reply With Quote
  #13  
Old 10-07-2008, 06:20 PM
mac-warez mac-warez is offline
 
Join Date: Oct 2008
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't get what your saying

I will put an ad in the box for display purposes only.
Reply With Quote
  #14  
Old 10-07-2008, 07:02 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #15  
Old 10-07-2008, 07:08 PM
mac-warez mac-warez is offline
 
Join Date: Oct 2008
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #16  
Old 10-08-2008, 01:55 AM
Adam21 Adam21 is offline
 
Join Date: Apr 2005
Location: In The Network!
Posts: 299
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #17  
Old 10-08-2008, 03:39 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #18  
Old 10-19-2008, 07:55 PM
mac-warez mac-warez is offline
 
Join Date: Oct 2008
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code Updated
Reply With Quote
  #19  
Old 11-30-2008, 11:50 PM
mac-warez mac-warez is offline
 
Join Date: Oct 2008
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I recommend using the raw ad code for this. Because when you update vbulletin it erases the hook.
Reply With Quote
  #20  
Old 07-07-2009, 06:17 PM
macbooking's Avatar
macbooking macbooking is offline
 
Join Date: Jan 2009
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol it's useless
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:18 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04598 seconds
  • Memory Usage 2,291KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete