Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Thema gestartet von: Ivan Minic in August 01, 2005, 08:42:20 VORMITTAG

Titel: How to Change Title / Logo part in Default theme
Beitrag von: Ivan Minic in August 01, 2005, 08:42:20 VORMITTAG
I see some people need help with this, so, here is a little tutorial.

Open /Themes/default/index.template.php

Part 1: Kill logo

Find:
// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" />
<span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';

Replace
// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>'



Part 2: Change color of title:

Find:
// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" />
<span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';

Replace
// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<span style="font-family: Georgia, sans-serif; font-size: xx-large;"><font color="#FF0000">', $context['forum_name'], '</font></span>';

This example is with Red
My suggestion is to use colors from Few colors that look very nice with SMF default template (http://www.simplemachines.org/community/index.php?topic=44012.0)
Part 3: Center title:

Find:
// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" />
<span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';

Replace
// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<center><span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span></center>';

Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: tunedmagazine in September 12, 2005, 04:04:48 NACHMITTAGS
i must really be doing sumtin wrong because i keep getting this white screen that pops up saying server error..what did i do if that happends??
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: xenovanis in September 12, 2005, 04:05:42 NACHMITTAGS
Zitat von: tunedmagazine in September 12, 2005, 04:04:48 NACHMITTAGS
i must really be doing sumtin wrong because i keep getting this white screen that pops up saying server error..what did i do if that happends??

A wild guess, but try this:

Having problems with mod_security? (http://www.simplemachines.org/community/index.php?topic=34270.0)
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: dtm.exe in September 12, 2005, 04:06:06 NACHMITTAGS
Zitat von: tunedmagazine in September 12, 2005, 04:04:48 NACHMITTAGS
i must really be doing sumtin wrong because i keep getting this white screen that pops up saying server error..what did i do if that happends??

Server error or parse error?
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: JayBachatero in September 12, 2005, 04:06:08 NACHMITTAGS
What error do you get?
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: tunedmagazine in September 14, 2005, 12:53:00 NACHMITTAGS
i keep getting the server error....??
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: nokonium in September 14, 2005, 01:36:20 NACHMITTAGS
Zitat von: tunedmagazine in September 14, 2005, 12:53:00 NACHMITTAGS
i keep getting the server error....??

Try tipping the waitress  ;)
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: tunedmagazine in September 15, 2005, 11:11:37 VORMITTAG
haha for real though..whats that mean..servor error
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: xenovanis in September 15, 2005, 11:14:48 VORMITTAG
Zitat von: tunedmagazine in September 15, 2005, 11:11:37 VORMITTAG
haha for real though..whats that mean..servor error

2

Having problems with mod_security? (http://www.simplemachines.org/community/index.php?topic=34270.0)
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: abhikumar in September 24, 2005, 07:01:21 VORMITTAG
i am facing some diffrent i try to make some chaneges in \Themes\default\index.template.php
for modifying top part of forum but its not working at all
even i tried to put error but its not showing any (something likke deleting ; )
but i guess control is not going there or thre may be some caching problem can anyone help me to stop caching and customising top part of this wonderful form
thanks in advance
best regards
AbhiKumar
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Bern in Dezember 18, 2005, 04:40:33 VORMITTAG
Hello Ivan,
this didn't really help me. I changed the logo already, but would like to have it sanned over the entire page width and centered.
How do I do this?
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Confusimo in Dezember 25, 2005, 09:10:04 NACHMITTAGS
I already have no logo, just a title.  But I tried  the first part to kill the title anyway.

I got the parse error.  I found the problem.  You say look for    blahbla...   '</span>';

and replace with     '</span>'

so you left out the ; symbol at the end od '</span>'

After adding ; it worked.

Thanks,
Confusimo
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: clemenzo in Februar 18, 2006, 10:34:04 NACHMITTAGS
How can I add a banner into the blank space in the header of the 1.1RC2 default theme beside the 3 lines:

Show unread posts since last visit.
Show new replies to your posts.
Total time logged in: x hours and y minutes.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Vinspire in Mai 10, 2006, 04:55:35 VORMITTAG
Is this the same codes for SMF 1.1 RC 2 ?
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: higherauthority in Mai 30, 2006, 05:56:22 NACHMITTAGS
I did this   find the above code and delete everything before up to the </td> bla bla bla   so it looks like this


// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '

</td>
</tr>
<tr id="upshrinkHeader"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
<td valign="top">
<div class="headertitles" style="margin-right: 5px; position: relative;"><img src="', $settings['images_url'], '/blank.gif" height="12" alt="" /></div>
<div class="headerbodies" style="position: relative; margin-right: 5px; background-image: url(', $settings['images_url'], '/box_bg.gif);">


This will get rid of the logo and the Forum name then you can insert your logo

insert this for a logo with a hyperlink

echo '
<center><a href="http://www.your domain name.com/"><img border="0" src="', $settings['images_url'], '/yourlogo.gif" width="500" style="float: center;" alt="" /></center>';


upload your logo and thats it. 

so the code will look like this when its done


// This part is the logo and forum name.  You should be able to change this to whatever you want...

echo '
<center><a href="http://www.yourdomain.com/"><img border="0" src="', $settings['images_url'], '/yourlogo.gif" width="500" style="float: center;" alt="" /></center>';
echo '

</td>
</tr>
<tr id="upshrinkHeader"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
<td valign="top">
<div class="headertitles" style="margin-right: 5px; position: relative;"><img src="', $settings['images_url'], '/blank.gif" height="12" alt="" /></div>
<div class="headerbodies" style="position: relative; margin-right: 5px; background-image: url(', $settings['images_url'], '/box_bg.gif);">
<img src="', $settings['images_url'], '/', $context['user']['language'], '/userinfo.gif" style="position: absolute; left: ', $context['browser']['is_ie5'] || $context['browser']['is_ie4'] ? '0' : '-1px', '; top: -16px; clear: both;" alt="" />
<table width="99%" cellpadding="0" cellspacing="5" border="0"><tr>';

if (!empty($context['user']['avatar']))
echo '<td valign="middle">', $context['user']['avatar']['image'], '</td>';

echo '<td valign="top" class="smalltext" style="width: 100%; font-family: verdana, arial, sans-serif;">';

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
', $txt['hello_member'], ' <b>', $context['user']['name'], '</b>';

// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo ', ', $txt[152], ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] : $txt[471], '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'];
echo '.<br />';



I am not an expert but this seemed to work using 1.1RC2
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: BabylonianK in Juni 08, 2007, 04:13:21 VORMITTAG
^thanks
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: RiderRaghav in Juni 30, 2007, 04:48:30 NACHMITTAGS
Zitat von: higherauthority in Mai 30, 2006, 05:56:22 NACHMITTAGS
I did this   find the above code and delete everything before up to the </td> bla bla bla   so it looks like this


// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '

</td>
</tr>
<tr id="upshrinkHeader"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
<td valign="top">
<div class="headertitles" style="margin-right: 5px; position: relative;"><img src="', $settings['images_url'], '/blank.gif" height="12" alt="" /></div>
<div class="headerbodies" style="position: relative; margin-right: 5px; background-image: url(', $settings['images_url'], '/box_bg.gif);">


This will get rid of the logo and the Forum name then you can insert your logo

insert this for a logo with a hyperlink

echo '
<center><a href="http://www.your domain name.com/"><img border="0" src="', $settings['images_url'], '/yourlogo.gif" width="500" style="float: center;" alt="" /></center>';


upload your logo and thats it. 

so the code will look like this when its done


// This part is the logo and forum name.  You should be able to change this to whatever you want...

echo '
<center><a href="http://www.yourdomain.com/"><img border="0" src="', $settings['images_url'], '/yourlogo.gif" width="500" style="float: center;" alt="" /></center>';
echo '

</td>
</tr>
<tr id="upshrinkHeader"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
<td valign="top">
<div class="headertitles" style="margin-right: 5px; position: relative;"><img src="', $settings['images_url'], '/blank.gif" height="12" alt="" /></div>
<div class="headerbodies" style="position: relative; margin-right: 5px; background-image: url(', $settings['images_url'], '/box_bg.gif);">
<img src="', $settings['images_url'], '/', $context['user']['language'], '/userinfo.gif" style="position: absolute; left: ', $context['browser']['is_ie5'] || $context['browser']['is_ie4'] ? '0' : '-1px', '; top: -16px; clear: both;" alt="" />
<table width="99%" cellpadding="0" cellspacing="5" border="0"><tr>';

if (!empty($context['user']['avatar']))
echo '<td valign="middle">', $context['user']['avatar']['image'], '</td>';

echo '<td valign="top" class="smalltext" style="width: 100%; font-family: verdana, arial, sans-serif;">';

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
', $txt['hello_member'], ' <b>', $context['user']['name'], '</b>';

// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo ', ', $txt[152], ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] : $txt[471], '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'];
echo '.<br />';



I am not an expert but this seemed to work using 1.1RC2

thanks man......
i was not able to make the right script to keep my banner in the center...
i tried ur way and it worked on SMF 1.1.3 :)
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: olufemo in Oktober 26, 2007, 10:46:18 VORMITTAG
How do I alter the background color the default theme , SMF 1.14
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: higherauthority in Oktober 27, 2007, 02:56:36 VORMITTAG
find the style.css file located in themes\default\

look for

/* The main body of the entire forum. */
body
{
background-color: #ffffff;
margin: 0px;
padding: 12px 30px 4px 30px;


Alter FFFFFF to whatever color you want

Color lists can be found here  http://www.w3schools.com/html/html_colors.asp
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: harmoni in November 11, 2007, 10:33:01 NACHMITTAGS
logo in table...edit index.template.php

</head>
<body>';
//----------my addition
    echo '
   <div align="center">
   <table id="widthConrol" cellpadding="0" cellspacing="0" border="0">
   <tr> <td>
   <img src=/mylogo.gif></td></tr>
   </table> </div>';
//----------end my edition

// change width to 100% if you it fluid

Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Deaks in Dezember 09, 2007, 07:25:54 NACHMITTAGS
is help still required?
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Jumpmasterrt in April 29, 2008, 08:31:24 VORMITTAG
Is there a place with different SMF authorized logos? I'd like to keep it there as an advertisement but a little less intrusive.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: perplexed in April 29, 2008, 08:34:35 VORMITTAG
there is this http://www.simplemachines.org/promo/ but they are actually bigger.  I suppose you could just reduce them though :)
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Jumpmasterrt in April 30, 2008, 03:29:13 VORMITTAG
cool, that works great!
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: perplexed in April 30, 2008, 04:55:22 VORMITTAG
actually yesterday I was told that this page needs to be updated and changed to the new logo
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Jumpmasterrt in Mai 01, 2008, 11:46:03 VORMITTAG
It has the current logo on it.... the same one that's at the top of this page. It also has a link to a thread with a BUNCH of other logos, banners and SM/SMF graphics.

It worked fine.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Fiery in Juni 17, 2008, 01:55:26 VORMITTAG
Is anyone still having an issue?
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: caniol52 in Juli 15, 2008, 08:47:49 VORMITTAG
I want to put the logo on the LEFT side and the text on the RIGHT.  I can get rid of one or the other, but haven't figured out how to swap them.  Any help?
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: pinoypetfinder in Juli 21, 2008, 03:17:04 VORMITTAG
sorry for being so blind, but i cant seem to find this on my default/index.template.php file

  // This part is the logo and forum name.  You should be able to change this to whatever you want...
   echo '
               <img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" />
               <span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';



here's my index.template.php file....
<?php
// Version: 1.1.5; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// 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';

/* 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 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></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'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 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?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" 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']);
$options['collapse_header_ic'] = !empty($_COOKIE['upshrinkIC']);
}

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

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
</head>
<body>'
;
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}



echo '
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' '''>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">'
;

if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">'
$context['forum_name'], '</span>';
else
echo '
<img src="'
$settings['header_logo_url'], '" style="margin: 4px;" alt="'$context['forum_name'], '" />';

echo '
</td>
<td align="right" class="catbg">
<img src="'
$settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
</td>
</tr>
</table>'
;


// display user name
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>'
;

if($context['user']['is_logged'])
echo '
<td class="titlebg2" height="32">
<span style="font-size: 130%;"> '
$txt['hello_member_ndt'], ' <b>'$context['user']['name'] , '</b></span>
</td>'
;

// display the time
echo '
<td class="titlebg2" height="32" align="right">
<span class="smalltext">' 
$context['current_time'], '</span>';

// this is the upshrink button for the user info section
echo '
<a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="'
$settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a>
</td>
</tr>
<tr id="upshrinkHeader"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''>
<td valign="top" colspan="2">
<table width="100%" class="bordercolor" cellpadding="8" cellspacing="1" border="0" style="margin-top: 1px;">
<tr>'
;

if (!empty($context['user']['avatar']))
echo '
<td class="windowbg" valign="middle">'
$context['user']['avatar']['image'], '</td>';

echo '
<td colspan="2" width="100%" valign="top" class="windowbg2"><span class="middletext">'
;

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{

if ($context['allow_pm'])
echo $txt['youhave'], '<a href="'$scripturl'?action=pm">'$context['user']['messages'], ' '$context['user']['messages'] != $txt[153] : $txt[471], '</a>'$txt['newmessages4'], ' '$context['user']['unread_messages'], ' '$context['user']['unread_messages'] == $txt['newmessages0'] : $txt['newmessages1'], '<br />';
echo '
<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a> <br />
<a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />';

}
// Otherwise they're a guest - send them a lovely greeting...
else
echo $txt['welcome_guest'];

// Now, onto our second set of info, are they logged in again?
if ($context['user']['is_logged'])
{
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>'
$txt[616], '</b><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
'
$txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo ' </span>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="43200">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select>
<input type="submit" value="'
$txt[34], '" /><br />
<span class="middletext">'
$txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>'
;
}

echo '
</td>'
;
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}
echo '

</tr>
</table>
</td>
</tr>
</table>'
;

echo '
<table id="upshrinkHeader2"'
, empty($options['collapse_header']) ? '' ' style="display: none;"'' width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>'
;

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<td width="90%" class="titlebg2">
<span class="smalltext"><b>'
$txt[102], '</b>: '$context['random_news_line'], '</span>
</td>'
;
echo '
<td class="titlebg2" align="right" nowrap="nowrap" valign="top">
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
<a href="'
$scripturl'?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
<input type="text" name="search" value="" style="width: 190px;" />&nbsp;
<input type="submit" name="submit" value="'
$txt[182], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />'
;

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

echo '
</form>
</td>
</tr>
</table>
</div>'
;


// Show the menu here, according to the menu sub template.
template_menu();
//Below the menu ads
if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
{
$ads show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);

//Tower left Ads
$ads show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">'$ads['type']==$ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

unset($ads);
//Tower Right Ads
$ads show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}




// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">'
;
}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

echo '
</div>'
;


//Close table for towerright ads
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
{
$ads show_towerrightAds();
if(!empty($ads))
echo '</td><td valign="top">'$ads['type']==$ads['content'] : eval($ads['content']) ,'</td></tr></table>'

unset($ads);
//Close table for towerleft ads
$ads show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);

//Show ads on the bottom of the page
$ads show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' '''">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'right' 'left''">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="'
$settings['images_url'], '/powered-mysql.gif" alt="'$txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="'
$settings['images_url'], '/powered-php.gif" alt="'$txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;">
'
theme_copyright(), '
</td>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'left' 'right''">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="'
$settings['images_url'], '/valid-xhtml10.gif" alt="'$txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="'
$settings['images_url'], '/valid-css.gif" alt="'$txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

if (isset($context['ob_googlebot_stats']))
echo '
<br /><br /><span class="smalltext">'
$txt['ob_googlebot_stats_lastvisit'], timeformat($context['ob_googlebot_stats']['Googlebot']['lastvisit']), '</span>';

// 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'] || $context['browser']['is_firefox'])
{
// 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 '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}

echo '
</div>'
;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;>&nbsp;';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// 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('contact','search''admin''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';

// 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 '
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_' 
$first '">&nbsp;</td>';

// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'home' 'active_back' 'back' '">
<a href="'
$scripturl'">' $txt[103] , '</a>
</td>' 
$current_action == 'home' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'help' 'active_back' 'back' '">
<a href="'
$scripturl'?action=help">' $txt[119] , '</a>
</td>' 
$current_action == 'help' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'search' 'active_back' 'back' '">
<a href="'
$scripturl'?action=search">' $txt[182] , '</a>
</td>' 
$current_action == 'search' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'admin' 'active_back' 'back' '">
<a href="'
$scripturl'?action=admin">' $txt[2] , '</a>
</td>' 
$current_action == 'admin' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'profile' 'active_back' 'back' '">
<a href="'
$scripturl'?action=profile">' $txt[79] , '</a>
</td>' 
$current_action == 'profile' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'pm' 'active_back' 'back' '">
<a href="'
$scripturl'?action=pm">' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</a>
</td>' 
$current_action == 'pm' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'calendar' 'active_back' 'back' '">
<a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a>
</td>' 
$current_action == 'calendar' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'mlist' 'active_back' 'back' '">
<a href="'
$scripturl'?action=mlist">' $txt[331] , '</a>
</td>' 
$current_action == 'mlist' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// the [contact] button
if ($context['allow_view_contact'])
echo ($current_action == 'contact' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'contact' 'active_back' 'back' '">
<a href="'
$scripturl'?action=contact">' $txt['smfcontact_contact']  , '</a>
</td>' 
$current_action == 'contact' '<td class="maintab_active_' $last '">&nbsp;</td>' '';



// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'login' 'active_back' 'back' '">
<a href="'
$scripturl'?action=login">' $txt[34] , '</a>
</td>' 
$current_action == 'login' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'register' 'active_back' 'back' '">
<a href="'
$scripturl'?action=register">' $txt[97] , '</a>
</td>' 
$current_action == 'register' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'logout' 'active_back' 'back' '">
<a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a>
</td>' 
$current_action == 'logout' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The end of tab section.
echo '
<td class="maintab_' 
$last '">&nbsp;</td>
</tr>
</table>'
;

}

// 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] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>

Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: pinoypetfinder in Juli 24, 2008, 03:31:13 VORMITTAG
help. anyone?
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: red panther in Juli 27, 2008, 07:00:27 VORMITTAG
Zitat von: pinoypetfinder in Juli 21, 2008, 03:17:04 VORMITTAG
sorry for being so blind, but i cant seem to find this on my default/index.template.php file

  // This part is the logo and forum name.  You should be able to change this to whatever you want...
   echo '
               <img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" />
               <span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';



here's my index.template.php file....
<?php
// Version: 1.1.5; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// 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';

/* 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 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></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'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 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?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" 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']);
$options['collapse_header_ic'] = !empty($_COOKIE['upshrinkIC']);
}

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

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
</head>
<body>'
;
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}



echo '
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' '''>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">'
;

if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">'
$context['forum_name'], '</span>';
else
echo '
<img src="'
$settings['header_logo_url'], '" style="margin: 4px;" alt="'$context['forum_name'], '" />';

echo '
</td>
<td align="right" class="catbg">
<img src="'
$settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
</td>
</tr>
</table>'
;


// display user name
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>'
;

if($context['user']['is_logged'])
echo '
<td class="titlebg2" height="32">
<span style="font-size: 130%;"> '
$txt['hello_member_ndt'], ' <b>'$context['user']['name'] , '</b></span>
</td>'
;

// display the time
echo '
<td class="titlebg2" height="32" align="right">
<span class="smalltext">' 
$context['current_time'], '</span>';

// this is the upshrink button for the user info section
echo '
<a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="'
$settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a>
</td>
</tr>
<tr id="upshrinkHeader"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''>
<td valign="top" colspan="2">
<table width="100%" class="bordercolor" cellpadding="8" cellspacing="1" border="0" style="margin-top: 1px;">
<tr>'
;

if (!empty($context['user']['avatar']))
echo '
<td class="windowbg" valign="middle">'
$context['user']['avatar']['image'], '</td>';

echo '
<td colspan="2" width="100%" valign="top" class="windowbg2"><span class="middletext">'
;

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{

if ($context['allow_pm'])
echo $txt['youhave'], '<a href="'$scripturl'?action=pm">'$context['user']['messages'], ' '$context['user']['messages'] != $txt[153] : $txt[471], '</a>'$txt['newmessages4'], ' '$context['user']['unread_messages'], ' '$context['user']['unread_messages'] == $txt['newmessages0'] : $txt['newmessages1'], '<br />';
echo '
<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a> <br />
<a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />';

}
// Otherwise they're a guest - send them a lovely greeting...
else
echo $txt['welcome_guest'];

// Now, onto our second set of info, are they logged in again?
if ($context['user']['is_logged'])
{
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>'
$txt[616], '</b><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
'
$txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo ' </span>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="43200">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select>
<input type="submit" value="'
$txt[34], '" /><br />
<span class="middletext">'
$txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>'
;
}

echo '
</td>'
;
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}
echo '

</tr>
</table>
</td>
</tr>
</table>'
;

echo '
<table id="upshrinkHeader2"'
, empty($options['collapse_header']) ? '' ' style="display: none;"'' width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>'
;

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<td width="90%" class="titlebg2">
<span class="smalltext"><b>'
$txt[102], '</b>: '$context['random_news_line'], '</span>
</td>'
;
echo '
<td class="titlebg2" align="right" nowrap="nowrap" valign="top">
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
<a href="'
$scripturl'?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
<input type="text" name="search" value="" style="width: 190px;" />&nbsp;
<input type="submit" name="submit" value="'
$txt[182], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />'
;

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

echo '
</form>
</td>
</tr>
</table>
</div>'
;


// Show the menu here, according to the menu sub template.
template_menu();
//Below the menu ads
if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
{
$ads show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);

//Tower left Ads
$ads show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">'$ads['type']==$ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

unset($ads);
//Tower Right Ads
$ads show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}




// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">'
;
}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

echo '
</div>'
;


//Close table for towerright ads
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
{
$ads show_towerrightAds();
if(!empty($ads))
echo '</td><td valign="top">'$ads['type']==$ads['content'] : eval($ads['content']) ,'</td></tr></table>'

unset($ads);
//Close table for towerleft ads
$ads show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);

//Show ads on the bottom of the page
$ads show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' '''">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'right' 'left''">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="'
$settings['images_url'], '/powered-mysql.gif" alt="'$txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="'
$settings['images_url'], '/powered-php.gif" alt="'$txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;">
'
theme_copyright(), '
</td>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'left' 'right''">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="'
$settings['images_url'], '/valid-xhtml10.gif" alt="'$txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="'
$settings['images_url'], '/valid-css.gif" alt="'$txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

if (isset($context['ob_googlebot_stats']))
echo '
<br /><br /><span class="smalltext">'
$txt['ob_googlebot_stats_lastvisit'], timeformat($context['ob_googlebot_stats']['Googlebot']['lastvisit']), '</span>';

// 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'] || $context['browser']['is_firefox'])
{
// 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 '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}

echo '
</div>'
;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;>&nbsp;';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// 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('contact','search''admin''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';

// 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 '
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_' 
$first '">&nbsp;</td>';

// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'home' 'active_back' 'back' '">
<a href="'
$scripturl'">' $txt[103] , '</a>
</td>' 
$current_action == 'home' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'help' 'active_back' 'back' '">
<a href="'
$scripturl'?action=help">' $txt[119] , '</a>
</td>' 
$current_action == 'help' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'search' 'active_back' 'back' '">
<a href="'
$scripturl'?action=search">' $txt[182] , '</a>
</td>' 
$current_action == 'search' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'admin' 'active_back' 'back' '">
<a href="'
$scripturl'?action=admin">' $txt[2] , '</a>
</td>' 
$current_action == 'admin' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'profile' 'active_back' 'back' '">
<a href="'
$scripturl'?action=profile">' $txt[79] , '</a>
</td>' 
$current_action == 'profile' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'pm' 'active_back' 'back' '">
<a href="'
$scripturl'?action=pm">' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</a>
</td>' 
$current_action == 'pm' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'calendar' 'active_back' 'back' '">
<a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a>
</td>' 
$current_action == 'calendar' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'mlist' 'active_back' 'back' '">
<a href="'
$scripturl'?action=mlist">' $txt[331] , '</a>
</td>' 
$current_action == 'mlist' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// the [contact] button
if ($context['allow_view_contact'])
echo ($current_action == 'contact' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'contact' 'active_back' 'back' '">
<a href="'
$scripturl'?action=contact">' $txt['smfcontact_contact']  , '</a>
</td>' 
$current_action == 'contact' '<td class="maintab_active_' $last '">&nbsp;</td>' '';



// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'login' 'active_back' 'back' '">
<a href="'
$scripturl'?action=login">' $txt[34] , '</a>
</td>' 
$current_action == 'login' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'register' 'active_back' 'back' '">
<a href="'
$scripturl'?action=register">' $txt[97] , '</a>
</td>' 
$current_action == 'register' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'logout' 'active_back' 'back' '">
<a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a>
</td>' 
$current_action == 'logout' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The end of tab section.
echo '
<td class="maintab_' 
$last '">&nbsp;</td>
</tr>
</table>'
;

}

// 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] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>


The same problem
i use 1.1.5
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: ccbtimewiz in August 22, 2008, 01:57:03 VORMITTAG
You'll be wanting this section:

<img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />

And to put it to the left, you'd do:

<div align="left"><img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" /></div>

Or you can remove it. Up to you.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: CLBridges in September 13, 2008, 07:57:21 VORMITTAG
Zitat von: Ivan Minic in August 01, 2005, 08:42:20 VORMITTAG
I see some people need help with this, so, here is a little tutorial.

Hi Ivan,

I'm sure it's quite obvious to anyone who can read/write this stuff even just a little bit, but this is my first attempt at it.

If I wanted to make the 'site name' (originally My Community) a link back to my website, would I add an <a href> to my index.template.php like this?:


// This part is the logo and forum name.  You should be able to change this to whatever you want...
   echo '
               <span style="font-family: Georgia, sans-serif; font-size: xx-large;"> <a href="http://www.yourdomain.com/"> ', $context['forum_name'], '</span>'
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: pinoypetfinder in Oktober 05, 2008, 06:36:18 VORMITTAG
can anyone help me on our forum logo? i was able to centralized it back on previous version of smf. but i forgot how to do it...

here's our forum -
http://www.pinoypetfinder.com/forum/index.php
i placed the logo via the admin control panel (current theme, logo url)
forum name will appear if i leave the logo url box empty.

i removed the smflogo.gif btw using the above tutorial.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: rb44 in Oktober 25, 2008, 05:12:30 VORMITTAG
Wouldn't it be simpler to just make your logo the same size and name it the same thing and just upload the new logo?
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: WL101 in Oktober 28, 2008, 05:53:08 NACHMITTAGS
Hey everyone I am new here and this is my first post! My forum is located at http://atozvarieties.com/forum/ and as you see I have a logo on the top left hand side. The right side looks really bare. How can I add another logo, text, or something to fill in all that empty space?? I am new to SMF so please break it down so I can understand. Thanks in advance for any help you can provide.

-Chad
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: ccbtimewiz in Oktober 28, 2008, 07:44:40 NACHMITTAGS
You can upload another image there by creating an image called smflogo.gif and placing it in ./Themes/default/images.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: jimel in Oktober 31, 2008, 12:43:20 NACHMITTAGS
How do I get the Welcome User, Guest, ect to move under the logo and not beside it.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: pinoypetfinder in November 02, 2008, 09:11:08 NACHMITTAGS
Zitat von: rb44 in Oktober 25, 2008, 05:12:30 VORMITTAG
Wouldn't it be simpler to just make your logo the same size and name it the same thing and just upload the new logo?

same size as the forum? i don't think that's possible, because the width of our forum depends on how big your monitor screen or resolution is - i mean, i believe the width is set to "%" and not pixels.


replacing the smflogo.gif, i tried that already but the logo was just placed on the right side of the forum (where the smflogo usually is).

Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: lazygeisha in November 12, 2008, 01:22:12 VORMITTAG
omg -- I am very confused here.

I'm really new to SMF, but I was able to install it and get it running, as well as being able to change the site's theme.

However; when I install the new theme, the header displays the theme's name rather than my forum name.  How do I change this to simply display my forum name?  Any help is very much appreciated!

Thanks!
:D
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: mushroom-eater in November 22, 2008, 07:47:28 VORMITTAG
great post. thanks for sharing. this is very informative
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: big_wannabe in Dezember 13, 2008, 05:50:29 NACHMITTAGS
Zitat von: Ivan Minic in August 01, 2005, 08:42:20 VORMITTAG
I see some people need help with this, so, here is a little tutorial.

Open /Themes/default/index.template.php

Part 1: Kill logo

Find:
// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" />
<span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';

Replace
// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>'



Part 2: Change color of title:

Find:
// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" />
<span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';

Replace
// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<span style="font-family: Georgia, sans-serif; font-size: xx-large;"><font color="#FF0000">', $context['forum_name'], '</font></span>';

This example is with Red
My suggestion is to use colors from Few colors that look very nice with SMF default template (http://www.simplemachines.org/community/index.php?topic=44012.0)
Part 3: Center title:

Find:
// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" />
<span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';

Replace
// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<center><span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span></center>';



I need more basic help than this...

how do I "open" this file?
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: frankystar in Dezember 17, 2008, 01:21:55 VORMITTAG
Thank you mister Ivan for helping me :D
Been looking for a tutorial on how to change logo and your post answered my question thanks a bunch

This is my site have a look the logo is a bit larger what do you think

web.net.ph
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: doktorrr in Januar 09, 2009, 12:07:09 NACHMITTAGS
Nice tip.Thnxs.It work for me.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: monker in Januar 16, 2009, 01:37:57 NACHMITTAGS
Hi I want to replace the top section where the logo.png is with the header file that is on the rest of my site.  Is this where I put include("header.php"); ? I tried that and I got a parse error.

echo '
<div id="header">';
echo '
<a href="', $scripturl, '"><img src="', $settings['images_url'], '/logo.png" alt="The Glen Morris Mercenaries" /></a>';
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: rick917 in Januar 26, 2009, 12:57:13 NACHMITTAGS
Ok I am a complete novice to developing, website design, etc etc.  However I just downloaded the forum software and want to change the title/logo area so that users can click on it or another link to go back to my main webpage.  HELP!!!!  How do you do that? Simply please... :-[
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: shadow82x in Januar 26, 2009, 12:59:49 NACHMITTAGS
Zitat von: rick917 in Januar 26, 2009, 12:57:13 NACHMITTAGS
Ok I am a complete novice to developing, website design, etc etc.  However I just downloaded the forum software and want to change the title/logo area so that users can click on it or another link to go back to my main webpage.  HELP!!!!  How do you do that? Simply please... :-[
Welcome to SMF,
Give this mod a try - http://custom.simplemachines.org/mods/index.php?mod=1381.

After downloading simply go into Admin -> Packages -> Download Packages -> Upload :)
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: chamelisa in April 26, 2009, 02:20:44 NACHMITTAGS
How may I change the background color (blue gradient in default theme) to an image?
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: greystonesguide in Mai 13, 2009, 07:48:12 VORMITTAG
HI
Trying to put link on logo back to website and have tried loads of different variations but nothing has worked yet. version 1.1.8
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: andy40 in Mai 15, 2009, 04:21:18 VORMITTAG
hi i cant find any of this info in my index.template.php and want to put a banner in the centre can anyone help
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: coldy316 in Mai 21, 2009, 12:34:04 VORMITTAG
I just did it myself only thing is that I decided to leave the smf logo in and added
my server host link so memebers and visiters can see what host i'm using you can
view it here: http://www.coldyshangout.com/index.php

Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Stirlo in Mai 23, 2009, 06:50:37 NACHMITTAGS
Zitat von: ccbtimewiz in August 22, 2008, 01:57:03 VORMITTAG
You'll be wanting this section:

<img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />

And to put it to the left, you'd do:

<div align="left"><img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" /></div>

Or you can remove it. Up to you.

you just change the /smflogo.gif to your file :) works, thanks
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: sweetkim in Mai 29, 2009, 11:34:13 NACHMITTAGS
Hey everyone Thank you for making such a great community for SMF support!  I have been lurking around for a few days now and you people "ROCK"!

I am also having that parse error.  I downloaded the index.template.php and made the changes then ftp'd it up and it "parsed"  I am not all that savy but learning.  I see in the modify themes area that you can access the index file for the themes you are not currently using but not the one you are using.  So I have a couple Q's

1.  How do I access the SMF Default Theme - Core index.template.php to make the title changes?  My Simple goal is to replace the SMF logo with the name of my website.

2.  This is what I am "looking for"    echo '
               <img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" />
               <span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';

THIS IS WHAT I FIND:     echo '
            </td>
            <td align="right" class="catbg">
               <img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />

So I am super confused.  I know it has to be easy, right?...LOL  Any help is much appreciated!
SweetKim
www.sweets-syndrome.com
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: adhie_bz in Juli 29, 2009, 02:54:42 NACHMITTAGS
HI all........I use smf 1.1.10 and i use greenbox themes for my forum...My problem is..How to change logo size height and width..I was search some solution but My logo still a little..

Note: I want to change logo width at full header and adding logo heigt..

Many thans for your reply
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Akyhne in Juli 29, 2009, 02:56:45 NACHMITTAGS
Please create your own topic.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: adhie_bz in Juli 29, 2009, 03:01:49 NACHMITTAGS
I'm sorry if I'm in wrong room....Thanks for your attention
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Antechinus in August 17, 2009, 02:14:31 VORMITTAG
Sweetkim, do you still need help with this?
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: tripl3r in November 19, 2009, 03:16:32 NACHMITTAGS
OK guys Really need help with this I don't want any title or title background or default smf logo,, I have want this image with transparent background located here http://www.disciplesofannihilation.com/i/forumbanner.png as my logo for my forum.

heres my index.template.php:
http://www.disciplesofannihilation.com/various/index.template.rar

Please some one do it for me im so lost nothing listed is init,, as im using custom themes etc,,
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: coldy316 in November 30, 2009, 02:58:59 VORMITTAG
will this work on the new smf version 2.0 RC2  and is it set up differant at all

I just want to remove the logo image only..  also cant i just go into ftp then to here

    forum/Themes/default/images/smflogo.png   and remove it that way

Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Arantor in November 30, 2009, 03:48:58 VORMITTAG
You could just remove the image but you'll only get errors in the error log since the HTML will still call for it.

As for this tip working on RC2, are you using Curve or another theme? It will still work on Curve since Themes/default/images/smflogo.png is still its location.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: coldy316 in November 30, 2009, 04:42:13 VORMITTAG
yes i am using the curve one its the default
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Arantor in November 30, 2009, 04:43:36 VORMITTAG
Then yes as I said it should work. The logo is still Themes/default/images/smflogo.png
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: coldy316 in November 30, 2009, 08:57:24 VORMITTAG
I have look at the blackrain2 theme and the smf image logo isnt there but a red box is . I have gone to
both theme sections via ftp to  /Themes/default/index.template.php default core curve and black rain2
theme did a search for this with dreamweaver:

// This part is the logo and forum name.  You should be able to change this to whatever you want... echo ' <img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" /> <span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';Replace


result was could not be found. I then did another search in the blackrain2 theme and got the same result
is  it possible that the script has been move to some other location with SMF 2.0 RC2 curve???
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Arantor in November 30, 2009, 08:59:04 VORMITTAG
Um... you said you were using the default theme? In the default theme I already told you where it is.

By the way you won't find that string you've been looking for, that's two separate lines of code there.

Almost every custom theme is different however. You're best off looking in the thread for that theme.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: coldy316 in November 30, 2009, 09:09:30 VORMITTAG
im also doing this on another forum as well arantor
but even when you view the default core theme for SMF 2.0 RC2 curve I still cant find all of that code

Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Arantor in November 30, 2009, 09:12:14 VORMITTAG
I can't help you with the custom theme issue. Ask in the thread for the custom theme.

For this one, search for smflogo.png on its own in the file, don't try finding the rest of the code.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: brokentater in Januar 15, 2010, 01:54:04 NACHMITTAGS
Im not trying to sound belittling or anything like that but Im genuinely curious why things are designed to be this complicated? I mean seriously in my time to change a logo all it took was a change to a simple IMG tag now theres like 40 lines of code to call one simple image. I really want to know How things were allowed to go from so simple to painfully complex.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Arantor in Januar 15, 2010, 02:28:06 NACHMITTAGS
Where is there 40 lines of code to call a single image? AFAIK in RC2 nothing in the default does that. You can configure the left logo with an admin option IIRC, and change the right logo with a single change of <img>.

Custom themes are at the author's whim however.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: brokentater in Januar 15, 2010, 05:41:38 NACHMITTAGS
I just seen a 3 step explanation to change a simple image and thought it sounded like overkill for the task at hand. I mean having to sift through even 9 or 10 lines of code to change one img is just wild to me. But I code extremely simple, even in php I leave all complexity out and make sure that even the design templates when loaded will display correctly in things like dreamweaver to make certain the editing of the design is flawless.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Arantor in Januar 15, 2010, 05:53:37 NACHMITTAGS
Except that opening the templates in Dreamweaver has a real tendency to break them because they're mostly PHP not HTML.

Most of the problem is that the above is a custom template - where the authors can do what they like. They don't have to stick to the same as SMF's code, which is why code sifting is more complex.

In straight SMF, it is a quick find/replace for a single img tag, nothing more, just as it would be in a conventional HTML page. The only reason it is more complex in any way for an SMF template is that there's so much PHP involved concerning conditional display of things (and anything else would be a lot slower)
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: thesorceress in Februar 23, 2010, 10:09:10 VORMITTAG
I feel really stupid but i can't find the first code, the one that starts with // This part is the logo and forum name. i'm using SMF 1.1.11 and Simple Portal 2.3.1

I triple checked i had the right file and i did. I was so excited i found this topic  ;)
Thanks for any help  :)
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Arantor in Februar 23, 2010, 10:54:27 VORMITTAG
Are you using the default theme?
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: thesorceress in Februar 24, 2010, 06:50:56 VORMITTAG
Hi Arantor thanks for trying to help  :)

I'm using the default theme, but i copied it, changed the colors and gave it it's own name.
I've also looked in that folder at the index.template.php but also no luck.

here is a link to my forum (http://thesorceressandcompany.com/Forum/index.php)

You can see why i desperately want to fix the header and logo part  ;)
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: thesorceress in Februar 25, 2010, 03:07:33 NACHMITTAGS
Do i need to add more info? Please let me know, i have nihil knowledge of this .... i just follow the given steps.

Never mind i found it out in another post  ;)
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Viresh12 in März 09, 2010, 01:30:13 VORMITTAG
/* The main body of the entire forum. */
body
{
   background-color: #ffffff;
   margin: 0px;
   padding: 12px 30px 4px 30px;

After (F) this color list may be found.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: CrouchingPanther in März 12, 2010, 09:13:52 VORMITTAG
I'm using a clone of the default template, I would like to have my forum 1000px wide and centred on screen.
Please can someone let me know how to do this, I've tried with the following http://docs.simplemachines.org/index.php?topic=1021.0 (http://docs.simplemachines.org/index.php?topic=1021.0)
but it's not working. I am using v1.1.11

Thanks  ;D
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Outdoor-Fishing in März 20, 2010, 05:54:05 NACHMITTAGS
Zitat von: Viresh12 in März 09, 2010, 01:30:13 VORMITTAG
/* The main body of the entire forum. */
body
{
   background-color: #ffffff;
   margin: 0px;
   padding: 12px 30px 4px 30px;

After (F) this color list may be found.

How would we implement a custom background instead of just a color?
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Arantor in März 20, 2010, 06:19:21 NACHMITTAGS
Replace the background-color line with: background: url(image.png);

Since I have no idea whether you want it to repeat or not I didn't bother trying to guess that and just left it.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Outdoor-Fishing in März 20, 2010, 07:14:56 NACHMITTAGS
Zitat von: Arantor in März 20, 2010, 06:19:21 NACHMITTAGS
Replace the background-color line with: background: url(image.png);

Since I have no idea whether you want it to repeat or not I didn't bother trying to guess that and just left it.

Yes, I want it to repeat. Maybe I don't? Not exactly sure what affect it would have on the theme.

Thanks for the help! ;)
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Outdoor-Fishing in März 20, 2010, 07:21:23 NACHMITTAGS
New possibility...

The current theme that I have set on my forum has a file named "backdrop". If I am not mistaken, then this would be the "repeating" background image. It's approx 30 px wide and a full page size in length.

So, would I be able to replace this image file with whatever I want to give me my backround.

EDIT: Figured this out. Please disregard this post.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Arantor in März 20, 2010, 07:28:59 NACHMITTAGS
If you don't have it repeat, it will display the image once in the top left corner of the area to which it is the background, in this case the body behind the forum.

If you want it to repeat only horizontally (like Curve theme's background):
background: url(image.png) repeat-x;

If you want it to repeat only vertically, use repeat-y. Repeat in both directions is repeat, and no tiling of any kind is simply no-repeat.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Outdoor-Fishing in März 20, 2010, 07:36:01 NACHMITTAGS
Zitat von: Arantor in März 20, 2010, 07:28:59 NACHMITTAGS
If you don't have it repeat, it will display the image once in the top left corner of the area to which it is the background, in this case the body behind the forum.

If you want it to repeat only horizontally (like Curve theme's background):
background: url(image.png) repeat-x;

If you want it to repeat only vertically, use repeat-y. Repeat in both directions is repeat, and no tiling of any kind is simply no-repeat.

Very interesting. I think I am starting to learn something here.  ;D

Thanks for the help!
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: cowboyffs in März 28, 2010, 09:29:04 VORMITTAG
Good morning,

We're using the Diber Multicolor theme. I've read through the previous 5 pages and managed to find the lines of code mentioned to center the logo with reference to the other themes.

Can someone suggest where I will find the code with reference to  Diber so we can center our logo?

Thanks,
Cowboyffs

*afterthought* It will also help if you can suggest if the change will be as simple as "center" or <div align="center"<img ..... whatever.
Thanks again.  :)
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: crewchiefinlife in März 30, 2010, 03:03:30 VORMITTAG
Very Helpful  :)

Thanx,
April
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: nissilaws in Mai 01, 2010, 06:04:16 NACHMITTAGS
My own problem here is that I cannot even reach the index.template.php file of my default theme. In my admin. panel, there is no where I can modify the default template. Can anyone help me? I have spent long hours on this. Thanks.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Arantor in Mai 01, 2010, 06:10:01 NACHMITTAGS
nissilaws: Are you using SMF For Free? If so I don't think you can actually edit it. Otherwise it's in Admin > Current Theme where you can edit the files.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: nissilaws in Mai 02, 2010, 03:30:24 NACHMITTAGS
Thanks Arantor. I thought SMF is a totally free software. Do some pay for it?  Also please, if you know of any mod I can use to increase the font size of the forum title, I will be most grateful for such information.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Arantor in Mai 02, 2010, 05:30:49 NACHMITTAGS
No... the software is free and it's one you download and run on your own site.

If you use the SMF For Free service, they host and administer the site and any support should be requested of them because it's up to them what features you can have. What's the URL of your forum?
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: nissilaws in Mai 02, 2010, 07:22:49 NACHMITTAGS
That means I am not using the for free service because I host through my hosting account. I wonder then why there is no where I can modify index.template.php of the SMF Default Theme - Core.

Kindly look at: http://nigerianparentsforum.com/. The forum title is way too small. Any MOD I can use to increase this? Thanks for your help.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: Arantor in Mai 02, 2010, 07:25:30 NACHMITTAGS
You can't edit the default theme because every other theme edits it. You will have to do it manually through FTP (which means you can take a backup too)

I don't believe there are any mods, but this thread explains the parts you have to change.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: jackmullaney in Juli 08, 2010, 10:15:50 NACHMITTAGS
Great job!
I need to change the text of the title
How do you do that?
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: xenovanis in Juli 09, 2010, 08:37:32 VORMITTAG
Zitat von: jackmullaney in Juli 08, 2010, 10:15:50 NACHMITTAGS
Great job!
I need to change the text of the title
How do you do that?

What title? What version?
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: iuser in Juli 10, 2010, 12:03:27 VORMITTAG
Hi, nice tutorial.

But where can I change what says at this part (I found the 4 side logos)?

ZitatPowered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC



Thanks.
Titel: Re: How to Change Title / Logo part in Default theme
Beitrag von: xenovanis in Juli 10, 2010, 03:11:02 NACHMITTAGS
Zitat von: iuser in Juli 10, 2010, 12:03:27 VORMITTAG
Hi, nice tutorial.

But where can I change what says at this part (I found the 4 side logos)?

ZitatPowered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC



Thanks.

What do you want to change? You're not allowed to remove the copyright.