Theme Layer #1: Opal Unleashed

Apr 13, 2008 18:11

Note: This is for Paid/Perm users only! Sorry Basic/Plus users. =(

I've been flirting with the idea of offering up a theme layer for Paid/Perm users to download and use for a while now. People seem to genuinely like what I've been doing with the S2 style Opal (Libra OSWD) over the past few years and I've finally decided to give them something completely different, yet still Opal.

So here it is, Opal Unleashed. A distinct version of a style most people overlook.

Bug-Fixes
[7/8/2008] changed Page::lay_print_header to make it easy to customize the 'tags page' view ( code slightly modified from an entry in s2flexisquares), edited Entry::print_metadata so things don't get funky if you don't have a mood icon displayed.



Gone is the huge table that restricts the sidebar location, heck, gone is the concept of a single 'sidebar'. Instead, I give you 2. But they aren't where you'd normally find them. The 2 'sidebars' are above and below the main journal content.

I've tweaked the Opal Source Code and added lots of extra CSS classes, throughout. That makes Opal Unleashed much more customizable than its predecessor. I've included comments in the Stylesheet to explain what controls what. 'Sidebar' boxes are customized via Page::lay_print_sidebar (for the top 'bar') and MyClass::print_sidebar_bottom (for the bottom 'bar').

With a little CSS knowledge and a little patience with S2, the possibilities are endless.

READ ME:
I've done the majority of the hard stuff already: the coding. While I do realize that people may want things placed differently than I offer, I can't possibly re-code for everyone's desires.

If you'd like things to display differently and CSS doesn't help, I suggest getting your hands dirty and attempting to modify the code a bit. Always keep an original copy, change one thing at a time, and I know you'll succeed with a little patience. That's how I learned, trial and error. You probably won't get it right on your first, second, or even third try. But if you stick with it, you'll find that coding is a very powerful thing to know. You can practically do anything you want with any style you want.

If you try coding and get really stuck, feel free to ask for my help either here or in opal_help (I generally answer most of the questions over there these days anyway). However, I can't promise to be prompt (I do have a life outside of LJ, however boring it may be). I'll help when I am able, though. I secretly like it.

DISCLAIMER:
There are a lot of different web browsers out there. I only have access to a few. All browsers are not created equally, they all display/render things differently. It is impossible to make your journal look good in all browsers, so you have to pick a target audience. For instance, since I code primarily for my own journal, I make sure it looks good in my browser of choice: Firefox. After all, I am the one who will view it the most. I do realize that a good chunk of people out there use Internet Explorer, so I also try to make my journal look decent in IE as well, using hacks. But it is optimized for Firefox and the resolution of my computers.

I have to reiterate that I can't possibly code for all browsers, therefore the only browsers currently supported for Opal Unleashed are:
  • Firefox 2
  • IE7
  • Safari (for Windows, I don't own a Mac but it probably will work on one as well)
  • Opera
Those are the only browsers for which I will attempt to answer questions and fix problems. Although, I can't guarantee that I'll be able to fix every problem. I'm only human. *shrugs*

It is important to note that I do not have access to a computer running IE6 or less and therefore can't possibly code for it. There are a lot of quirks in older versions of IE that were addressed with the release of IE7 (and even more will be taken into account with IE8, or so I hear).

If you run a different browser or older version of the browsers listed above, I suggest finding browser-specific hacks using our good friend Google. I hear it's good at finding things. =P

INSTRUCTIONS:
  1. Download the template here. It's a text file and should be kept around in case the code gets messed up, that way you'll have the original as a fall-back. As always, if the file isn't there, email me and I'll re-upload it.
  2. Make sure you're working with the S2 style system. If not, you can change to it here.
  3. i. Go here
    ii. Scroll down till you see "Create Layout-Specific Layer" and fill it in as so:

    Then hit 'create'

    iii. You'll now see the new layer at the top of Your Layers:

    Click the 'Edit' Button

    iv. That opens this:

       a. Add the contents of the Opal Unleashed.txt file
       b. Hit the 'Save & Compile' button
       c. Edit the CSS and/or code to your liking, then hit the 'Save & Compile' button again. If you get an error, look at the part of the code it indicates and see where you made a mistake.
  4. After things are customized to your liking, implement the layout. There are a couple ways to do this, but the following is the method I use:
       a. Go to Your Styles.
       b. Create a New Style by typing a name into the box at the bottom of the page and hit 'Create'
       c. That opens this dialogue:

    d. The Theme and User options won't appear till you chose Opal (Libra OSWD) for Layout. Fill the rest in as indicated (note: your Theme Layer and User Layer will have different #'s than mine) and hit the 'Save Changes' button.
       e. Go back to Your Styles, click on the 'Use' button next to the style you just created.
WARNING:
Do not try to use my current CSS to make an exact copy (or even a very close copy) of my layout! I want my layout to be unique, even if I offer the base code for others to use. I have tweaked my code beyond what I offer in Opal Unleashed and, while I'm all about helping others, I will not help you make a copy of my journal (nor anyone else's journal, for that matter). Believe it or not, I've run into problems with this in the past...

So, there you have it. A new Opal template. Go forth, customize, and, most importantly, enjoy!

Cheers!
~ Julz

opal, layout template, tutorials, paid/perm accounts

Previous post Next post
Up