The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Let's say I want to have the FAQ pages have a different style than the rest of my board. How would I go about doing that? I know how to make certain forums and categories have certain styles, but cannot figure out how to do the same for non-forum pages. I'm not wanting to do template edits, I am already accustomed to this and it wouldn't serve my needs. Thanks.
|
|
#2
|
||||
|
||||
|
If by style you mean a separate skin, then the following should work.
Create a new plugin using hook location 'style_fetch' with the following: Code:
if (THIS_SCRIPT == 'faq'){
$styleid = X;
}
|
|
#3
|
|||
|
|||
|
Thanks for that Kirk.
Wonder if it's possible to delineate it further. If FAQ ID = X, then Y. |
|
#4
|
||||
|
||||
|
Sure, just add a check using the $faqparent var.
Code:
if (THIS_SCRIPT == 'faq' AND $faqparent == X){
$styleid = Y;
}
Code:
if (THIS_SCRIPT == 'faq')
{
switch ($faqparent)
{
case X:
$styleid = A;
break;
case Y:
$styleid = B;
break;
case Z:
$styleid = C;
break;
}
}
|
|
#5
|
|||
|
|||
|
Quote:
Sweet! This works! Thank you! |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|