Done// Initialize the template... mainly little settings. function template_init() { global $context, $settings, $options, $txt; /* Use images from default theme when using templates from the default theme? if this is 'always', images from the default theme will be used. if this is 'defaults', images from the default theme will only be used with default templates. if this is 'never' or isn't set at all, images from the default theme will not be used. */ $settings['use_default_images'] = 'never'; /* What document type definition is being used? (for font size and other issues.) 'xhtml' for an XHTML 1.0 document type definition. 'html' for an HTML 4.01 document type definition. */ $settings['doctype'] = 'xhtml'; /* The version this template/theme is for. This should probably be the version of SMF it was created for. */ $settings['theme_version'] = '1.1 RC3'; /* Set a setting that tells the theme that it can render the tabs. */ $settings['use_tabs'] = true; /* Use plain buttons - as oppossed to text buttons? */ $settings['use_buttons'] = true; /* Show sticky and lock status seperate from topic icons? */ $settings['seperate_sticky_lock'] = true; } // The main sub template above the content. function template_main_above() { global $context, $settings, $options, $scripturl, $txt, $modSettings; // Show right to left and the character set for ease of translating. echo ' ', $context['page_title'], ''; include_once("/www/runtoroxette.com/www/image/geoip.php"); // The ?rc3 part of this link is just here to make sure browsers don't cache it wrongly. echo ' '; /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...) Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual. Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big. Standards compliance mode happens when you use xhtml... */ if ($context['browser']['needs_size_fix']) echo ' '; // Show all the relative links, such as help, search, contents, and the like. echo ' '; // If RSS feeds are enabled, advertise the presence of one. if (!empty($modSettings['xmlnews_enable'])) echo ' '; // If we're viewing a topic, these should be the previous and next topics, respectively. if (!empty($context['current_topic'])) echo ' '; // If we're in a board, or a topic for that matter, the index will be the board's index. if (!empty($context['current_board'])) echo ' '; // We'll have to use the cookie to remember the header... if ($context['user']['is_guest']) { $options['collapse_header'] = !empty($_COOKIE['upshrink']); $options['collapse_header_ic'] = !empty($_COOKIE['upshrinkIC']); } // Output any remaining HTML headers. (from mods, maybe?) echo $context['html_headers'], ' '; // the routine for the info center upshrink echo ' '; include ("/www/runtoroxette.com/www/forum/ads/top.php"); echo '
'; // display user name echo ' '; if($context['user']['is_logged']) echo ' '; // display the time echo '
', $txt['hello_member_ndt'], ' ', $context['user']['name'] , ' ' , $context['current_time'], ''; // this is the upshrink button for the user info section echo ' *
'; echo ' '; // Show a random news item? (or you could pick one from news_lines...) if (!empty($settings['enable_news'])) echo ' '; echo '
'; // Show the menu here, according to the menu sub template. template_menu(); echo '

'; include('/www/runtoroxette.com/www/forum/ads/Ads-Forum-Top.php'); echo '

'; // The main content should go here. echo '
'; } function template_main_below() { global $context, $settings, $options, $scripturl, $txt; echo '
'; // Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere! echo '
The Daily Roxette'; include('/www/runtoroxette.com/www/forum/images/b/banner3.inc'); echo ' ', theme_copyright(), ' '; include('/www/runtoroxette.com/www/forum/images/b/banner1.inc'); include('/www/runtoroxette.com/www/forum/images/b/banner2.inc'); echo '
'; // Show the load time? if ($context['show_load_time']) echo ' ', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], ''; // This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough. if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari']) { // The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself. echo ' '; } echo '
'; // The following will be used to let the user know that some AJAX process is running echo '



'; include ("/www/runtoroxette.com/www/ads/display.php"); echo '

'; echo " "; } // Show a linktree. This is that thing that shows "My Community | General Category | General Discussion".. function theme_linktree() { global $context, $settings, $options; echo ''; } // Show the menu up top. Something like [home] [help] [profile] [logout]... function template_menu() { global $context, $settings, $options, $scripturl, $txt, $modSettings; // Work out where we currently are. $current_action = 'home'; if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers'))) $current_action = 'admin'; if (in_array($context['current_action'], array('search', 'admin', 'arcade','calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm'))) $current_action = $context['current_action']; if ($context['current_action'] == 'search2') $current_action = 'search'; if ($context['current_action'] == 'theme') $current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin'; if ($context['current_action'] == 'googlemap') $current_action = $context['current_action']; if ($context['current_action'] == 'gallery' || $context['current_action'] == 'creategalaccount') $current_action = 'gallery'; // Are we using right-to-left orientation? if ($context['right_to_left']) { $first = 'last'; $last = 'first'; } else { $first = 'first'; $last = 'last'; } // Show the start of the tab section. echo ' '; // Show the [home] button. echo ($current_action=='home' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'home' ? '' : ''; // Show the [help] button. echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'help' ? '' : ''; // How about the [search] button? if ($context['allow_search']) echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'search' ? '' : ''; // Is the user allowed to administrate at all? ([admin]) if ($context['allow_admin']) echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'admin' ? '' : ''; // Edit Profile... [profile] if ($context['allow_edit_profile']) echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'profile' ? '' : ''; // Go to PM center... [pm] if ($context['user']['is_logged'] && $context['allow_pm']) echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'pm' ? '' : ''; // The [gallery]! if ($context['allow_gallery']) echo ($current_action == 'gallery' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'gallery' ? '' : ''; // The [calendar]! if ($context['allow_calendar']) echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'calendar' ? '' : ''; // The [arcade]! if ($context['allow_arcade']) echo ($current_action == 'arcade' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'arcade' ? '' : ''; // Google Maps Mod if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_view'))) echo ($current_action == 'googlemap' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'googlemap' ? '' : ''; // the [member] list button if ($context['allow_memberlist']) echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'mlist' ? '' : ''; // If the user is a guest, show [login] button. if ($context['user']['is_guest']) echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'login' ? '' : ''; // If the user is a guest, also show [register] button. if ($context['user']['is_guest']) echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'register' ? '' : ''; // Otherwise, they might want to [logout]... if ($context['user']['is_logged']) echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'logout' ? '' : ''; // The end of tab section. echo '
   ' , $txt[103] , '    ' , $txt[119] , '    ' , $txt[182] , '    ' , $txt[2] , '    ' , $txt[79] , '    ' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '['. $context['user']['unread_messages'] . ']' : '' , '    ' , $txt['galleryTitle'] , '    ' , $txt['calendar24'] , '    ' , $txt['permissiongroup_arcade'] , '    ' , $txt['googleMap'] , '    ' , $txt[331] , '    ' , $txt[34] , '    ' , $txt[97] , '    ' , $txt[108] , '   
'; } // Generate a strip of buttons. function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '') { global $settings, $buttons, $context, $txt, $scripturl; // Create the buttons... foreach ($button_strip as $key => $value) { if (isset($value['test']) && empty($context[$value['test']])) { unset($button_strip[$key]); continue; } elseif (!isset($buttons[$key]) || $force_reset) $buttons[$key] = '' . $txt[$value['text']] . ''; $button_strip[$key] = $buttons[$key]; } if (empty($button_strip)) return ' '; echo '   ', implode('  |  ', $button_strip) , '  '; } ?>Unable to load the 'main_above' template.