2011-01-08, 11:39 PM
Hey.
I've found out how to link JavaScript to the CDN, but how do you link stylesheets? I've removed {$stylesheets} in the header and added global.css - but in places like usercp and showthread i have to manually do it, right? How do I manually add the CSS to the header - i added it in showthread below {header} and even next to it but it just doesn't seem to go in the header.
EDIT: don't worry, I got it. For the record - you edit global.php
Change {mybb->settings['bburl]} to your cdn's url.
I've found out how to link JavaScript to the CDN, but how do you link stylesheets? I've removed {$stylesheets} in the header and added global.css - but in places like usercp and showthread i have to manually do it, right? How do I manually add the CSS to the header - i added it in showthread below {header} and even next to it but it just doesn't seem to go in the header.
EDIT: don't worry, I got it. For the record - you edit global.php
$stylesheets .= "<link type=\"text/css\" rel=\"stylesheet\" href=\"{$mybb->settings['bburl']}/{$page_stylesheet}\" />\n";
Change {mybb->settings['bburl]} to your cdn's url.