The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Change location of CSS file
I wanted to change the location of the CSS vBulletin generates to an absolute URL. I know it's being dumped to a variable called $style[css] -- where do I go to add a prefix like http://static.domain.com/?
|
#2
|
|||
|
|||
I wanted to do the same thing, but wasn't sure where/how to make that change in vBulletin. So I just added a plugin with priority 65000 on global_complete to make those sort of content distribution network changes. It works fine for vBulletin, but the issue I have is with photopost it does not make these changes (because it doesn't process these hooks).
Code:
$oz_process = str_replace('"http://ozscience.com/forums/clientscript/', '"http://cdn8.ozscience.net/clientscript/', $output); $oz_process = str_replace('"clientscript/', '"http://cdn8.ozscience.net/clientscript/', $oz_process); $oz_process = str_replace('"http://ozscience.com/forums/images/', '"http://cdn9.ozscience.net/images/', $oz_process); $oz_process = str_replace('"images/', '"http://cdn9.ozscience.net/images/', $oz_process); $output = str_replace('"/forums/images/', '"http://cdn9.ozscience.net/images/', $oz_process); |
#3
|
||||
|
||||
This may help - Prefix url if storing CSS as a files
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|