View Full Version : Change location of CSS file
pransis
11-06-2009, 10:54 AM
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/?
porcupine73
11-09-2009, 11:11 PM
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).
$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);
Lynne
11-09-2009, 11:14 PM
This may help - Prefix url if storing CSS as a files (https://vborg.vbsupport.ru/showthread.php?t=97298)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.