Your profile currently uses the <?php print get_themename(user_getthemeid(user_getid())); ?> theme. <?php $HTML->box1_bottom(); ?> <TABLE width=100% cellpadding=0 cellspacing=0 border=0><TR valign=top> <TD width=100%> <?php $HTML->box1_top("New User Theme"); echo "<div align='center'>\n"; // User Theme select form theme_usermodform(user_getthemeid(user_getid()), 'https://' . $HTTP_HOST . '/themes/index.php', 'theme_modform', 0); ?> </div> <?php /* Put this in in V2 when we reenable color changing <FONT FACE="Helvetica, Times" SIZE="2" COLOR="#FF0000"> *NOTE*: Previewing or applying a theme will discard the colors selected in the color preferences form. Applying a theme will also discard any user selected color preferences. </FONT> */ $HTML->box1_bottom(); /* Font prefs will be added later... $HTML->box1_top("User Fonts"); // User Font select form theme_modfontform('https://'.$HTTP_HOST.'/themes/index.php','theme_modfontform',0); ? >
function theme_sysinit($theme_id = 0) { global $HTML; if (user_isloggedin() && !$theme_id) { $GLOBALS['sys_themeid'] = user_getthemeid(user_getid()); $GLOBALS['sys_theme'] = get_themedir($GLOBALS['sys_themeid']); } else { $GLOBALS['sys_theme'] = get_themedir($theme_id); } //Make sure the theme directory and class file exists. //print "<p>".$GLOBALS['sys_theme']."<br>".$GLOBALS['sys_themeroot'].$GLOBALS['sys_theme']."<br>".$GLOBALS['sys_themeroot'].$GLOBALS['sys_theme']."/Theme.class\n"; if (!isset($GLOBALS['sys_theme']) || !is_dir($GLOBALS['sys_themeroot'] . $GLOBALS['sys_theme']) || !is_file($GLOBALS['sys_themeroot'] . $GLOBALS['sys_theme'] . '/Theme.class')) { $GLOBALS['sys_themeid'] = 1; $GLOBALS['sys_theme'] = 'forged'; } else { //now include the actual chosen theme file include $GLOBALS['sys_themeroot'] . $GLOBALS['sys_theme'] . '/Theme.class'; $HTML = new Theme(); } //print "<p>sys_themeid: ".$GLOBALS['sys_themeid'].", sys_theme: ".$GLOBALS['sys_theme']."\n"; }