RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
RMRK themes?

0 Members and 3 Guests are viewing this topic.

****
Rep:
Level 88
wrath of winter
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

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
http://www.simplemachines.org/
should have tutorials and info on how to make themes.
Watch out for: HaloOfTheSun

*
Rep:
Level 102
2014 Biggest Narcissist Award2014 Biggest Forum Potato2014 Best Non-RM Creator2013 Best IRC Chatterbox2013 Best Game Creator (Non-RM)Participant - GIAW 112012 Most Successful Troll2012 Funniest Member2012 Best Use Of Avatar and Signature space2012 Best IRC ChatterboxSecret Santa 2012 ParticipantProject of the Month winner for November 2009For being a noted contributor to the RMRK Wiki2010 Most Successful Troll2010 Biggest Forum Couch Potato2010 Best IRC Chatterbox
Making themes requires complicated code beyond what you're capable of understanding.

*
( ´ิ(ꈊ) ´ิ) ((≡^⚲͜^≡)) (ી(΄◞ิ౪◟ิ‵)ʃ)
Rep:
Level 102
(っ˘ڡ˘ς) ʕ•̼͛͡•ʕ-̺͛͡•ʔ•̮͛͡•ʔ (*ꆤ.̫ꆤ*)
2014 Avast Ye Merry Pirate!2013 Avast Ye Merry Pirate Award2012 Avast Ye Merry Pirate AwardFor frequently finding and reporting spam and spam bots2011 Most Unsung Member2011 Avast Ye Merry Pirate2010 Avast Ye Merry Pirate Award
Spoiler for:
<?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[&#39;linktree&#39;] 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 &#39;always&#39;, images from the default theme will be used.
	
	
if this is &#39;defaults&#39;, images from the default theme will only be used with default templates.
	
	
if this is &#39;never&#39; or isn&#39;t set at all, images from the default theme will not be used. */
	
$settings[&#39;use_default_images&#39;] = &#39;never&#39;;

	
/* What document type definition is being used? (for font size and other issues.)
	
	
&#39;xhtml&#39; for an XHTML 1.0 document type definition.
	
	
&#39;html&#39; for an HTML 4.01 document type definition. */
	
$settings[&#39;doctype&#39;] = &#39;xhtml&#39;;

	
/* The version this template/theme is for.
	
	
This should probably be the version of SMF it was created for. */
	
$settings[&#39;theme_version&#39;] = &#39;1.1&#39;;

	
/* Set a setting that tells the theme that it can render the tabs. */
	
$settings[&#39;use_tabs&#39;] = false;

	
/* Use plain buttons - as oppossed to text buttons? */
	
$settings[&#39;use_buttons&#39;] = false;
	
$settings[&#39;use_image_buttons&#39;] = true;
	
/* Show sticky and lock status seperate from topic icons? */
	
$settings[&#39;seperate_sticky_lock&#39;] = 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 &
#39;<!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"&#39;, $context[&#39;right_to_left&#39;] ? &#39; dir="rtl"&#39; : &#39;&#39;, &#39;>
	
<
head>
	
<
meta http-equiv="Content-Type" content="text/html; charset=&#39;, $context[&#39;character_set&#39;], &#39;" />
	
<
meta name="description" content="&#39;, $context[&#39;page_title&#39;], &#39;" />&#39;, empty($context[&#39;robot_no_index&#39;]) ? &#39;&#39; : &#39;
	
<
meta name="robots" content="noindex" />&#39;, &#39;
	
<
meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
	
<
script language="JavaScript" type="text/javascript" src="&#39;, $settings[&#39;default_theme_url&#39;], &#39;/script.js?fin11"></script>
	
<
script language="JavaScript" type="text/javascript">
	
	
var 
smf_theme_url "&#39;, $settings[&#39;theme_url&#39;], &#39;";
	
	
var 
smf_images_url "&#39;, $settings[&#39;images_url&#39;], &#39;";
	
	
var 
smf_scripturl "&#39;, $scripturl, &#39;";
	
	
var 
smf_iso_case_folding = &#39;, $context[&#39;server&#39;][&#39;iso_case_folding&#39;] ? &#39;true&#39; : &#39;false&#39;, &#39;;
	
	
var 
smf_charset "&#39;, $context[&#39;character_set&#39;], &#39;";
	
</
script>
	
<
title>&#39;, $context[&#39;page_title&#39;], &#39;</title>&#39;;

 
echo &#39;
	
<
link rel="stylesheet" type="text/css" href="&#39;, $settings[&#39;theme_url&#39;], &#39;/style.css?fin11" />
	
<
script language="javascript" type="text/javascript" src="&#39;, $settings[&#39;theme_url&#39;], &#39;/dropdown.js"></script>
	
<
link rel="stylesheet" type="text/css" href="&#39;, $settings[&#39;default_theme_url&#39;], &#39;/print.css?fin11" media="print" />&#39;;


	
/* Internet Explorer 4/5 and Opera 6 just don&#39;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[&#39;browser&#39;][&#39;needs_size_fix&#39;])
	
	
echo &
#39;
	
<
link rel="stylesheet" type="text/css" href="&#39;, $settings[&#39;default_theme_url&#39;], &#39;/fonts-compat.css" />&#39;;

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

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

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

	
// If we&#39;re in a board, or a topic for that matter, the index will be the board&#39;s index.
	
if (!empty(
$context[&#39;current_board&#39;]))
	
	
echo &
#39;
	
<
link rel="index" href="&#39; . $scripturl . &#39;?board=&#39; . $context[&#39;current_board&#39;] . &#39;.0" />&#39;;

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

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

	
<
script language="JavaScript" type="text/javascript">
	
	
var 
current_header = &#39;, empty($options[&#39;collapse_header&#39;]) ? &#39;false&#39; : &#39;true&#39;, &#39;;

	
	
function 
shrinkHeader(mode)
	
	
{&
#39;;

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

	
echo &
#39;
	
	
	
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>&#39;;

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

	
	
	
function 
shrinkHeaderIC(mode)
	
	
	
{&
#39;;

	
if (
$context[&#39;user&#39;][&#39;is_guest&#39;])
	
	
echo &
#39;
	
	
	
	
document.cookie "upshrinkIC=" + (mode 0);&#39;;
	
else
	
	
echo &
#39;
	
	
	
	
smf_setThemeOption("collapse_header_ic"mode 0null"&#39;, $context[&#39;session_id&#39;], &#39;");&#39;;

	
echo &
#39;
	
	
	
	
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">
	
	
	
	

	
	
	
	
&
#39;,template_menu(),&#39;
	
	
	
	

	
	
	
	
<
div id="title">
        <
h1>The RPG Maker Resource Kit</h1>
      </
div>

    </
div></div>
	
	
	
	

	
	
	

	
	

	
	

	
	

	
	

	
	
	
<
div id="mainbody">
	
	
	
	

	
	
	
	
&
#39;;
	
	
	
	
	
	
	
 
if (
$context[&#39;user&#39;][&#39;is_admin&#39;])
{

	
if (empty(
$settings[&#39;theme_version_attention&#39;]))
{
	
	
if (
$forum_version != &#39;SMF 1.1.3&#39;)
	
echo &
#39;
	
	
<
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\&#39;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!)</uyou can disable this message in the admin panel:<br />
	
	
	
adminconfiguration current theme (above the save button)

	
	
	
</
div>
	
	
</
div>&#39;;
}
	
	
if (empty(
$txt[&#39;necessary_to_translate&#39;]))
	
echo &
#39;
	
	
<
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">&#39; , $language , &#39;</acronym></span>.php</b>&quot; in the &quot;<b>languages</b>&quot; directory ( <i>&#39;, $settings[&#39;theme_url&#39;], &#39;/languages/</i> ) of your RMRK-FIELDS theme.<br /><br />
	
	
	
Duplicate the &quot;<i>Modifications.english.php</i>&quotof the &quot;languages&quotdirectory of RMRK-FIELDSNextrename it according to the language for which you use the file
	
	
	
</
div>
	
	
</
div>&#39;;
}
	
	

	
	
	
//Search form - Hide from IE7 since it can&#39;t handle it displayed in this fluid / fixed div. IE6, miraculously, can! Albeit with a few CSS workarounds, though.
	
	
	
if (!
$context[&#39;browser&#39;][&#39;is_ie7&#39;]) {
	
echo&
#39;
	
	
	
	
	
	
	

 <
div class="searchbox">
  <
form action="&#39;, $scripturl, &#39;?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="&#39;, $txt[182], &#39;" style="margin-bottom: 4px;"  /><br />
	
	
	
	
	
	
	
<
a href="&#39;, $scripturl, &#39;?action=search;advanced">&#39;, $txt[&#39;smf298&#39;], &#39;</a>
	
	
	
	
	
	
	
<
input type="hidden" name="advanced" value="0" />&#39;;

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

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

	
echo &
#39;
	
	
	
	
	
</
form></div>&#39;;
	
	
	
	
	

	
	
	
	
	
}


echo &
#39;<div id="rmrk3_main">&#39;;
	

}

// The main content should go here.  A table is used because IE 6 just can&#39;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 &
#39;
	
	
	

	
	
</
div>
	

	
<
div id="rmrk3_sidebar">&#39;,sidebar(),&#39;
	
</
div>
	

	
	

	
	
	
<
div id="footer">
	
	
	
	
&
#39; ,theme_copyright(),&#39;<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 &#39;, $context[&#39;load_time&#39;],&#39; seconds.</div>
</div>  
	
&
#39;;

	
// The following will be used to let the user know that some AJAX process is running
	
echo &
#39;
	
<
div id="ajax_in_progress" style="display: none;&#39;, $context[&#39;browser&#39;][&#39;is_ie&#39;] && !$context[&#39;browser&#39;][&#39;is_ie7&#39;] ? &#39;position: absolute;&#39; : &#39;&#39;, &#39;"><img src="&#39;.$settings[&#39;images_url&#39;].&#39;/ajax.gif" alt="Loading" />&#39;, $txt[&#39;ajax_in_progress&#39;], &#39;</div></div></div>
</body></html>&#39;;
}

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

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

	
	
// Don&#39;t show a separator for the last one.
	
	
if (
$link_num != count($context[&#39;linktree&#39;]) - 1)
	
	
	
// Show the link, including a URL if it should have one.
	
	
	
echo 
$settings[&#39;linktree_link&#39;] && isset($tree[&#39;url&#39;]) ? &#39;<a href="&#39; . $tree[&#39;url&#39;] . &#39;" class="pathway">&#39; . $tree[&#39;name&#39;] . &#39;</a>&#39; : $tree[&#39;name&#39;] , &#39;<img src="&#39;.$settings[&#39;images_url&#39;].&#39;/arrow.png" style="margin: 0 12px 0 12px" alt="" />&#39;;
	
	
else
	
	
	
echo 
$tree[&#39;name&#39;];

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

	
}

	
echo &
#39;</span>&#39;;
}

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


	
echo &
#39;
	
<
ul>&#39;;
	

	
// If link set in admin interface show extra [home] button .
	
if (!empty(
$settings[&#39;pdx_forum_button&#39;]))
	
	
echo
	
&
#39;<li><a href="&#39;, $settings[&#39;pdx_forum_button&#39;], &#39;" class="homebutton">&#39; , $txt[103] , &#39;</a></li>&#39;;

	
if (!empty(
$settings[&#39;pdx_forum_button&#39;]))
	
	
{
	
	
	
// Show the extra [forum] button.
	
	
	
echo
	
&
#39;<li><a href="&#39;, $scripturl, &#39;">&#39; , $txt[&#39;pdx_forum_button_forum&#39;] , &#39;</a></li>&#39;;
	
	
}
	
else
	
	
{
	
	
	
// Show the default [home] button.
	
	
	
echo
	
&
#39;<li><a href="&#39;, $scripturl, &#39;">&#39; , $txt[103] , &#39;</a></li>&#39;;
	
	
}
	
	

	
// Show the [help] button.
	
echo
	
&
#39;<li><a href="&#39;, $scripturl, &#39;?action=help">&#39; , $txt[119] , &#39;</a></li>&#39;;

	
// How about the [search] button?
	
if (
$context[&#39;allow_search&#39;])
	
	
echo &
#39;<li><a href="&#39;, $scripturl, &#39;?action=search">&#39; , $txt[182] , &#39;</a></li>&#39;;

	
// Is the user allowed to administrate at all? ([admin])
	
if (
$context[&#39;allow_admin&#39;])
	
	
echo
	
&
#39;<li><a href="&#39;, $scripturl, &#39;?action=admin">&#39; , $txt[2] , &#39;</a></li>&#39;;

	
// Edit Profile... [profile]
	
if (
$context[&#39;allow_edit_profile&#39;])
	
	
echo &
#39;<li><a href="&#39;, $scripturl, &#39;?action=profile">&#39; , $txt[79] , &#39;</a></li>&#39;;

	
// Go to PM center... [pm]
	
if (
$context[&#39;user&#39;][&#39;is_logged&#39;] && $context[&#39;allow_pm&#39;])
	
	
echo &
#39;<li><a href="&#39;, $scripturl, &#39;?action=pm">&#39; , $txt[&#39;pm_short&#39;] , &#39; &#39;, $context[&#39;user&#39;][&#39;unread_messages&#39;] > 0 ? &#39;[<strong>&#39;. $context[&#39;user&#39;][&#39;unread_messages&#39;] . &#39;</strong>]&#39; : &#39;&#39; , &#39;</a></li>&#39;;


	
// The [calendar]!
	
if (
$context[&#39;allow_calendar&#39;])
	
	
echo &
#39;<li><a href="&#39;, $scripturl, &#39;?action=calendar">&#39; , $txt[&#39;calendar24&#39;] , &#39;</a></li>&#39;;

	
// the [member] list button
	
if (
$context[&#39;allow_memberlist&#39;])
	
	
echo &
#39;<li><a href="&#39;, $scripturl, &#39;?action=mlist">&#39; , $txt[331] , &#39;</a></li>&#39;;


	
// If the user is a guest, show [login] button.
	
if (
$context[&#39;user&#39;][&#39;is_guest&#39;])
	
	
echo &
#39;<li><a href="&#39;, $scripturl, &#39;?action=login">&#39; , $txt[34] , &#39;</a></li>&#39;;


	
// If the user is a guest, also show [register] button.
	
if (
$context[&#39;user&#39;][&#39;is_guest&#39;])
	
	
echo &
#39;<li><a href="&#39;, $scripturl, &#39;?action=register">&#39; , $txt[97] , &#39;</a></li>&#39;;


	
// Otherwise, they might want to [logout]...
	
if (
$context[&#39;user&#39;][&#39;is_logged&#39;])
	
	
echo &
#39;<li><a href="&#39;, $scripturl, &#39;?action=logout;sesc=&#39;, $context[&#39;session_id&#39;], &#39;">&#39; , $txt[108] , &#39;</a></li>&#39;;

	
echo &
#39;</ul>&#39;;


}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction = &#39;top&#39;, $force_reset = false, $custom_td = &#39;&#39;)
{
	
global 
$settings$buttons$context$txt$scripturl;

	
// Create the buttons...
	
foreach (
$button_strip as $key => $value)
	
{
	
	
if (isset(
$value[&#39;test&#39;]) && empty($context[$value[&#39;test&#39;]]))
	
	
{
	
	
	
unset(
$button_strip[$key]);
	
	
	
continue;
	
	
}
	
	
elseif (!isset(
$buttons[$key]) || $force_reset)
	
	
	
$buttons[$key] = &#39;<a href="&#39; . $value[&#39;url&#39;] . &#39;" &#39; .( isset($value[&#39;custom&#39;]) ? $value[&#39;custom&#39;] : &#39;&#39;) . &#39;>&#39; . $txt[$value[&#39;text&#39;]] . &#39;</a>&#39;;

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

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

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

// Generate a strip of buttons.
function template_button_strip_mill($button_strip$direction = &#39;top&#39;, $force_reset = false, $custom_td = &#39;&#39;)
{
	
global 
$settings$buttons$context$txt$scripturl;

	
// Create the buttons...
	
foreach (
$button_strip as $key => $value)
	
{
	
	
if (isset(
$value[&#39;test&#39;]) && empty($context[$value[&#39;test&#39;]]))
	
	
{
	
	
	
unset(
$button_strip[$key]);
	
	
	
continue;
	
	
}
	
	
elseif (!isset(
$buttons[$key]) || $force_reset)
	
	
	
$buttons[$key] = &#39;<a href="&#39; . $value[&#39;url&#39;] . &#39;" &#39; .( isset($value[&#39;custom&#39;]) ? $value[&#39;custom&#39;] : &#39;&#39;) . &#39;>&#39;. ($custom_td!=&#39;&#39; ? &#39;<&#39;.$custom_td.&#39;>&#39; : &#39;&#39;) . $txt[$value[&#39;text&#39;]] . ($custom_td!=&#39;&#39; ? &#39;</&#39;.$custom_td.&#39;>&#39; : &#39;&#39;) .&#39;</a>&#39;;

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

	
if (empty(
$button_strip))
	
	
return &
#39;&nbsp;&#39;;

	
echo 
implode(&#39; &nbsp;|&nbsp; &#39;, $button_strip);

}

function 
sidebar() {

global 
$settings$buttons$context$txt$scripturl;

	
if (
$context[&#39;user&#39;][&#39;is_logged&#39;]) {
	
echo &
#39;
	
<
div class="rightbox"><h2>&#39;, $txt[&#39;hello_member_ndt&#39;], &#39; <b>&#39;, $context[&#39;user&#39;][&#39;name&#39;], &#39;</h2>&#39;;
	
if (!empty(
$context[&#39;user&#39;][&#39;avatar&#39;]))
	
	
{
	
	
$context[&#39;user&#39;][&#39;avatar&#39;][&#39;image&#39;] = strtr($context[&#39;user&#39;][&#39;avatar&#39;][&#39;image&#39;], array("class=\"avatar\"" => "class=\"avatar_t\""));
	
	
echo &
#39;&#39;, $context[&#39;user&#39;][&#39;avatar&#39;][&#39;image&#39;], &#39;&#39;;
	
	
}
	
else
	
	
echo &
#39;<a href="&#39; . $scripturl . &#39;?action=profile;u=&#39;, $context[&#39;user&#39;][&#39;id&#39;], &#39;;sa=forumProfile"><img src="&#39; . $settings[&#39;images_url&#39;] . &#39;/noavatar.png" alt="missing avatar" alt="" width="65px" height="65px" /></a>&#39;;
	
	

	
	
echo &
#39;<br/>&#39;;
	
	
// Only tell them about their messages if they can read their messages!
	
	
if (
$context[&#39;allow_pm&#39;])
	
	
	
echo &
#39;<a href="&#39;, $scripturl, &#39;?action=pm">&#39;, $context[&#39;user&#39;][&#39;messages&#39;], &#39; &#39;, $context[&#39;user&#39;][&#39;messages&#39;] != 1 ? &#39;msgs&#39; : &#39;msg&#39;, &#39;</a>, &#39;, $context[&#39;user&#39;][&#39;unread_messages&#39;], &#39; &#39;, $context[&#39;user&#39;][&#39;unread_messages&#39;] == 1 ? &#39;new&#39; : &#39;new&#39;;
	
	

	
	

	
	
// Is the forum in maintenance mode?
	
	
if (
$context[&#39;in_maintenance&#39;] && $context[&#39;user&#39;][&#39;is_admin&#39;])
	
	
	
echo &
#39;<br /><b>&#39;, $txt[616], &#39;</b>&#39;;
	
	
	

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

	
	

	
	
// Show the total time logged in?
	
	
if (!empty(
$context[&#39;user&#39;][&#39;total_time_logged_in&#39;]))
	
	
{
	
	
	
echo &
#39;<br />
	
	
	
	
	
	
	
Time wasted: &#39;;

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

	
	
	
// Same with hours - only show it if it&#39;s above zero.
	
	
	
if (
$context[&#39;user&#39;][&#39;total_time_logged_in&#39;][&#39;hours&#39;] > 0)
	
	
	
	
echo &
#39;&#39;,$context[&#39;user&#39;][&#39;total_time_logged_in&#39;][&#39;hours&#39;],&#39; hrs &#39;;

	
	
	
// But, let&#39;s always show minutes - Time wasted here: 0 minutes ;).
	
	
	
echo &
#39;&#39;,$context[&#39;user&#39;][&#39;total_time_logged_in&#39;][&#39;minutes&#39;],&#39; mins&#39;;
	
	
}
	
	

	
	
echo &
#39;<br /><a href="&#39;, $scripturl, &#39;?action=unread">Show Unread Posts</a><br /><a href="&#39;, $scripturl, &#39;?action=unreadreplies">Show Unread Replies</a>
	
	
	
  
	
	
  &
#39;;
	
	

	
	

	

	
echo&
#39; </div>&#39;;
	
	

	
}
	
// Otherwise they&#39;re a guest - this time ask them to either register or login - lazy bums...
	
else
	
{
	
	
echo &
#39;
	
	
	
	
	
	
	
<
br /><div class="rightbox"><h2>Welcome</h2>
	
	
	
	
	
	
	
&
#39;, $txt[&#39;welcome_guest&#39;], &#39;<br />
	
	
	
	
	
	
	
<
script language="JavaScript" type="text/javascript" src="&#39;, $settings[&#39;default_theme_url&#39;], &#39;/sha1.js"></script>

	
	
	
	
	
	
	
<
br /><form action="&#39;, $scripturl, &#39;?action=login2" method="post" accept-charset="&#39;, $context[&#39;character_set&#39;], &#39;" style="margin: 4px 0;"&#39;, empty($context[&#39;disable_login_hashing&#39;]) ? &#39; onsubmit="hashLoginPassword(this, \&#39;&#39; . $context[&#39;session_id&#39;] . &#39;\&#39;);"&#39; : &#39;&#39;, &#39;>
	
	
	
	
	
	
	
	
	
<
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">&#39;, $txt[&#39;smf53&#39;], &#39;</option>
	
	
	
	
	
	
	
	
	
	
<
option value="1440">&#39;, $txt[&#39;smf47&#39;], &#39;</option>
	
	
	
	
	
	
	
	
	
	
<
option value="10080">&#39;, $txt[&#39;smf48&#39;], &#39;</option>
	
	
	
	
	
	
	
	
	
	
<
option value="43200">&#39;, $txt[&#39;smf49&#39;], &#39;</option>
	
	
	
	
	
	
	
	
	
	
<
option value="-1" selected="selected">&#39;, $txt[&#39;smf50&#39;], &#39;</option>
	
	
	
	
	
	
	
	
	
</
select>
	
	
	
	
	
	
	
	
	
<
input type="submit" value="&#39;, $txt[34], &#39;" />

	
	
	
	
	
	
	
	
	
<
input type="hidden" name="hash_passwrd" value="" />
	
	
	
	
	
</
form>&#39;, $txt[&#39;smf52&#39;], &#39;<br /><br /></div>&#39;;
	
}
	

	
	
	
	
	

 echo&
#39;
	
	
	
	
	
	
	
<
div class="rightbox"><h2>Statistics</h2>
	
	
	
	
	
	
	

	
	
	
	
	
	
	
<
b>&#39;, $context[&#39;common_stats&#39;][&#39;total_posts&#39;], &#39;</b> &#39;, $txt[95], &#39; &#39;, $txt[&#39;smf88&#39;], &#39; <b>&#39;, $context[&#39;common_stats&#39;][&#39;total_topics&#39;], &#39;</b> &#39;, $txt[64], &#39;- &#39;, $txt[525], &#39; <span style="white-space: nowrap;"><b>&#39;, $context[&#39;common_stats&#39;][&#39;total_members&#39;], &#39;</b> &#39;, $txt[19], &#39;</span> -
	
	
	
	
	
	
	
&
#39;, $txt[656], &#39;: <b> &#39;, $context[&#39;common_stats&#39;][&#39;latest_member&#39;][&#39;link&#39;], &#39;</b><br /><br />&#39;, $context[&#39;current_time&#39;],&#39;<br /></div>&#39;;
	
	

	
	
	
	
	
	
	

      echo&
#39;
	
	
	
	
	
	
	
<
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>&#39;;
	
	

	
	
	
	
	
	
	

	
	
	
	
	
	
	


}
	
//<h1><span>Affiliates</span></h1>
?>

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.
bringing sexy back

*
A Random Custom Title
Rep:
Level 96
wah
Lol you need the ghey "IE 6 sucks so you need to change it" stuff if you start from scratch.

****
Rep:
Level 88
wrath of winter
Making themes requires complicated code beyond what you're capable of understanding.

eek

Spoiler for:
<?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[&#39;linktree&#39;] 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 &#39;always&#39;, images from the default theme will be used.
	
	
if this is &#39;defaults&#39;, images from the default theme will only be used with default templates.
	
	
if this is &#39;never&#39; or isn&#39;t set at all, images from the default theme will not be used. */
	
$settings[&#39;use_default_images&#39;] = &#39;never&#39;;

	
/* What document type definition is being used? (for font size and other issues.)
	
	
&#39;xhtml&#39; for an XHTML 1.0 document type definition.
	
	
&#39;html&#39; for an HTML 4.01 document type definition. */
	
$settings[&#39;doctype&#39;] = &#39;xhtml&#39;;

	
/* The version this template/theme is for.
	
	
This should probably be the version of SMF it was created for. */
	
$settings[&#39;theme_version&#39;] = &#39;1.1&#39;;

	
/* Set a setting that tells the theme that it can render the tabs. */
	
$settings[&#39;use_tabs&#39;] = false;

	
/* Use plain buttons - as oppossed to text buttons? */
	
$settings[&#39;use_buttons&#39;] = false;
	
$settings[&#39;use_image_buttons&#39;] = true;
	
/* Show sticky and lock status seperate from topic icons? */
	
$settings[&#39;seperate_sticky_lock&#39;] = 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 &
#39;<!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"&#39;, $context[&#39;right_to_left&#39;] ? &#39; dir="rtl"&#39; : &#39;&#39;, &#39;>
	
<
head>
	
<
meta http-equiv="Content-Type" content="text/html; charset=&#39;, $context[&#39;character_set&#39;], &#39;" />
	
<
meta name="description" content="&#39;, $context[&#39;page_title&#39;], &#39;" />&#39;, empty($context[&#39;robot_no_index&#39;]) ? &#39;&#39; : &#39;
	
<
meta name="robots" content="noindex" />&#39;, &#39;
	
<
meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
	
<
script language="JavaScript" type="text/javascript" src="&#39;, $settings[&#39;default_theme_url&#39;], &#39;/script.js?fin11"></script>
	
<
script language="JavaScript" type="text/javascript">
	
	
var 
smf_theme_url "&#39;, $settings[&#39;theme_url&#39;], &#39;";
	
	
var 
smf_images_url "&#39;, $settings[&#39;images_url&#39;], &#39;";
	
	
var 
smf_scripturl "&#39;, $scripturl, &#39;";
	
	
var 
smf_iso_case_folding = &#39;, $context[&#39;server&#39;][&#39;iso_case_folding&#39;] ? &#39;true&#39; : &#39;false&#39;, &#39;;
	
	
var 
smf_charset "&#39;, $context[&#39;character_set&#39;], &#39;";
	
</
script>
	
<
title>&#39;, $context[&#39;page_title&#39;], &#39;</title>&#39;;

 
echo &#39;
	
<
link rel="stylesheet" type="text/css" href="&#39;, $settings[&#39;theme_url&#39;], &#39;/style.css?fin11" />
	
<
script language="javascript" type="text/javascript" src="&#39;, $settings[&#39;theme_url&#39;], &#39;/dropdown.js"></script>
	
<
link rel="stylesheet" type="text/css" href="&#39;, $settings[&#39;default_theme_url&#39;], &#39;/print.css?fin11" media="print" />&#39;;


	
/* Internet Explorer 4/5 and Opera 6 just don&#39;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[&#39;browser&#39;][&#39;needs_size_fix&#39;])
	
	
echo &
#39;
	
<
link rel="stylesheet" type="text/css" href="&#39;, $settings[&#39;default_theme_url&#39;], &#39;/fonts-compat.css" />&#39;;

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

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

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

	
// If we&#39;re in a board, or a topic for that matter, the index will be the board&#39;s index.
	
if (!empty(
$context[&#39;current_board&#39;]))
	
	
echo &
#39;
	
<
link rel="index" href="&#39; . $scripturl . &#39;?board=&#39; . $context[&#39;current_board&#39;] . &#39;.0" />&#39;;

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

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

	
<
script language="JavaScript" type="text/javascript">
	
	
var 
current_header = &#39;, empty($options[&#39;collapse_header&#39;]) ? &#39;false&#39; : &#39;true&#39;, &#39;;

	
	
function 
shrinkHeader(mode)
	
	
{&
#39;;

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

	
echo &
#39;
	
	
	
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>&#39;;

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

	
	
	
function 
shrinkHeaderIC(mode)
	
	
	
{&
#39;;

	
if (
$context[&#39;user&#39;][&#39;is_guest&#39;])
	
	
echo &
#39;
	
	
	
	
document.cookie "upshrinkIC=" + (mode 0);&#39;;
	
else
	
	
echo &
#39;
	
	
	
	
smf_setThemeOption("collapse_header_ic"mode 0null"&#39;, $context[&#39;session_id&#39;], &#39;");&#39;;

	
echo &
#39;
	
	
	
	
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">
	
	
	
	

	
	
	
	
&
#39;,template_menu(),&#39;
	
	
	
	

	
	
	
	
<
div id="title">
        <
h1>The RPG Maker Resource Kit</h1>
      </
div>

    </
div></div>
	
	
	
	

	
	
	

	
	

	
	

	
	

	
	

	
	
	
<
div id="mainbody">
	
	
	
	

	
	
	
	
&
#39;;
	
	
	
	
	
	
	
 
if (
$context[&#39;user&#39;][&#39;is_admin&#39;])
{

	
if (empty(
$settings[&#39;theme_version_attention&#39;]))
{
	
	
if (
$forum_version != &#39;SMF 1.1.3&#39;)
	
echo &
#39;
	
	
<
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\&#39;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!)</uyou can disable this message in the admin panel:<br />
	
	
	
adminconfiguration current theme (above the save button)

	
	
	
</
div>
	
	
</
div>&#39;;
}
	
	
if (empty(
$txt[&#39;necessary_to_translate&#39;]))
	
echo &
#39;
	
	
<
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">&#39; , $language , &#39;</acronym></span>.php</b>&quot; in the &quot;<b>languages</b>&quot; directory ( <i>&#39;, $settings[&#39;theme_url&#39;], &#39;/languages/</i> ) of your RMRK-FIELDS theme.<br /><br />
	
	
	
Duplicate the &quot;<i>Modifications.english.php</i>&quotof the &quot;languages&quotdirectory of RMRK-FIELDSNextrename it according to the language for which you use the file
	
	
	
</
div>
	
	
</
div>&#39;;
}
	
	

	
	
	
//Search form - Hide from IE7 since it can&#39;t handle it displayed in this fluid / fixed div. IE6, miraculously, can! Albeit with a few CSS workarounds, though.
	
	
	
if (!
$context[&#39;browser&#39;][&#39;is_ie7&#39;]) {
	
echo&
#39;
	
	
	
	
	
	
	

 <
div class="searchbox">
  <
form action="&#39;, $scripturl, &#39;?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="&#39;, $txt[182], &#39;" style="margin-bottom: 4px;"  /><br />
	
	
	
	
	
	
	
<
a href="&#39;, $scripturl, &#39;?action=search;advanced">&#39;, $txt[&#39;smf298&#39;], &#39;</a>
	
	
	
	
	
	
	
<
input type="hidden" name="advanced" value="0" />&#39;;

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

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

	
echo &
#39;
	
	
	
	
	
</
form></div>&#39;;
	
	
	
	
	

	
	
	
	
	
}


echo &
#39;<div id="rmrk3_main">&#39;;
	

}

// The main content should go here.  A table is used because IE 6 just can&#39;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 &
#39;
	
	
	

	
	
</
div>
	

	
<
div id="rmrk3_sidebar">&#39;,sidebar(),&#39;
	
</
div>
	

	
	

	
	
	
<
div id="footer">
	
	
	
	
&
#39; ,theme_copyright(),&#39;<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 &#39;, $context[&#39;load_time&#39;],&#39; seconds.</div>
</div>  
	
&
#39;;

	
// The following will be used to let the user know that some AJAX process is running
	
echo &
#39;
	
<
div id="ajax_in_progress" style="display: none;&#39;, $context[&#39;browser&#39;][&#39;is_ie&#39;] && !$context[&#39;browser&#39;][&#39;is_ie7&#39;] ? &#39;position: absolute;&#39; : &#39;&#39;, &#39;"><img src="&#39;.$settings[&#39;images_url&#39;].&#39;/ajax.gif" alt="Loading" />&#39;, $txt[&#39;ajax_in_progress&#39;], &#39;</div></div></div>
</body></html>&#39;;
}

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

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

	
	
// Don&#39;t show a separator for the last one.
	
	
if (
$link_num != count($context[&#39;linktree&#39;]) - 1)
	
	
	
// Show the link, including a URL if it should have one.
	
	
	
echo 
$settings[&#39;linktree_link&#39;] && isset($tree[&#39;url&#39;]) ? &#39;<a href="&#39; . $tree[&#39;url&#39;] . &#39;" class="pathway">&#39; . $tree[&#39;name&#39;] . &#39;</a>&#39; : $tree[&#39;name&#39;] , &#39;<img src="&#39;.$settings[&#39;images_url&#39;].&#39;/arrow.png" style="margin: 0 12px 0 12px" alt="" />&#39;;
	
	
else
	
	
	
echo 
$tree[&#39;name&#39;];

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

	
}

	
echo &
#39;</span>&#39;;
}

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


	
echo &
#39;
	
<
ul>&#39;;
	

	
// If link set in admin interface show extra [home] button .
	
if (!empty(
$settings[&#39;pdx_forum_button&#39;]))
	
	
echo
	
&
#39;<li><a href="&#39;, $settings[&#39;pdx_forum_button&#39;], &#39;" class="homebutton">&#39; , $txt[103] , &#39;</a></li>&#39;;

	
if (!empty(
$settings[&#39;pdx_forum_button&#39;]))
	
	
{
	
	
	
// Show the extra [forum] button.
	
	
	
echo
	
&
#39;<li><a href="&#39;, $scripturl, &#39;">&#39; , $txt[&#39;pdx_forum_button_forum&#39;] , &#39;</a></li>&#39;;
	
	
}
	
else
	
	
{
	
	
	
// Show the default [home] button.
	
	
	
echo
	
&
#39;<li><a href="&#39;, $scripturl, &#39;">&#39; , $txt[103] , &#39;</a></li>&#39;;
	
	
}
	
	

	
// Show the [help] button.
	
echo
	
&
#39;<li><a href="&#39;, $scripturl, &#39;?action=help">&#39; , $txt[119] , &#39;</a></li>&#39;;

	
// How about the [search] button?
	
if (
$context[&#39;allow_search&#39;])
	
	
echo &
#39;<li><a href="&#39;, $scripturl, &#39;?action=search">&#39; , $txt[182] , &#39;</a></li>&#39;;

	
// Is the user allowed to administrate at all? ([admin])
	
if (
$context[&#39;allow_admin&#39;])
	
	
echo
	
&
#39;<li><a href="&#39;, $scripturl, &#39;?action=admin">&#39; , $txt[2] , &#39;</a></li>&#39;;

	
// Edit Profile... [profile]
	
if (
$context[&#39;allow_edit_profile&#39;])
	
	
echo &
#39;<li><a href="&#39;, $scripturl, &#39;?action=profile">&#39; , $txt[79] , &#39;</a></li>&#39;;

	
// Go to PM center... [pm]
	
if (
$context[&#39;user&#39;][&#39;is_logged&#39;] && $context[&#39;allow_pm&#39;])
	
	
echo &
#39;<li><a href="&#39;, $scripturl, &#39;?action=pm">&#39; , $txt[&#39;pm_short&#39;] , &#39; &#39;, $context[&#39;user&#39;][&#39;unread_messages&#39;] > 0 ? &#39;[<strong>&#39;. $context[&#39;user&#39;][&#39;unread_messages&#39;] . &#39;</strong>]&#39; : &#39;&#39; , &#39;</a></li>&#39;;


	
// The [calendar]!
	
if (
$context[&#39;allow_calendar&#39;])
	
	
echo &
#39;<li><a href="&#39;, $scripturl, &#39;?action=calendar">&#39; , $txt[&#39;calendar24&#39;] , &#39;</a></li>&#39;;

	
// the [member] list button
	
if (
$context[&#39;allow_memberlist&#39;])
	
	
echo &
#39;<li><a href="&#39;, $scripturl, &#39;?action=mlist">&#39; , $txt[331] , &#39;</a></li>&#39;;


	
// If the user is a guest, show [login] button.
	
if (
$context[&#39;user&#39;][&#39;is_guest&#39;])
	
	
echo &
#39;<li><a href="&#39;, $scripturl, &#39;?action=login">&#39; , $txt[34] , &#39;</a></li>&#39;;


	
// If the user is a guest, also show [register] button.
	
if (
$context[&#39;user&#39;][&#39;is_guest&#39;])
	
	
echo &
#39;<li><a href="&#39;, $scripturl, &#39;?action=register">&#39; , $txt[97] , &#39;</a></li>&#39;;


	
// Otherwise, they might want to [logout]...
	
if (
$context[&#39;user&#39;][&#39;is_logged&#39;])
	
	
echo &
#39;<li><a href="&#39;, $scripturl, &#39;?action=logout;sesc=&#39;, $context[&#39;session_id&#39;], &#39;">&#39; , $txt[108] , &#39;</a></li>&#39;;

	
echo &
#39;</ul>&#39;;


}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction = &#39;top&#39;, $force_reset = false, $custom_td = &#39;&#39;)
{
	
global 
$settings$buttons$context$txt$scripturl;

	
// Create the buttons...
	
foreach (
$button_strip as $key => $value)
	
{
	
	
if (isset(
$value[&#39;test&#39;]) && empty($context[$value[&#39;test&#39;]]))
	
	
{
	
	
	
unset(
$button_strip[$key]);
	
	
	
continue;
	
	
}
	
	
elseif (!isset(
$buttons[$key]) || $force_reset)
	
	
	
$buttons[$key] = &#39;<a href="&#39; . $value[&#39;url&#39;] . &#39;" &#39; .( isset($value[&#39;custom&#39;]) ? $value[&#39;custom&#39;] : &#39;&#39;) . &#39;>&#39; . $txt[$value[&#39;text&#39;]] . &#39;</a>&#39;;

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

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

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

// Generate a strip of buttons.
function template_button_strip_mill($button_strip$direction = &#39;top&#39;, $force_reset = false, $custom_td = &#39;&#39;)
{
	
global 
$settings$buttons$context$txt$scripturl;

	
// Create the buttons...
	
foreach (
$button_strip as $key => $value)
	
{
	
	
if (isset(
$value[&#39;test&#39;]) && empty($context[$value[&#39;test&#39;]]))
	
	
{
	
	
	
unset(
$button_strip[$key]);
	
	
	
continue;
	
	
}
	
	
elseif (!isset(
$buttons[$key]) || $force_reset)
	
	
	
$buttons[$key] = &#39;<a href="&#39; . $value[&#39;url&#39;] . &#39;" &#39; .( isset($value[&#39;custom&#39;]) ? $value[&#39;custom&#39;] : &#39;&#39;) . &#39;>&#39;. ($custom_td!=&#39;&#39; ? &#39;<&#39;.$custom_td.&#39;>&#39; : &#39;&#39;) . $txt[$value[&#39;text&#39;]] . ($custom_td!=&#39;&#39; ? &#39;</&#39;.$custom_td.&#39;>&#39; : &#39;&#39;) .&#39;</a>&#39;;

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

	
if (empty(
$button_strip))
	
	
return &
#39;&nbsp;&#39;;

	
echo 
implode(&#39; &nbsp;|&nbsp; &#39;, $button_strip);

}

function 
sidebar() {

global 
$settings$buttons$context$txt$scripturl;

	
if (
$context[&#39;user&#39;][&#39;is_logged&#39;]) {
	
echo &
#39;
	
<
div class="rightbox"><h2>&#39;, $txt[&#39;hello_member_ndt&#39;], &#39; <b>&#39;, $context[&#39;user&#39;][&#39;name&#39;], &#39;</h2>&#39;;
	
if (!empty(
$context[&#39;user&#39;][&#39;avatar&#39;]))
	
	
{
	
	
$context[&#39;user&#39;][&#39;avatar&#39;][&#39;image&#39;] = strtr($context[&#39;user&#39;][&#39;avatar&#39;][&#39;image&#39;], array("class=\"avatar\"" => "class=\"avatar_t\""));
	
	
echo &
#39;&#39;, $context[&#39;user&#39;][&#39;avatar&#39;][&#39;image&#39;], &#39;&#39;;
	
	
}
	
else
	
	
echo &
#39;<a href="&#39; . $scripturl . &#39;?action=profile;u=&#39;, $context[&#39;user&#39;][&#39;id&#39;], &#39;;sa=forumProfile"><img src="&#39; . $settings[&#39;images_url&#39;] . &#39;/noavatar.png" alt="missing avatar" alt="" width="65px" height="65px" /></a>&#39;;
	
	

	
	
echo &
#39;<br/>&#39;;
	
	
// Only tell them about their messages if they can read their messages!
	
	
if (
$context[&#39;allow_pm&#39;])
	
	
	
echo &
#39;<a href="&#39;, $scripturl, &#39;?action=pm">&#39;, $context[&#39;user&#39;][&#39;messages&#39;], &#39; &#39;, $context[&#39;user&#39;][&#39;messages&#39;] != 1 ? &#39;msgs&#39; : &#39;msg&#39;, &#39;</a>, &#39;, $context[&#39;user&#39;][&#39;unread_messages&#39;], &#39; &#39;, $context[&#39;user&#39;][&#39;unread_messages&#39;] == 1 ? &#39;new&#39; : &#39;new&#39;;
	
	

	
	

	
	
// Is the forum in maintenance mode?
	
	
if (
$context[&#39;in_maintenance&#39;] && $context[&#39;user&#39;][&#39;is_admin&#39;])
	
	
	
echo &
#39;<br /><b>&#39;, $txt[616], &#39;</b>&#39;;
	
	
	

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

	
	

	
	
// Show the total time logged in?
	
	
if (!empty(
$context[&#39;user&#39;][&#39;total_time_logged_in&#39;]))
	
	
{
	
	
	
echo &
#39;<br />
	
	
	
	
	
	
	
Time wasted: &#39;;

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

	
	
	
// Same with hours - only show it if it&#39;s above zero.
	
	
	
if (
$context[&#39;user&#39;][&#39;total_time_logged_in&#39;][&#39;hours&#39;] > 0)
	
	
	
	
echo &
#39;&#39;,$context[&#39;user&#39;][&#39;total_time_logged_in&#39;][&#39;hours&#39;],&#39; hrs &#39;;

	
	
	
// But, let&#39;s always show minutes - Time wasted here: 0 minutes ;).
	
	
	
echo &
#39;&#39;,$context[&#39;user&#39;][&#39;total_time_logged_in&#39;][&#39;minutes&#39;],&#39; mins&#39;;
	
	
}
	
	

	
	
echo &
#39;<br /><a href="&#39;, $scripturl, &#39;?action=unread">Show Unread Posts</a><br /><a href="&#39;, $scripturl, &#39;?action=unreadreplies">Show Unread Replies</a>
	
	
	
  
	
	
  &
#39;;
	
	

	
	

	

	
echo&
#39; </div>&#39;;
	
	

	
}
	
// Otherwise they&#39;re a guest - this time ask them to either register or login - lazy bums...
	
else
	
{
	
	
echo &
#39;
	
	
	
	
	
	
	
<
br /><div class="rightbox"><h2>Welcome</h2>
	
	
	
	
	
	
	
&
#39;, $txt[&#39;welcome_guest&#39;], &#39;<br />
	
	
	
	
	
	
	
<
script language="JavaScript" type="text/javascript" src="&#39;, $settings[&#39;default_theme_url&#39;], &#39;/sha1.js"></script>

	
	
	
	
	
	
	
<
br /><form action="&#39;, $scripturl, &#39;?action=login2" method="post" accept-charset="&#39;, $context[&#39;character_set&#39;], &#39;" style="margin: 4px 0;"&#39;, empty($context[&#39;disable_login_hashing&#39;]) ? &#39; onsubmit="hashLoginPassword(this, \&#39;&#39; . $context[&#39;session_id&#39;] . &#39;\&#39;);"&#39; : &#39;&#39;, &#39;>
	
	
	
	
	
	
	
	
	
<
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">&#39;, $txt[&#39;smf53&#39;], &#39;</option>
	
	
	
	
	
	
	
	
	
	
<
option value="1440">&#39;, $txt[&#39;smf47&#39;], &#39;</option>
	
	
	
	
	
	
	
	
	
	
<
option value="10080">&#39;, $txt[&#39;smf48&#39;], &#39;</option>
	
	
	
	
	
	
	
	
	
	
<
option value="43200">&#39;, $txt[&#39;smf49&#39;], &#39;</option>
	
	
	
	
	
	
	
	
	
	
<
option value="-1" selected="selected">&#39;, $txt[&#39;smf50&#39;], &#39;</option>
	
	
	
	
	
	
	
	
	
</
select>
	
	
	
	
	
	
	
	
	
<
input type="submit" value="&#39;, $txt[34], &#39;" />

	
	
	
	
	
	
	
	
	
<
input type="hidden" name="hash_passwrd" value="" />
	
	
	
	
	
</
form>&#39;, $txt[&#39;smf52&#39;], &#39;<br /><br /></div>&#39;;
	
}
	

	
	
	
	
	

 echo&
#39;
	
	
	
	
	
	
	
<
div class="rightbox"><h2>Statistics</h2>
	
	
	
	
	
	
	

	
	
	
	
	
	
	
<
b>&#39;, $context[&#39;common_stats&#39;][&#39;total_posts&#39;], &#39;</b> &#39;, $txt[95], &#39; &#39;, $txt[&#39;smf88&#39;], &#39; <b>&#39;, $context[&#39;common_stats&#39;][&#39;total_topics&#39;], &#39;</b> &#39;, $txt[64], &#39;- &#39;, $txt[525], &#39; <span style="white-space: nowrap;"><b>&#39;, $context[&#39;common_stats&#39;][&#39;total_members&#39;], &#39;</b> &#39;, $txt[19], &#39;</span> -
	
	
	
	
	
	
	
&
#39;, $txt[656], &#39;: <b> &#39;, $context[&#39;common_stats&#39;][&#39;latest_member&#39;][&#39;link&#39;], &#39;</b><br /><br />&#39;, $context[&#39;current_time&#39;],&#39;<br /></div>&#39;;
	
	

	
	
	
	
	
	
	

      echo&
#39;
	
	
	
	
	
	
	
<
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>&#39;;
	
	

	
	
	
	
	
	
	

	
	
	
	
	
	
	


}
	
//<h1><span>Affiliates</span></h1>
?>

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

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
Making themes requires complicated code beyond what you're capable of understanding.

rude?
Watch out for: HaloOfTheSun

****
Rep:
Level 88
wrath of winter
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

*
Rep:
Level 102
2014 Biggest Narcissist Award2014 Biggest Forum Potato2014 Best Non-RM Creator2013 Best IRC Chatterbox2013 Best Game Creator (Non-RM)Participant - GIAW 112012 Most Successful Troll2012 Funniest Member2012 Best Use Of Avatar and Signature space2012 Best IRC ChatterboxSecret Santa 2012 ParticipantProject of the Month winner for November 2009For being a noted contributor to the RMRK Wiki2010 Most Successful Troll2010 Biggest Forum Couch Potato2010 Best IRC Chatterbox
Making themes requires complicated code beyond what you're capable of understanding.

rude?

Thanks :D

********
moew
Rep:
Level 91
Queen Princess
2013 Most Missed Member2012 Most Missed Member;o hee hee <3For being a noted contributor to the RMRK Wiki
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:

****
Rep:
Level 88
wrath of winter
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

*
A Random Custom Title
Rep:
Level 96
wah
LOL NICE ONE SKANKUH

********
moew
Rep:
Level 91
Queen Princess
2013 Most Missed Member2012 Most Missed Member;o hee hee <3For being a noted contributor to the RMRK Wiki
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:

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
k, was your question answered?


btw hawt theme Ferenn
Watch out for: HaloOfTheSun

****
Rep:
Level 88
wrath of winter
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