2025-10-23
09:20am
Site restoration
Site has been restored 2025-09-05 from the 2014 backup. Beware not all links are working yet. You may also view my GitHub for source code.
RT Updates
RaidTracker version 3.02.1 security update is ready. Feel free to download today
RaidTracker 2
RT2 is no longer supported. Upgrade to RT 3 today!

Styling RaidTracker

Click on the tab below for the version you are interested in styling for
Version 4Version 3Version 2Version 1

Creating styles

RaidTracker2 can be easy to style. The key to styling your RaidTracker theme is to have everything you need in one location. From where you install RaidTracker, your styles must be in their own directory under /style. Example: If you create a new theme called 'mystyle', the files would be kept under /style/mystyle This will be referred to as your 'style home' below.

What can be kept in your style home? Images, files, javascript, and HTML/CSS/PHP files. However, there are 2 files that are mandatory in order for your style to work. template.php is a must, or else your style will refuse to load. You will also need a file called rt-style.css (We'll get on to other CSS sheets you'll need later)

template.php

This file is a must. Without this file, RT will not use your style at all. This file controls what is shown from RaidTracker to the browser, and in what order. template.php has access to the constants of RT which is usually accessed similar to the following: <?php echo rtw_main;?> Here are the constants:

These constants can appear wherever you want them to appear. Some of these constants are not always defined (like rtw_message). It is always good to check if they are defined (otherwise, the constant name will appear instead, and look awkward). The easiest way is to use something like this:
<?php if(defined(rtw_message)) echo rtw_message; ?>

All of your content will be contained within a body tag, so unless you have any javascript that requires body onLoad or be in the head segment, there shouldn't be any problems.

Stylesheets

RaidTracker's styling comes in the form of stylesheets. The main stylesheet used is a file called rt-style.css. Supplemental sheets, if used, are called rt-style-hh.css (for portable devices), rt-style-ie6.css (for IE6 support), and rt-style-ie7.css (for IE7 users). These additional sheets should only be used to make changes to the original sheet. You may examine the sheet in default to see how the style looks.

One thing to note: tags such as #top, #main, #leftside, etc, are actually defined by the template.php file, and not by RT itself

Using styles

You may set styles at any time in the Administration menu to the stylename. Once submitted, you may have to hit the refresh button, or select any menu option to see it in action.

If you wish to preview or test a style out, you may do so by adding "?style=mystyle" or "&style=mystyle" at the end of the URL. As a FYI, some pages may not work in this manner such as submitting a form or updating status. Most pages, such as viewing an event (with url ending in "?raidid=xx", will work. The "&style=mystyle" allows you to test the style on a one-time basis. When you change views, RT will default back to your default style.