Home arrow Downloads
 

AiM Custom SMF theme for SMF 1.1 RC2 download_trans.gif Download

Thumbnails:

Description:
Theme for SMF 1.1 RC2 that is designed to work with a Joomla/Mambo installation. Based on the Midland theme. If the SMF installation is wrapped by Mambo, the login sidebar and logo will not show up. When unwrapped, they will (though the sidebar is collapsible). When wrapped, this theme should remain valid to W3C standards by removing excess head, body, and html tags. When installing, the following code MUST be added to the Joomla or Mambo head section, in place of the normal code that is put there:
Code:
    <?php
    
global $sc, $context, $settings;
    
    if (!
defined('SMF')){
      require (
"administrator/components/com_smf/config.smf.php");
      require (
$smf_path."/SSI.php");
    }
    
    
$sc = &$context['session_id'];
    
$_SESSION['USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];
    
    
mysql_select_db($mosConfig_db);
    
    echo
'
<script language="JavaScript" type="text/javascript" src="'
, $settings['default_theme_url'], '/script.js?rc2p"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
, $settings['theme_url'], '";
var smf_images_url = "'
, $settings['images_url'], '";
var smf_scripturl = "'
, $scripturl, '";
// ]]></script>
<title>'
, $context['page_title'], '</title>';

// The ?rc2 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
, $settings['theme_url'], '/style.css?rc2" />
<link rel="stylesheet" type="text/css" href="'
, $settings['default_theme_url'], '/print.css?rc2" media="print" />';

/* 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 '
<link rel="stylesheet" type="text/css" href="'
, $settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
, $scripturl, '?action=help" target="_blank" />
<link rel="search" href="'
. $scripturl . '?action=search" />
<link rel="contents" href="'
, $scripturl, '" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
, $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
, $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
, $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';

// 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 '
<link rel="index" href="'
. $scripturl . '?board=' . $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'];

    
?>

Submitted On:
13 Jan 2006
Submitted By:
Chad Ness (chadness)
File Date:
13 Jan 2006
File Author:
Chad Ness
File Version:
1.1RC2
File Size:
363.67Kb
File Type:
zip
File HomePage:
Click to visit site
Downloads:
509
Rating:
stars/0.gifTotal Votes:0
Be the first to comment! Please sign in or register.
 
© 2010 technoadvice.com
Joomla! is Free Software released under the GNU/GPL License.