The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hi,
is it possible to set/change a stylevar, for example doc_maxWidth, in a plugin? I tried $stylevar['doc_maxWidth'] but this doesn't work or i choose the wrong hook... |
|
#2
|
||||
|
||||
|
No, you cannot do that. You may write a plugin that adds more CSS to the page and that CSS can override whatever the old CSS is that you are trying to change.
|
|
#3
|
|||
|
|||
|
This is an old thread), but maybe someone will search the answer and not find, like me.
Now you can change a stylevar in a plugin with the 'fetch_template_complete' hook. For example: Code:
if (THIS_SCRIPT == 'css') {
$vbulletin->stylevars['forum_sidebar_width']['size'] = 236;
}
|
| 2 благодарности(ей) от: | ||
| BirdOPrey5, Diggo11 | ||
|
#4
|
||||
|
||||
|
I know this is old. I'm adding Style Variable to the page so that Google will index the page with the word Style Variable as well. I knew this page existed, and I was pulling my hair out trying to find it. When I finally changed Style Variable to stylevar it came right up. Now hopefully it will get properly indexed for bother Style Variable and stylevar.
|
| Благодарность от: | ||
| Scanu | ||
|
#5
|
|||
|
|||
|
I remember doing this along time ago, so I checked my library and found that I did it the same way. So I must have come across the thread myself once in a blue-moon ago.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|