Lining everything up at the top plus lightbox - all solved!

Jun 25, 2008 21:30

Hi, I'm a paid user, using Firefox 2.0 and Expressive. Like everyone else, I'm impressed by how huge a help this community is, and like everyone else, I've been able to do 90% of what I wanted through looking at the tags alone. Thank you!

My outstanding issues: I'm making my journal simulate a website. (The layout of this website, which is also a ( Read more... )

sidebar:headers, entries:sticky post, entries:header, sidebar:borders, misc:extra content, page:skiplinks

Leave a comment

av8rmike June 25 2008, 22:14:27 UTC
1. In your sticky post code, remove the
paragraph tag and all of the
line breaks.

2, 3. You want to remove titles on all entry views? Or just the three entries you're using for information?

4. could be a little complicated too. I have to run out in a few minutes, but I'll take a closer look when I get back.

Reply

peacockdress June 26 2008, 12:43:27 UTC
1. Thank you, that moves it up in line with the first link in the sidebar. Much better, I suspect this will leave everything in line when 4. is done!

2, 3. No not all of them, just the ones I'm using for information - the destinations of the first ten links down the side, to "Sewing advice" inclusive. As I say, they're all dated pre-1985, if that helps.

4. I had a feeling I was being awkward!

Many thanks!

Reply

av8rmike June 26 2008, 18:45:23 UTC
3. You can change the CSS to this:
.stream-header .prevnext,
.lj-view-entry .prevnext {display: none;}
to hide skiplinks on EntryPages and RecentPages, but it doesn't look like there's any way to hide them only on "back-dated" posts. Even the entries themselves know "know" if their date is out of order, which is why we have to use the date checking method.

4. From the layout layer source, copy and paste the function called print_module_links(string title) into your theme layer. Find this section near the top:
if (not $links[0].is_heading) {
open_module("typelist", $title, "");
$box_open = true;
}and add the highlighted part:
if (not $links[0].is_heading) {
open_module("typelist-first", $title, "");
$box_open = true;
}Save and compile, then add this line to the CSS:
.typelist-first-widget .widget-header {display: none;}

The solution for #2 is kind of complicated, but if you can give me the ID number of your layer, I can tell you what to modify in the print_entry() function.

Reply

peacockdress June 26 2008, 19:13:27 UTC
3. No problem, thank you, works a treat!

4. Beautiful, thank you!

2. It's 12065319.

Reply

av8rmike June 26 2008, 20:30:21 UTC
As I suspected, it looks like you just used the example I gave from a previous entry about hiding dates. I think that it will ultimately be easier for me to give you directions starting from a clean function rather than what you have. You can always paste a copy of your existing function into a Notepad or other text document in case something goes wrong.

So, remove the existing print_entry() function from your layer, then copy in the one from the layout source. Find this section:
"""

""";As before, add in the highlighted part:
"""

""";

var Date checkdate = new Date;
$checkdate.year = 1985;
$checkdate.month = 1;
$checkdate.day = 1;
if ($checkdate->compare($e.time) > 0){
"""\n

""";Then find this section below it:
"""


  • $datetime


and add the highlighted part:
"""
... )

Reply

peacockdress June 28 2008, 19:56:02 UTC
That's right, I just used what you'd advised before. Thank you very much indeed, it works perfectly! Wonderful stuff!

Reply

av8rmike June 28 2008, 20:48:00 UTC
You're welcome; I'm glad to hear it went smoothly. But why did you remove the picture of the purple dress? That was beautiful!

Reply

peacockdress June 28 2008, 22:26:08 UTC
The purple dress? You mean this one?


... )

Reply

peacockdress June 28 2008, 22:28:59 UTC
Actually, you made me think of another question - I guess I'll post again and tag it separately.

Reply

peacockdress June 28 2008, 22:37:55 UTC
No, wait, I'll just edit this question into this post and add a tag.

One of my other websites has a template that came with a "lightbox" widget that makes images expand to a fancy full size view whilst the rest of the screen becomes shaded. Can such a thing be added to an lj, and if so, how?

Reply

av8rmike June 29 2008, 03:09:35 UTC
Nono, I meant the Black Pearl pirate dress.

About the lightbox thing, they all use JavaScript in some way, and LiveJournal doesn't allow its use in any entries or styles because of potential security issues.

Reply

peacockdress June 29 2008, 19:05:56 UTC
OK, thank you!

The Black Pearl dress is right there on the "home page"! More here.

Reply


Leave a comment

Up