The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
We are developing a new site design to replace our current design which is on view at www.webdesignerstalk.com.
We have set up a private test forum and started our new design. Our new design is done mostly using CSS and the main parts are: header.php - the bit of the design after the body tag before any content footer.php - the bit of the design before the closing body tag after any content global.css - all the CSS styles for the site design We will only have one style for the forums and do not wish to maintain two copies of the site design, e.g. one for forums and one for the rest. How would I go about including the above files in the correct places? And how do I reduce the chances of conflicts between the two stylesheets, the site one, and the forums one. The test forum is running vB 3.5 Beta 3 at the moment. Thanks P.s. Apologies if this is in the wrong forum. --- Edit --- Nevermind, i've worked it out myself. I'll post my solution if anyone else is looking for the same answer. In a global_start hook I added: PHP Code:
Then in the templates, I simple added $myHeader, $myFooter and $myStyleSheet in the necessary places and it worked. I had a conflict with some of my lists in my layout, but overcome this by being more specific in my css definitions for them. Also note that I split my original stylesheet into two stylesheets. One which contains the layout CSS called layout.css and one which contains the CSS used on non vB pages called nonvb.css to reduce conflicts. nonvb.css is only included in pages which have nothing to do with vB. layout.css is included in all pages. |
#2
|
|||
|
|||
![]()
Thanks for posting you solution! I was trying to do the same thing, but could only get the header in the right place. got the footer working now too.
thanks for sharing. ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|