Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 06-02-2004, 09:03 PM
imported_traderx imported_traderx is offline
 
Join Date: Jul 2003
Location: Washington
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Working on templates and styles

Hello, I am new to working with VB and would like to learn what is needed on creating my own templates and styles.

I have a pretty good grasp on (x)html and css, but I am not understanding how vb has it lay out. I have been learning php, and have been playing around with codes that I have writen on my local server.

The problem that I am having is figure out what goes with what, and all of the templates that need to be changed so I have a 'site' wide layout. I would like to know what are all of the templates that need to be changed so I can do it (I am also doing 404 pages this way), so I a web site that 'looks' the same through out.

Thanks in advance.

Sorry for the noob Q's but have to start some where
Reply With Quote
  #2  
Old 06-02-2004, 11:41 PM
Ryan Ashbrook's Avatar
Ryan Ashbrook Ryan Ashbrook is offline
 
Join Date: Dec 2002
Location: Cincinnati, Ohio
Posts: 422
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vBulletin 3's layout is built using tables that are controlled via CSS.

Whenever I want to edit my forums to look exactly like my site I edit the header and footer templates, since they are globally generated in every page of vBulletin.

Hope it helps.

And if that doesn't help you can try editing every template that is in all caps (eg. FORUMHOME, SHOWTHREAD, etc...) and putting your sites code in those, since those are the main bodies of the different pages.

I tried my best to explain but I'm sure I didn't do very good. =/
Reply With Quote
  #3  
Old 06-03-2004, 01:06 AM
imported_traderx imported_traderx is offline
 
Join Date: Jul 2003
Location: Washington
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ryan Ashbrook
vBulletin 3's layout is built using tables that are controlled via CSS.

Whenever I want to edit my forums to look exactly like my site I edit the header and footer templates, since they are globally generated in every page of vBulletin.

Hope it helps.

And if that doesn't help you can try editing every template that is in all caps (eg. FORUMHOME, SHOWTHREAD, etc...) and putting your sites code in those, since those are the main bodies of the different pages.

I tried my best to explain but I'm sure I didn't do very good. =/
Yes that will help out alot... Thanks Ryan. Though I haven't gone back there yet, there is no need to edit the 'child' templates? (ie FORUMHOME).

I also want to edit pages like Activate Your Account, Email Activation Codes... all that are NOT general pages.

Thanks in advanace
Reply With Quote
  #4  
Old 06-03-2004, 08:12 PM
Ryan Ashbrook's Avatar
Ryan Ashbrook Ryan Ashbrook is offline
 
Join Date: Dec 2002
Location: Cincinnati, Ohio
Posts: 422
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. If the need comes up, you may need to edit the child templates.

2. Not too sure on those...
Reply With Quote
  #5  
Old 06-03-2004, 10:51 PM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not all of the templates need to be changed. They obviously all have different functions throughout the board. The main bodies, as Ryan said, are the main templates. (Forumhome, showthread and would modify the look of your forumhome and thread display respectively)

I really only think that the thing you will see on every single page is the header and footer. What else do you want to add to display on every page?
Reply With Quote
  #6  
Old 06-07-2004, 03:36 PM
imported_traderx imported_traderx is offline
 
Join Date: Jul 2003
Location: Washington
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tony
Not all of the templates need to be changed. They obviously all have different functions throughout the board. The main bodies, as Ryan said, are the main templates. (Forumhome, showthread and would modify the look of your forumhome and thread display respectively)

I really only think that the thing you will see on every single page is the header and footer. What else do you want to add to display on every page?
Sorry for the late reply, was out of town for a while.

basically I want my site to show my own personal 'header', along with a left side menu, and possible a colum on the right. With my forum in the middle (if I was to have a right colum)

Though I haven't changed any thing yet, I have been going thru the 'Styles and Templates' and looking thru all of them to find the $navbar and $footer, if they are there, those are the ones that I will change. (hoping that is all that is needed for that 'grouping')

But I have a question about some of the catagories like...
Poll Templates
Help Templates

I didn't see any $navbar and $footer, in any of the templates there, would I have to change the poll.php file for this to happen or is it inherited from another template, and if so... which one.

Any help would be great
Reply With Quote
  #7  
Old 06-09-2004, 02:18 AM
imported_traderx imported_traderx is offline
 
Join Date: Jul 2003
Location: Washington
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump
Reply With Quote
  #8  
Old 06-09-2004, 02:51 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The poll templates don't have $header or $footer because they are part of a page, and do not generate whole pages for themselves. A poll is just shown in a part of showthread, and showthread includes the $header and $footer variables while the poll would not.
Reply With Quote
  #9  
Old 06-09-2004, 09:40 PM
imported_traderx imported_traderx is offline
 
Join Date: Jul 2003
Location: Washington
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Tony, that help cut out alot of bs on editting, now I just got to figure out how to do borders similar (but different) like is what around each post, any tutorials around here on that. I learned that I am not as good as I thought I was with css (not that I was any good )
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:49 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.06921 seconds
  • Memory Usage 2,238KB
  • 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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete