The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
general question about templates/custom pages and styling
So i have a custom page (template?) created and the tabs all link to it fine etc...
Now usually with a html/php page I could write the code and then link it to a css stylesheet. Now I obviously want my custom page to be the same theme as the rest of my forum and be able to change themes with the rest of the forum. To do this, should I write all the html code for the page by editing the template in the adminCP? If so, how would I go about adding CSS to the page while keeping my theme? The additional.css file is not inherited across all my themes, so if I added it in there I would have to go through each theme and add the css to that themes additional.css file. Is there another way to do this? |
#2
|
||||
|
||||
I think you need to read this https://vborg.vbsupport.ru/showthread.php?t=228112
|
Благодарность от: | ||
user25148 |
#3
|
|||
|
|||
Quote:
|
#4
|
||||
|
||||
additional.css. And if not all of your styles implement it, then make them. That's the way to do it through vB.
|
#5
|
||||
|
||||
If you'd followed the guide as laid out by lynne then it would automatically be styled according to the selected style of the user. Further additional.css style rules would be used on that page as the setup includes the code necessary to include that file.
|
#6
|
|||
|
|||
Quote:
|
#7
|
||||
|
||||
Yes create a template called mypage.css and link to it in the head section of your custom page. Naming the template with .css at the end will group it in with the other css templates in vbulletin.
|
Благодарность от: | ||
user25148 |
#8
|
||||
|
||||
You should have a parent style with your own styles as child style, so changes are inherited.
|
#9
|
|||
|
|||
Quote:
Code:
<link rel="stylesheet" type="text/css" href="name of css template here"> The styles do have a main parent style but alot of the code that creates the variations of the themes is probably in the additional.css file and therefore it isnt inherited. |
#10
|
||||
|
||||
Quote:
You need to create an actual, physical css file in your file system and link to that properly. |
Благодарность от: | ||
user25148 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|