Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-21-2006, 02:39 PM
pumarjr's Avatar
pumarjr pumarjr is offline
 
Join Date: May 2006
Location: Key West
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Box For Ads

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.
Attached Images
File Type: jpg adsbox.jpg (33.1 KB, 0 views)
Reply With Quote
  #2  
Old 05-21-2006, 03:44 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 -->
Reply With Quote
  #3  
Old 05-21-2006, 05:48 PM
pumarjr's Avatar
pumarjr pumarjr is offline
 
Join Date: May 2006
Location: Key West
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thankz, any way to remove the left colum, whick contains the stats.gif image? and so that the bg is all one color?
Reply With Quote
  #4  
Old 05-21-2006, 08:26 PM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 05-22-2006, 10:41 PM
pumarjr's Avatar
pumarjr pumarjr is offline
 
Join Date: May 2006
Location: Key West
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, ty, now if i wanted to insert another ad into that same block on the same line what code would i use then?
Reply With Quote
  #6  
Old 05-22-2006, 10:54 PM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 05-22-2006, 10:55 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 05-22-2006, 10:55 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Jinx, you owe me a coke Rich
Reply With Quote
  #9  
Old 05-22-2006, 11:57 PM
pumarjr's Avatar
pumarjr pumarjr is offline
 
Join Date: May 2006
Location: Key West
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #10  
Old 05-23-2006, 12:55 AM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


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 11:24 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.04124 seconds
  • Memory Usage 2,269KB
  • Queries Executed 14 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (2)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete