PDA

View Full Version : Working on templates and styles


imported_traderx
06-02-2004, 09:03 PM
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:)

Ryan Ashbrook
06-02-2004, 11:41 PM
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. =/

imported_traderx
06-03-2004, 01:06 AM
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

Ryan Ashbrook
06-03-2004, 08:12 PM
1. If the need comes up, you may need to edit the child templates.

2. Not too sure on those...

Tony G
06-03-2004, 10:51 PM
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?

imported_traderx
06-07-2004, 03:36 PM
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

imported_traderx
06-09-2004, 02:18 AM
bump

Tony G
06-09-2004, 02:51 AM
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.

imported_traderx
06-09-2004, 09:40 PM
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:) )