Notice: fwrite(): Write of 38 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 59 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 1714 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 44 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 836 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 8192 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 44 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 8192 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 2000 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96
RMRK themes?
Main Menu
  • Welcome to The RPG Maker Resource Kit.

RMRK themes?

Started by iceflame1019, August 17, 2007, 04:04:30 AM

0 Members and 1 Guest are viewing this topic.


Notice: fwrite(): Write of 243 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

iceflame1019

I'm kinda wondering about the "themes" of RMRK...how do you design one?  I get craploads of ideas for stuff but can never make them...I'm curious as to what exactly goes into making the themes available here for the RMRK site.  (the Light theme and those others you can select for your account)

Also, can we submit custom smilies?  (I only ask because most of the threads that look like submission/suggestion areas won't open in my browser...dunno what's wrong)


I was gonna also request a custom title but I forgot it...Oh well.  Sucks to be me I guess.

Want a personal sig like this? Ask Firerain:
http://rmrk.net/index.php/topic,20203.0.html

:)

http://www.simplemachines.org/
should have tutorials and info on how to make themes.
Watch out for: HaloOfTheSun

Irock

Making themes requires complicated code beyond what you're capable of understanding.

Roph

[spoiler]
<?php// Version: 1.1; index// RMRKTHREE/*
	
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'] = false;
	
/* Use plain buttons - as oppossed to text buttons? */
	
$settings['use_buttons'] = false;
	
$settings['use_image_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, $forum_version, $language, $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">
	
	
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>'; echo '
	
<link rel="stylesheet" type="text/css" href="'
, $settings['theme_url'], '/style.css?fin11" />
	
<script language="javascript" type="text/javascript" src="'
, $settings['theme_url'], '/dropdown.js"></script>
	
<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']);
	
// Output any remaining HTML headers. (from mods, maybe?)
	
echo
$context['html_headers'], '
	
<script language="JavaScript" type="text/javascript">
	
	
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">
	
	
	
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 id="page_bg">  <div id="bg-l">  <div id="bg-r">
	
<div id="wrapper">
	
	
	
	
	
	
	
	
	
<div id="header">
	
	
	
	
<div id="rmrk3topmenu">
	
	
	
	
	
	
	
	
'
,template_menu(),'
	
	
	
	
	
	
	
	
<div id="title">        <h1>The RPG Maker Resource Kit</h1>      </div>    </div></div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
<div id="mainbody">
	
	
	
	
	
	
	
	
'
;
	
	
	
	
	
	
	
if (
$context['user']['is_admin']){
	
if (empty(
$settings['theme_version_attention'])){
	
	
if (
$forum_version != 'SMF 1.1.3')
	
echo
'
	
	
<div style="margin: 0 2ex 2ex 2ex; padding: 2ex; border: 2px dashed #cc3344; color: black; background-color: #ffb76f;">
	
	
	
<div style="float: left; width: 2ex; font-size: 2em; color: red;">!!</div>
	
	
	
<b style="text-decoration: underline;">Attention of RMRK-FIELDS theme:</b><br />
	
	
	
<div style="padding-left: 6ex;">
	
	
	
This theme doesn\'t correspond to the version of SMF that you are using. <u>This theme is made for SMF 1.1.3!</u>.<br />
	
	
	
<u>If you want to use it anyway (on your own risk!)</u> you can disable this message in the admin panel:<br />
	
	
	
admin- configuration - current theme (above the save button)
	
	
	
</div>
	
	
</div>'
;}
	
	
if (empty(
$txt['necessary_to_translate']))
	
echo
'
	
	
<div style="margin: 0 2ex 2ex 2ex; padding: 2ex; border: 2px dashed #cc3344; color: black; background-color: #e7e7f7;">
	
	
	
<div style="float: left; width: 2ex; font-size: 2em; color: red;">!!</div>
	
	
	
<b style="text-decoration: underline;">Attention of RMRK-FIELDS theme:</b><br />
	
	
	
<div style="padding-left: 6ex;">
	
	
	
You have to create &quot;<b>Modifications.<span style="color: red;"><acronym title="Name of language that you are using">'
, $language , '</acronym></span>.php</b>&quot; in the &quot;<b>languages</b>&quot; directory ( <i>', $settings['theme_url'], '/languages/</i> ) of your RMRK-FIELDS theme.<br /><br />
	
	
	
Duplicate the &quot;<i>Modifications.english.php</i>&quot; of the &quot;languages&quot; directory of RMRK-FIELDS. Next, rename it according to the language for which you use the file.
	
	
	
</div>
	
	
</div>'
;}
	
	
	
	
	
//Search form - Hide from IE7 since it can't handle it displayed in this fluid / fixed div. IE6, miraculously, can! Albeit with a few CSS workarounds, though.
	
	
	
if (!
$context['browser']['is_ie7']) {
	
echo
'
	
	
	
	
	
	
	
<div class="searchbox">  <form action="'
, $scripturl, '?action=search2" method="post" style="margin: 4px 0;">
	
	
	
	
	
	
	
<input type="text" name="search" value="" size="30" style="margin-bottom: 4px;"  />&nbsp;
	
	
	
	
	
	
	
<input type="submit" name="submit" value="'
, $txt[182], '" style="margin-bottom: 4px;"  /><br />
	
	
	
	
	
	
	
<a href="'
, $scripturl, '?action=search;advanced">', $txt['smf298'], '</a>
	
	
	
	
	
	
	
<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></div>'
;
	
	
	
	
	
	
	
	
	
	
}echo
'<div id="rmrk3_main">';
	
}
// The main content should go here.  A table is used because IE 6 just can't handle a div [Bollocks ;)].function template_main_below(){
	
global
$context, $settings, $options, $scripturl, $txt;
	
	
// Show the "Powered by" and "Valid" logos, as well as the copyright.  Remember, the copyright must be somewhere!
	
echo
'
	
	
	
	
	
</div>
	
	
<div id="rmrk3_sidebar">'
,sidebar(),'
	
</div>
	
	
	
	
	
	
<div id="footer">
	
	
	
	
'
,theme_copyright(),'<div class="smalltext"><a href="http://rmrk.net" target="_blank">RMRKthree</a> (01/8/07) theme created by <a href="http://slyph.org" target="_blank">Silverline</a>&nbsp;<br />
	
	
	
	
Page generated in '
, $context['load_time'],' seconds.</div></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;' : '', '"><img src="'.$settings['images_url'].'/ajax.gif" alt="Loading" />', $txt['ajax_in_progress'], '</div></div></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
'<span class="pathway">';
	
// 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'];
	
	
// Don't show a separator for the last one.
	
	
if (
$link_num != count($context['linktree']) - 1)
	
	
	
// Show the link, including a URL if it should have one.
	
	
	
echo
$settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="pathway">' . $tree['name'] . '</a>' : $tree['name'] , '<img src="'.$settings['images_url'].'/arrow.png" style="margin: 0 12px 0 12px" alt="" />';
	
	
else
	
	
	
echo
$tree['name'];
	
	
// Show something after the link...?
	
	
if (isset(
$tree['extra_after']))
	
	
	
echo
$tree['extra_after'];
	
}
	
echo
'</span>';}// Show the menu up top. Something like [home] [help] [profile] [logout]...function template_menu(){
	
global
$context, $settings, $options, $scripturl, $txt;
	
echo
'
	
<ul>'
;
	
	
// If link set in admin interface show extra [home] button .
	
if (!empty(
$settings['pdx_forum_button']))
	
	
echo
	
'<li><a href="', $settings['pdx_forum_button'], '" class="homebutton">' , $txt[103] , '</a></li>';
	
if (!empty(
$settings['pdx_forum_button']))
	
	
{
	
	
	
// Show the extra [forum] button.
	
	
	
echo
	
'<li><a href="', $scripturl, '">' , $txt['pdx_forum_button_forum'] , '</a></li>';
	
	
}
	
else
	
	
{
	
	
	
// Show the default [home] button.
	
	
	
echo
	
'<li><a href="', $scripturl, '">' , $txt[103] , '</a></li>';
	
	
}
	
	
	
// Show the [help] button.
	
echo
	
'<li><a href="', $scripturl, '?action=help">' , $txt[119] , '</a></li>';
	
// How about the [search] button?
	
if (
$context['allow_search'])
	
	
echo
'<li><a href="', $scripturl, '?action=search">' , $txt[182] , '</a></li>';
	
// Is the user allowed to administrate at all? ([admin])
	
if (
$context['allow_admin'])
	
	
echo
	
'<li><a href="', $scripturl, '?action=admin">' , $txt[2] , '</a></li>';
	
// Edit Profile... [profile]
	
if (
$context['allow_edit_profile'])
	
	
echo
'<li><a href="', $scripturl, '?action=profile">' , $txt[79] , '</a></li>';
	
// Go to PM center... [pm]
	
if (
$context['user']['is_logged'] && $context['allow_pm'])
	
	
echo
'<li><a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a></li>';
	
// The [calendar]!
	
if (
$context['allow_calendar'])
	
	
echo
'<li><a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a></li>';
	
// the [member] list button
	
if (
$context['allow_memberlist'])
	
	
echo
'<li><a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a></li>';
	
// If the user is a guest, show [login] button.
	
if (
$context['user']['is_guest'])
	
	
echo
'<li><a href="', $scripturl, '?action=login">' , $txt[34] , '</a></li>';
	
// If the user is a guest, also show [register] button.
	
if (
$context['user']['is_guest'])
	
	
echo
'<li><a href="', $scripturl, '?action=register">' , $txt[97] , '</a></li>';
	
// Otherwise, they might want to [logout]...
	
if (
$context['user']['is_logged'])
	
	
echo
'<li><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a></li>';
	
echo
'</ul>';}// 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>';}// Generate a strip of buttons.function template_button_strip_mill($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'] : '') . '>'. ($custom_td!='' ? '<'.$custom_td.'>' : '') . $txt[$value['text']] . ($custom_td!='' ? '</'.$custom_td.'>' : '') .'</a>';
	
	
$button_strip[$key] = $buttons[$key];
	
}
	
if (empty(
$button_strip))
	
	
return
'&nbsp;';
	
echo
implode(' &nbsp;|&nbsp; ', $button_strip);}function sidebar() {global $settings, $buttons, $context, $txt, $scripturl;
	
if (
$context['user']['is_logged']) {
	
echo
'
	
<div class="rightbox"><h2>'
, $txt['hello_member_ndt'], ' <b>', $context['user']['name'], '</h2>';
	
if (!empty(
$context['user']['avatar']))
	
	
{
	
	
$context['user']['avatar']['image'] = strtr($context['user']['avatar']['image'], array("class=\"avatar\"" => "class=\"avatar_t\""));
	
	
echo
'', $context['user']['avatar']['image'], '';
	
	
}
	
else
	
	
echo
'<a href="' . $scripturl . '?action=profile;u=', $context['user']['id'], ';sa=forumProfile"><img src="' . $settings['images_url'] . '/noavatar.png" alt="missing avatar" alt="" width="65px" height="65px" /></a>';
	
	
	
	
echo
'<br/>';
	
	
// Only tell them about their messages if they can read their messages!
	
	
if (
$context['allow_pm'])
	
	
	
echo
'<a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? 'msgs' : 'msg', '</a>, ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? 'new' : 'new';
	
	
	
	
	
	
// Is the forum in maintenance mode?
	
	
if (
$context['in_maintenance'] && $context['user']['is_admin'])
	
	
	
echo
'<br /><b>', $txt[616], '</b>';
	
	
	
	
	
// Are there any members waiting for approval?
	
	
if (!empty(
$context['unapproved_members']))
	
	
	
echo
'<br />', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '';
	
	
	
	
	
	
// Show the total time logged in?
	
	
if (!empty(
$context['user']['total_time_logged_in']))
	
	
{
	
	
	
echo
'<br />
	
	
	
	
	
	
	
Time wasted: '
;
	
	
	
// 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'],' days ';
	
	
	
// 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'],' hrs ';
	
	
	
// But, let's always show minutes - Time wasted here: 0 minutes ;).
	
	
	
echo
'',$context['user']['total_time_logged_in']['minutes'],' mins';
	
	
}
	
	
	
	
echo
'<br /><a href="', $scripturl, '?action=unread">Show Unread Posts</a><br /><a href="', $scripturl, '?action=unreadreplies">Show Unread Replies</a>
	
	
	
 
	
	
 '
;
	
	
	
	
	
	
echo
' </div>';
	
	
	
}
	
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
	
else
	
{
	
	
echo
'
	
	
	
	
	
	
	
<br /><div class="rightbox"><h2>Welcome</h2>
	
	
	
	
	
	
	
'
, $txt['welcome_guest'], '<br />
	
	
	
	
	
	
	
<script language="JavaScript" type="text/javascript" src="'
, $settings['default_theme_url'], '/sha1.js"></script>
	
	
	
	
	
	
	
<br /><form action="'
, $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" style="margin: 4px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
	
	
	
	
	
	
	
	
	
<input type="text" name="user" style="margin-bottom: 4px;" size="17" />
	
	
	
	
	
	
	
	
	
<input type="password" name="passwrd" style="margin-bottom: 4px;" size="17" /><br />
	
	
	
	
	
	
	
	
	
<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], '" />
	
	
	
	
	
	
	
	
	
<input type="hidden" name="hash_passwrd" value="" />
	
	
	
	
	
</form>'
, $txt['smf52'], '<br /><br /></div>';
	
}
	
	
	
	
	
	
echo
'
	
	
	
	
	
	
	
<div class="rightbox"><h2>Statistics</h2>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
<b>'
, $context['common_stats']['total_posts'], '</b> ', $txt[95], ' ', $txt['smf88'], ' <b>', $context['common_stats']['total_topics'], '</b> ', $txt[64], '- ', $txt[525], ' <span style="white-space: nowrap;"><b>', $context['common_stats']['total_members'], '</b> ', $txt[19], '</span> -
	
	
	
	
	
	
	
'
, $txt[656], ': <b> ', $context['common_stats']['latest_member']['link'], '</b><br /><br />', $context['current_time'],'<br /></div>';
	
	
	
	
	
	
	
	
	
     echo
'
	
	
	
	
	
	
	
<div class="rightbox"><h2>Quicklinks</h2>
	
	
	
	
	
	
	
<a href="http://rmrk.net/index.php?action=chat">RMRK Chat</a><br />
	
	
	
	
	
	
	
<a href="http://wiki.rmrk.net/">RMRKWiki</a><br />
	
	
	
	
	
	
	
<a href="http://rmrk.net/index.php?action=stats">Detailed Stats</a><br />
	
	
	
	
	
	
	
<a href="http://rmrk.net/index.php?action=who">View Online</a><br />
	
	
	
	
	
	
	
<a href="http://rmrk.net/archive.php">Forum Archive</a><br />
	
	
	
	
	
	
	
<a style="color:#C5F441" href="http://rmrk.net/?action=donate">Donate to RMRK</a><br />
	
	
	
	
	
	
	
</div>'
;
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
}
	
//<h1><span>Affiliates</span></h1>?>
[/spoiler]

One of the many files from the newest thingy. It takes a while to write one from scratch. Simply editing an existing one is easier, though you still should be good with html, css and php.
[fright]bringing sexy back[/fright]

Kokowam

Lol you need the ghey "IE 6 sucks so you need to change it" stuff if you start from scratch.

iceflame1019

Quote from: Irock on August 17, 2007, 04:51:39 AM
Making themes requires complicated code beyond what you're capable of understanding.

eek

Quote from: Roph on August 17, 2007, 05:34:25 AM
[spoiler]
<?php// Version: 1.1; index// RMRKTHREE/*
	
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'] = false;
	
/* Use plain buttons - as oppossed to text buttons? */
	
$settings['use_buttons'] = false;
	
$settings['use_image_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, $forum_version, $language, $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">
	
	
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>'; echo '
	
<link rel="stylesheet" type="text/css" href="'
, $settings['theme_url'], '/style.css?fin11" />
	
<script language="javascript" type="text/javascript" src="'
, $settings['theme_url'], '/dropdown.js"></script>
	
<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']);
	
// Output any remaining HTML headers. (from mods, maybe?)
	
echo
$context['html_headers'], '
	
<script language="JavaScript" type="text/javascript">
	
	
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">
	
	
	
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 id="page_bg">  <div id="bg-l">  <div id="bg-r">
	
<div id="wrapper">
	
	
	
	
	
	
	
	
	
<div id="header">
	
	
	
	
<div id="rmrk3topmenu">
	
	
	
	
	
	
	
	
'
,template_menu(),'
	
	
	
	
	
	
	
	
<div id="title">        <h1>The RPG Maker Resource Kit</h1>      </div>    </div></div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
<div id="mainbody">
	
	
	
	
	
	
	
	
'
;
	
	
	
	
	
	
	
if (
$context['user']['is_admin']){
	
if (empty(
$settings['theme_version_attention'])){
	
	
if (
$forum_version != 'SMF 1.1.3')
	
echo
'
	
	
<div style="margin: 0 2ex 2ex 2ex; padding: 2ex; border: 2px dashed #cc3344; color: black; background-color: #ffb76f;">
	
	
	
<div style="float: left; width: 2ex; font-size: 2em; color: red;">!!</div>
	
	
	
<b style="text-decoration: underline;">Attention of RMRK-FIELDS theme:</b><br />
	
	
	
<div style="padding-left: 6ex;">
	
	
	
This theme doesn\'t correspond to the version of SMF that you are using. <u>This theme is made for SMF 1.1.3!</u>.<br />
	
	
	
<u>If you want to use it anyway (on your own risk!)</u> you can disable this message in the admin panel:<br />
	
	
	
admin- configuration - current theme (above the save button)
	
	
	
</div>
	
	
</div>'
;}
	
	
if (empty(
$txt['necessary_to_translate']))
	
echo
'
	
	
<div style="margin: 0 2ex 2ex 2ex; padding: 2ex; border: 2px dashed #cc3344; color: black; background-color: #e7e7f7;">
	
	
	
<div style="float: left; width: 2ex; font-size: 2em; color: red;">!!</div>
	
	
	
<b style="text-decoration: underline;">Attention of RMRK-FIELDS theme:</b><br />
	
	
	
<div style="padding-left: 6ex;">
	
	
	
You have to create &quot;<b>Modifications.<span style="color: red;"><acronym title="Name of language that you are using">'
, $language , '</acronym></span>.php</b>&quot; in the &quot;<b>languages</b>&quot; directory ( <i>', $settings['theme_url'], '/languages/</i> ) of your RMRK-FIELDS theme.<br /><br />
	
	
	
Duplicate the &quot;<i>Modifications.english.php</i>&quot; of the &quot;languages&quot; directory of RMRK-FIELDS. Next, rename it according to the language for which you use the file.
	
	
	
</div>
	
	
</div>'
;}
	
	
	
	
	
//Search form - Hide from IE7 since it can't handle it displayed in this fluid / fixed div. IE6, miraculously, can! Albeit with a few CSS workarounds, though.
	
	
	
if (!
$context['browser']['is_ie7']) {
	
echo
'
	
	
	
	
	
	
	
<div class="searchbox">  <form action="'
, $scripturl, '?action=search2" method="post" style="margin: 4px 0;">
	
	
	
	
	
	
	
<input type="text" name="search" value="" size="30" style="margin-bottom: 4px;"  />&nbsp;
	
	
	
	
	
	
	
<input type="submit" name="submit" value="'
, $txt[182], '" style="margin-bottom: 4px;"  /><br />
	
	
	
	
	
	
	
<a href="'
, $scripturl, '?action=search;advanced">', $txt['smf298'], '</a>
	
	
	
	
	
	
	
<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></div>'
;
	
	
	
	
	
	
	
	
	
	
}echo
'<div id="rmrk3_main">';
	
}
// The main content should go here.  A table is used because IE 6 just can't handle a div [Bollocks ;)].function template_main_below(){
	
global
$context, $settings, $options, $scripturl, $txt;
	
	
// Show the "Powered by" and "Valid" logos, as well as the copyright.  Remember, the copyright must be somewhere!
	
echo
'
	
	
	
	
	
</div>
	
	
<div id="rmrk3_sidebar">'
,sidebar(),'
	
</div>
	
	
	
	
	
	
<div id="footer">
	
	
	
	
'
,theme_copyright(),'<div class="smalltext"><a href="http://rmrk.net" target="_blank">RMRKthree</a> (01/8/07) theme created by <a href="http://slyph.org" target="_blank">Silverline</a>&nbsp;<br />
	
	
	
	
Page generated in '
, $context['load_time'],' seconds.</div></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;' : '', '"><img src="'.$settings['images_url'].'/ajax.gif" alt="Loading" />', $txt['ajax_in_progress'], '</div></div></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
'<span class="pathway">';
	
// 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'];
	
	
// Don't show a separator for the last one.
	
	
if (
$link_num != count($context['linktree']) - 1)
	
	
	
// Show the link, including a URL if it should have one.
	
	
	
echo
$settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="pathway">' . $tree['name'] . '</a>' : $tree['name'] , '<img src="'.$settings['images_url'].'/arrow.png" style="margin: 0 12px 0 12px" alt="" />';
	
	
else
	
	
	
echo
$tree['name'];
	
	
// Show something after the link...?
	
	
if (isset(
$tree['extra_after']))
	
	
	
echo
$tree['extra_after'];
	
}
	
echo
'</span>';}// Show the menu up top. Something like [home] [help] [profile] [logout]...function template_menu(){
	
global
$context, $settings, $options, $scripturl, $txt;
	
echo
'
	
<ul>'
;
	
	
// If link set in admin interface show extra [home] button .
	
if (!empty(
$settings['pdx_forum_button']))
	
	
echo
	
'<li><a href="', $settings['pdx_forum_button'], '" class="homebutton">' , $txt[103] , '</a></li>';
	
if (!empty(
$settings['pdx_forum_button']))
	
	
{
	
	
	
// Show the extra [forum] button.
	
	
	
echo
	
'<li><a href="', $scripturl, '">' , $txt['pdx_forum_button_forum'] , '</a></li>';
	
	
}
	
else
	
	
{
	
	
	
// Show the default [home] button.
	
	
	
echo
	
'<li><a href="', $scripturl, '">' , $txt[103] , '</a></li>';
	
	
}
	
	
	
// Show the [help] button.
	
echo
	
'<li><a href="', $scripturl, '?action=help">' , $txt[119] , '</a></li>';
	
// How about the [search] button?
	
if (
$context['allow_search'])
	
	
echo
'<li><a href="', $scripturl, '?action=search">' , $txt[182] , '</a></li>';
	
// Is the user allowed to administrate at all? ([admin])
	
if (
$context['allow_admin'])
	
	
echo
	
'<li><a href="', $scripturl, '?action=admin">' , $txt[2] , '</a></li>';
	
// Edit Profile... [profile]
	
if (
$context['allow_edit_profile'])
	
	
echo
'<li><a href="', $scripturl, '?action=profile">' , $txt[79] , '</a></li>';
	
// Go to PM center... [pm]
	
if (
$context['user']['is_logged'] && $context['allow_pm'])
	
	
echo
'<li><a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a></li>';
	
// The [calendar]!
	
if (
$context['allow_calendar'])
	
	
echo
'<li><a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a></li>';
	
// the [member] list button
	
if (
$context['allow_memberlist'])
	
	
echo
'<li><a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a></li>';
	
// If the user is a guest, show [login] button.
	
if (
$context['user']['is_guest'])
	
	
echo
'<li><a href="', $scripturl, '?action=login">' , $txt[34] , '</a></li>';
	
// If the user is a guest, also show [register] button.
	
if (
$context['user']['is_guest'])
	
	
echo
'<li><a href="', $scripturl, '?action=register">' , $txt[97] , '</a></li>';
	
// Otherwise, they might want to [logout]...
	
if (
$context['user']['is_logged'])
	
	
echo
'<li><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a></li>';
	
echo
'</ul>';}// 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>';}// Generate a strip of buttons.function template_button_strip_mill($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'] : '') . '>'. ($custom_td!='' ? '<'.$custom_td.'>' : '') . $txt[$value['text']] . ($custom_td!='' ? '</'.$custom_td.'>' : '') .'</a>';
	
	
$button_strip[$key] = $buttons[$key];
	
}
	
if (empty(
$button_strip))
	
	
return
'&nbsp;';
	
echo
implode(' &nbsp;|&nbsp; ', $button_strip);}function sidebar() {global $settings, $buttons, $context, $txt, $scripturl;
	
if (
$context['user']['is_logged']) {
	
echo
'
	
<div class="rightbox"><h2>'
, $txt['hello_member_ndt'], ' <b>', $context['user']['name'], '</h2>';
	
if (!empty(
$context['user']['avatar']))
	
	
{
	
	
$context['user']['avatar']['image'] = strtr($context['user']['avatar']['image'], array("class=\"avatar\"" => "class=\"avatar_t\""));
	
	
echo
'', $context['user']['avatar']['image'], '';
	
	
}
	
else
	
	
echo
'<a href="' . $scripturl . '?action=profile;u=', $context['user']['id'], ';sa=forumProfile"><img src="' . $settings['images_url'] . '/noavatar.png" alt="missing avatar" alt="" width="65px" height="65px" /></a>';
	
	
	
	
echo
'<br/>';
	
	
// Only tell them about their messages if they can read their messages!
	
	
if (
$context['allow_pm'])
	
	
	
echo
'<a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? 'msgs' : 'msg', '</a>, ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? 'new' : 'new';
	
	
	
	
	
	
// Is the forum in maintenance mode?
	
	
if (
$context['in_maintenance'] && $context['user']['is_admin'])
	
	
	
echo
'<br /><b>', $txt[616], '</b>';
	
	
	
	
	
// Are there any members waiting for approval?
	
	
if (!empty(
$context['unapproved_members']))
	
	
	
echo
'<br />', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '';
	
	
	
	
	
	
// Show the total time logged in?
	
	
if (!empty(
$context['user']['total_time_logged_in']))
	
	
{
	
	
	
echo
'<br />
	
	
	
	
	
	
	
Time wasted: '
;
	
	
	
// 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'],' days ';
	
	
	
// 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'],' hrs ';
	
	
	
// But, let's always show minutes - Time wasted here: 0 minutes ;).
	
	
	
echo
'',$context['user']['total_time_logged_in']['minutes'],' mins';
	
	
}
	
	
	
	
echo
'<br /><a href="', $scripturl, '?action=unread">Show Unread Posts</a><br /><a href="', $scripturl, '?action=unreadreplies">Show Unread Replies</a>
	
	
	
 
	
	
 '
;
	
	
	
	
	
	
echo
' </div>';
	
	
	
}
	
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
	
else
	
{
	
	
echo
'
	
	
	
	
	
	
	
<br /><div class="rightbox"><h2>Welcome</h2>
	
	
	
	
	
	
	
'
, $txt['welcome_guest'], '<br />
	
	
	
	
	
	
	
<script language="JavaScript" type="text/javascript" src="'
, $settings['default_theme_url'], '/sha1.js"></script>
	
	
	
	
	
	
	
<br /><form action="'
, $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" style="margin: 4px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
	
	
	
	
	
	
	
	
	
<input type="text" name="user" style="margin-bottom: 4px;" size="17" />
	
	
	
	
	
	
	
	
	
<input type="password" name="passwrd" style="margin-bottom: 4px;" size="17" /><br />
	
	
	
	
	
	
	
	
	
<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], '" />
	
	
	
	
	
	
	
	
	
<input type="hidden" name="hash_passwrd" value="" />
	
	
	
	
	
</form>'
, $txt['smf52'], '<br /><br /></div>';
	
}
	
	
	
	
	
	
echo
'
	
	
	
	
	
	
	
<div class="rightbox"><h2>Statistics</h2>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
<b>'
, $context['common_stats']['total_posts'], '</b> ', $txt[95], ' ', $txt['smf88'], ' <b>', $context['common_stats']['total_topics'], '</b> ', $txt[64], '- ', $txt[525], ' <span style="white-space: nowrap;"><b>', $context['common_stats']['total_members'], '</b> ', $txt[19], '</span> -
	
	
	
	
	
	
	
'
, $txt[656], ': <b> ', $context['common_stats']['latest_member']['link'], '</b><br /><br />', $context['current_time'],'<br /></div>';
	
	
	
	
	
	
	
	
	
     echo
'
	
	
	
	
	
	
	
<div class="rightbox"><h2>Quicklinks</h2>
	
	
	
	
	
	
	
<a href="http://rmrk.net/index.php?action=chat">RMRK Chat</a><br />
	
	
	
	
	
	
	
<a href="http://wiki.rmrk.net/">RMRKWiki</a><br />
	
	
	
	
	
	
	
<a href="http://rmrk.net/index.php?action=stats">Detailed Stats</a><br />
	
	
	
	
	
	
	
<a href="http://rmrk.net/index.php?action=who">View Online</a><br />
	
	
	
	
	
	
	
<a href="http://rmrk.net/archive.php">Forum Archive</a><br />
	
	
	
	
	
	
	
<a style="color:#C5F441" href="http://rmrk.net/?action=donate">Donate to RMRK</a><br />
	
	
	
	
	
	
	
</div>'
;
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
}
	
//<h1><span>Affiliates</span></h1>?>
[/spoiler]

One of the many files from the newest thingy. It takes a while to write one from scratch. Simply editing an existing one is easier, though you still should be good with html, css and php.

:o    eek again         yeah I usually like editing existing things, but...    eek

The only programming I know is GML...

Want a personal sig like this? Ask Firerain:
http://rmrk.net/index.php/topic,20203.0.html

:)

Quote from: Irock on August 17, 2007, 04:51:39 AM
Making themes requires complicated code beyond what you're capable of understanding.

rude?
Watch out for: HaloOfTheSun

iceflame1019

yes.

even though he has a point it could've been worded better.


Want a personal sig like this? Ask Firerain:
http://rmrk.net/index.php/topic,20203.0.html

Irock

Quote from: Nouman on August 17, 2007, 06:04:04 PM
Quote from: Irock on August 17, 2007, 04:51:39 AM
Making themes requires complicated code beyond what you're capable of understanding.

rude?

Thanks :D

Esmeralda

I suggest you rethink too, it took me nearly 4 months to make this theme I'm using; here's a screenshot.

:taco: :taco: :taco:

iceflame1019

Looks more like a Paint-drawn little tidbit quickly made and posted here...:P

Want a personal sig like this? Ask Firerain:
http://rmrk.net/index.php/topic,20203.0.html

Kokowam


Esmeralda

Quote from: iceflame1019 on August 18, 2007, 06:58:16 PM
Looks more like a Paint-drawn little tidbit quickly made and posted here...:P

You fail to realize the code i embedded into that :(
:taco: :taco: :taco:

:)

k, was your question answered?


btw hawt theme Ferenn
Watch out for: HaloOfTheSun

iceflame1019

yeah pretty much...

Might as well close this...

btw sorry ferenn

Want a personal sig like this? Ask Firerain:
http://rmrk.net/index.php/topic,20203.0.html