News:

Wondering if this will always be free?  See why free is better.

Main Menu

RMRK2 - DARK

Started by Roph, December 13, 2006, 04:00:20 PM

Previous topic - Next topic

Roph

Link to the theme


This is a modified version of Panic's awesome ORANGE-LT theme. I created this for a forum I run and felt like sharing it. I asked for permission from Panic and he said yes, so here it is.

A live demo can be seen Here. Note this is the version I work on, so sometimes it may differ slightly from what you download. It is also the enhanced version.

A few changes (applicable to both):

Default avatar height and size (shown on the welcome area) is 105x150px. You can easily modify this (scroll down a bit)

The forum is no longer fixed width, it'll stretch to fill (most of) your screen.

Normal / Enhanced?

On the normal version, your postbits will look like the default SMF ones:



Whereas on the Enhanced version, your postbits should look like this:



The enhanced version of this theme implements my custom postbit modification. This is slightly experimental and so might not work as expected on all forums (and might not like some certain mods), so I've released it as a seperate version. If you post here with any problems on the enhanced version, I'll try to help you get it working.




Thanks again to panic for the awesome orange-lt base.




Changing Avatar size / overall forum width

Both of these are defined in style.css, so go open that up.

To change Overall Forum Width:

Find

#wrapper {
   margin: 0 auto;
   position: relative;
   width: 95%;


Edit the width attribute to suit your needs. You can use a percentage like I have, "auto" to make it take up as much space as possible, or put in an exact value (e.g. 850px).

To change Avatar size displayed on the welcome area:

Find

.avatar_t
{
   height: 150px;
   width: 105px;
   border: none;
}


And edit the height & width attributes to suit your needs. To not stretch avatars, simply delete the height and width lines.

xoria

#1
First of all thanks for your help :).

I would like to put on a header image on my forum unfortunately  I don't know how to proceed, I searched for in the administration center but without success.

I see on the Additional Screenshots that you can use the spoiler, which mod (and version) do you install ?

Thanks in advance ;).

Roph

#2
From a PM I sent on how I showed the custom image on my own forum:




For now, you could put your own image there manually. This isn't too hard. Go to your admin panel, and then on Themes and Layout, and then to Modify Themes. Under RMRK2-Dark, click Browse the templates and files in this theme, and then find index.template.php.

The bit you can change is in the 3rd box (the one titled "Beginning on line 60:")

About 2/3 of the way down in this box, find "<div id="header">';" delete everything in between that and "// Show a random news item? (or you could pick one from news_lines...)", and replace it with this:

Quoteif (empty($settings['header_logo']))
               echo '
               <div id="logo-bg"><a href="'.$scripturl.'" title=""><img src="HTTP://YOUR HEADER IMAGE URL HERE"></a></div>';
            if (!empty($settings['header_logo']))
            echo '<div id="logo"><a href="'.$scripturl.'" title=""></a></div>';

So for example, here is the code from the index.template.php on my own forum:

Quote<div id="header">';
            if (empty($settings['header_logo']))
               echo '
               <div id="logo-bg"><a href="'.$scripturl.'" title=""><img src="http://rmrk.net/i/crankeye.png"></a></div>';
            if (!empty($settings['header_logo']))
            echo '<div id="logo"><a href="'.$scripturl.'" title=""></a></div>';

            // Show a random news item? (or you could pick one from news_lines...)




[edit] For the spoiler tags, I'm using this mod: http://mods.simplemachines.org/index.php?mod=195

xoria

Thank you very much for your help  ;).

Roph

Update: added a few extra nice little touches, fixed up for SMF 1.1.1, and also added a new "enhanced" version; see the first post for info.

daranp

#5
Hi,

I am in the process of updating from phpBB and find that this theme is pretty close to my previous look. However, I have run into a couple of stumbling blocks:

1, I have included my own version of header.png (and removed the home page link). Within this header I would like to make two buttons that link to two different areas of the site. I'm no coder but am relatively familiar with dreamweaver and fireworks and am able to create the images and code etc. I'm just unsure where to insert?

2, How would I go about getting the news to be displayed on the same line as the smf links but on the right of the sreen?

My site for reference http://www.paraspace.co.uk/psrpsforum

Thanks in advance

maxanto

Greetings and wonderful Theme! I love it but I have a question. Adding a button to the main menu seems not typical to this post: http://www.simplemachines.org/community/index.php?topic=63203.0 I cant seem to make it work using that documentation. I have added this code to the index.template.php:
// The [gallery]!
   if ($context['allow_gallery'])
      echo '<li><a href="', $scripturl, '?action=gallery">' , $txt['gallery28'] , '</a></li>';
but it doesnt seem to be enough to add the button. Where does the $txt['gallery28'] get hardcoded to have this show up? and is there anything else I can do to make this work. I also notice that the code for the calendar also doesnt work and it is soft coded the same way, I assume it is the same problem? Here is the code for the calendar:
// The [calendar]!
   if ($context['allow_calendar'])
      echo '<li><a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] ,

'</a></li>';

Any help would be extremly appriciated!

Snape

Quote from: maxanto on January 23, 2007, 10:40:29 AM
Greetings and wonderful Theme! I love it but I have a question. Adding a button to the main menu seems not typical to this post: http://www.simplemachines.org/community/index.php?topic=63203.0 I cant seem to make it work using that documentation. I have added this code to the index.template.php:
// The [gallery]!
   if ($context['allow_gallery'])
      echo '<li><a href="', $scripturl, '?action=gallery">' , $txt['gallery28'] , '</a></li>';
but it doesnt seem to be enough to add the button. Where does the $txt['gallery28'] get hardcoded to have this show up? and is there anything else I can do to make this work. I also notice that the code for the calendar also doesnt work and it is soft coded the same way, I assume it is the same problem? Here is the code for the calendar:
// The [calendar]!
   if ($context['allow_calendar'])
      echo '<li><a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] ,

'</a></li>';

Any help would be extremly appriciated!
$txt tags are typically stored in the Themes/<Theme_name>/languages/index.<language>.php file.  If the theme has its own index.<language>.php, you may need to copy the missing entries from /Themes/default/languages/index.<language>.php.

maxanto

ok I got that done but the links in the menu are still not showing up.... =(

maxanto

ah nm I figured it out... thanks for the help, once i added the code for the gallery into the index.english.php for the gallery I just had to use    

// Show the [gallery] button.
if ($context['user']['is_logged'])

and it worked great. Wow I can learn!

Therush

my buttons wont show up, start new topic, modify , i get this error

Attention of RMRK2-DARK theme:

You have to create "Modifications.english-utf8.php" in the "languages" directory ( hxxp:mmomonster.com/Themes/rmrk2dark03/languages/ [nonactive] ) of your RMRK2-DARK theme.

Duplicate the "Modifications.english.php" of the "languages" directory of RMRK2-DARK. Next, rename it according to the language for which you use the file.

what am i supposed to do?

Advertisement: