Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-05-2010, 09:59 PM
Mutt's Avatar
Mutt Mutt is offline
 
Join Date: Nov 2001
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default lost in VB4 templates. is there any help out there?

I admit it. I have no clue what's going on in the VB4 templates. ever the simplest edits are driving me nuts. I handled the changes from vb2.3 to vb 3.5 w/ ease. within a weekend I was writing scripts & plugins. the new template vars & syntax were easy enough to follow. but the jump from 3.8 to 4.0, it's like I never looked at html before.

Please tell me there's an article or something which I just haven't found that explains how the hell these new templates work & where I should be going to make edits.

for example, there's no <td> tags. they are all div's or something else w/ a class tag which magically transforms everything. I'm trying to make what I expected to simple little changes to forumhome_forumbit_level2_post and it's like I've never edited a template before. I can see that
Code:
<div class="foruminfo td">
is what makes a table row w/ 3 or so columns for the status icon, the forum name & description, & the thread stats. i can see that each div inside it is another <td> of the row but deleting the td doesn't delete the column. it just leave an empty space there. adding a div doesn't make another column. I tried making a table go the full width of the row but it's like i'm trapped inside a table <td> i don't see.

i'm just so aggravated. I get this is all stylesheet stuff that I need to learn but could someone please point me in the right direction. over the years i've taught myself how to script thru looking at examples & trial & error but w/ this i don't even know where to look for the settings. i've dug all thru the style var editor & the template editor. I swear i'm not as dense as I'm coming off. I was doing really well w/ 3.8.

please, can someone tell me where to look for help or point me to an article. something. once i get thru a couple decent edits I know I'll be fine.

thanks in advance. I'm excited to start playing w/ 4 but if I can't make a template set that looks like my site, i'm stuck before I even get started.
Reply With Quote
  #2  
Old 04-06-2010, 02:06 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It sounds like what you need to do is read up on CSS. The vB4 templates are just using CSS to style the page, that's all. CSS has been around for quite a while now. There are some excellent sites out there to help you learn it. (I love w3schools.com)
Reply With Quote
  #3  
Old 04-06-2010, 07:12 AM
Attitude5ire's Avatar
Attitude5ire Attitude5ire is offline
 
Join Date: Feb 2006
Posts: 791
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Start with a Visual directory available at vbulletin.com
Visual Directory fo Stylevars
Reply With Quote
  #4  
Old 04-06-2010, 07:32 AM
vijayninel's Avatar
vijayninel vijayninel is offline
 
Join Date: Mar 2009
Posts: 537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vB4 is for CSS and XHTML purists. Using the barbaric HTML <td> tags is blasphemy.
Reply With Quote
  #5  
Old 04-06-2010, 08:18 AM
TigerC10's Avatar
TigerC10 TigerC10 is offline
 
Join Date: Apr 2006
Location: Austin, TX
Posts: 616
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Personally I don't like using CSS because of the various ways that different browsers render CSS (some do it right, some don't - both Firefox and Internet Explorer are guilty of extending the CSS standards for browser specific things). You know how many times I've seen the words "moz-" in the CSS somewhere? Too many. Why should the code go out of its way to render properly for a client when it's the client at fault? Furthermore CSS is constantly evolving... I was programming CSS2 for about a year when they said, "hey look! it's CSS3!!". It's not like javascript where everything renders the same way - always - and the coding standards haven't changed in 10+ years.

Besides that, there's something to be said about achieving an HTML 1.0 compliance. It's like a badge of honor since you know your website will render properly no matter what (despite how boring it may be).

Anyway... Yeah. CSS is what you need to learn about, Mutt. If you're not familiar with that, then you're not going to know what's going on with the styles. vBulletin 3.x had CSS support too - and if you ever downloaded styles then you should have been able to see it on some level. However the coding standards have changed... There's nothing wrong with using <table> tags or those tags associated with them - as long as they're used properly for showing data that belongs in a table (NOT for layout purposes). Otherwise <div> should be used.
Reply With Quote
  #6  
Old 04-06-2010, 04:32 PM
Mutt's Avatar
Mutt Mutt is offline
 
Join Date: Nov 2001
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks all

in vb3, the CSS was simple & I liked it. even if I didn't get it, I could always ignore it & hard core what I wanted. with vb4 it's at a whole other level. i'll check out the stylevar visual dictionary, actually start using topstyle, & checkout http://w3schools.com/

thanks again.

--------------- Added [DATE]1270655310[/DATE] at [TIME]1270655310[/TIME] ---------------

AHHAHAH!!!

I just saw the "CSS templates" in the template manager. now it's so much clearer. i spent a whole day trying to figure out where all these style sheet settings were. looking at "forumbits.css" I can see what's happening & what I need to do to make my edits. it's like someone turned on the lights.
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 04:45 PM.


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.07679 seconds
  • Memory Usage 2,211KB
  • Queries Executed 13 (?)
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
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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