Add forum's CSS to a custom PHP file
#7
Try with following edit(s):

In your server.php file at the top, before <?php that contains code that is pulling your server status
add
<?php

define("NO_ONLINE", 1);
define("IN_MYBB", 1);
define('THIS_SCRIPT', 'server.php');

require_once "./global.php";

$tid = $theme['tid'];

?>

<style type="text/css">
@import url(cache/themes/theme<?php echo $tid ?>/global.css);
</style>

<?php the rest of your php code ?>
Reply


Messages In This Thread
RE: Add forum's CSS to a custom PHP file - by .m. - 2015-05-01, 10:18 AM
RE: Add forum's CSS to a custom PHP file - by .m. - 2015-05-01, 11:08 AM
RE: Add forum's CSS to a custom PHP file - by .m. - 2015-05-01, 05:38 PM
RE: Add forum's CSS to a custom PHP file - by Johnny S - 2015-05-01, 06:03 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)