Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 09-07-2012, 06:09 PM
Forum Godly Forum Godly is offline
 
Join Date: Jul 2012
Location: Israel
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Table code.

Hello,
i create this page:

and i want to create a table.

how i create a table in vbulletin 4 code ?

I want it to look like here:

http://www.godly.co.il/table.png

in vbulletin 3.8 is the code is:
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="90%" height="250" align="center" dir="rtl">
<tr>

in vbulletin 4 the code is ?

good week
Reply With Quote
  #2  
Old 09-07-2012, 06:32 PM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have this in the additional.css template. It gives basic vB4 styling. For the table in the CONTENTS area you can use just plain table, tr and td tags.

See http://www.w3schools.com/html/ for using table tags etc.


Code:

 /|--------------------------------------------------------------------------------------------------|\
<||-------------------------------------- CSS FOR PROJECTS-----------------------------------------||>
 \|--------------------------------------------------------------------------------------------------|/


.boxcontainer {	
    	clear: both;
    	width:100%;
    	float:{vb:stylevar left};
    	position: relative;
    	top: -10px;
    	padding: 0;
    	margin: 0px;
}

.shaded{
	-moz-box-shadow: -2px 2px 2px {vb:stylevar forumbits_shadow_color};
	-webkit-box-shadow: -2px 2px 2px {vb:stylevar forumbits_shadow_color};
	box-shadow: -2px 2px 2px {vb:stylevar forumbits_shadow_color};
}

.round {
	-moz-border-radius-top{vb:stylevar right}: {vb:stylevar forumhead_top_corner_radius};
	-moz-border-radius-top{vb:stylevar left}: {vb:stylevar forumhead_top_corner_radius};
	-webkit-border-top-{vb:stylevar right}-radius: {vb:stylevar forumhead_top_corner_radius};
	-webkit-border-top-{vb:stylevar left}-radius: {vb:stylevar forumhead_top_corner_radius};
	border-top-{vb:stylevar right}-radius: {vb:stylevar forumhead_top_corner_radius};
	border-top-{vb:stylevar left}-radius: {vb:stylevar forumhead_top_corner_radius};
}

h3.boxhead1 {
	/* like Forumbits on Forum Home Page */
	background: {vb:stylevar forumhead_background};
	_background-image: none;
	border: {vb:stylevar forumhead_border};
	padding: {vb:math {vb:stylevar padding}/2 - 1} {vb:stylevar padding};
	font: {vb:stylevar forumhead_font}; 
	color:{vb:stylevar forumhead_color};
	margin: 5px 0px 0px 0px;
}

h3.boxhead2 {
	/* like Whats Going On? on Forum Home Page */
	background:{vb:stylevar blockhead_background};
	_background-image: none;
	border: {vb:stylevar forumhead_border};
	padding: {vb:math {vb:stylevar padding}/2 - 1} {vb:stylevar padding};
	font:{vb:stylevar blockhead_font};
	font-weight: bold;
	color:{vb:stylevar blockhead_color};
	margin: 5px 0px 0px 0px;
}

h3.boxhead3 {
	/* like Thread Info or Tags on Showthread Page */
	background: {vb:stylevar secondarycontent_header_background};
	_background-image: none;
	border: {vb:stylevar forumhead_border};
	padding: {vb:math {vb:stylevar padding}/2 - 1} {vb:stylevar padding};
	font-size:{vb:stylevar secondarycontent_header_font.fontSize}{vb:stylevar secondarycontent_header_font.units};
	font-weight:{vb:stylevar secondarycontent_header_font.fontWeight};
	color: {vb:stylevar secondarycontent_header_color};
	margin: 5px 0px 0px 0px;
}

h3 a:link{
	font:inherit;
	color:inherit;
}

h3 a.collapse img {
	/* values are based on the image */
	position:absolute;
	top: -{vb:math {vb:stylevar padding} * 1.5 - 5};
	{vb:stylevar right}: -{vb:math {vb:stylevar padding} * 0.6};
	display:block;
	width:13px;
	height:13px;
	overflow:hidden;
	float: {vb:stylevar right};
	clear: {vb:stylevar left};
	color: {vb:stylevar forumhead_color};
}

.boxbody {
	border: {vb:stylevar forumbits_border};
	display: block;
	background: none no-repeat scroll 0 0 transparent;
	margin: 0; 
	padding: 0;
}

.boxsubhead {
	font:{vb:stylevar blocksubhead_font};
	color:{vb:stylevar blocksubhead_color};
	background:{vb:stylevar blocksubhead_background};
	padding:{vb:stylevar blocksubhead_padding};
}

.boxcontents {
	background: {vb:stylevar postbit_userinfo_background};
	_background-image: none;
	padding: {vb:math {vb:stylevar padding}/2 - 1} {vb:stylevar padding};
	border-top: medium none;
	margin: 0;
	font-family: {vb:stylevar forum_msg_font.fontFamily};
	font: 13px/1.23 arial,helvetica,clean,sans-serif;
	color: {vb:stylevar postbit_color};
}

 /*--------------------------------------------------------------------------------------------------*\
<||----------------------------------------- EXAMPLE HTML--------------------------------------------||>
 \*--------------------------------------------------------------------------------------------------*/
  
/*
	                                  Round-top Shaded Collapsible Box
	
	<!--
	
		<div class="boxcontainer">
		
			<h3 class="boxhead1 round shaded">
				TITLE
				<a class="collapse" id="collapse_PROJECT"  
					href="{vb:raw relpath}#top">
					<img src="{vb:stylevar imgdir_button}/collapse
					{vb:raw vbcollapse.collapseimg_info_options}_40b.png" alt="" />
				</a> 
				</a>
			</h3>
			
			<div id="PROJECT" class="boxbody shaded">
				<div class="boxsubhead">
					DESCRIPTION
				</div>
				<div class="boxcontents">
					CONTENTS
				</div>
			</div>
		</div>
		
	-->
		
Fill in your values for TITLE, PROJECT (two places), DESCRIPTION and CONTENTS. For a simpler box omit "round" 
and "shaded" in the class specifications. Remove the <a ... > ... </a> under TITLE to make it non_collapsible. 
You can change colors and other properties with inline CSS.
	
*/
Reply With Quote
  #3  
Old 09-08-2012, 04:26 AM
Forum Godly Forum Godly is offline
 
Join Date: Jul 2012
Location: Israel
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tnx but i want a table like here : http://www.godly.co.il/table.png
dont like w3schoole
Reply With Quote
Reply

Thread Tools
Display Modes

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:31 PM.


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.09958 seconds
  • Memory Usage 2,175KB
  • Queries Executed 11 (?)
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
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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_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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete