[personal profile] nimueth posting in [community profile] style_system
Greetings~

I'm not quite sure if this is the right community for this kind of question, but I'm not really sure where else I could ask.

I am using a LJ imported mixit based layout, specifically Your Biggest Flan by [livejournal.com profile] thefulcrum. The layout itself looks exactly the way I want it, so I don't need help on that front. My problem is that for some reason the link to "memories" (which I renamed to "log files") appears twice on the navbar. I looked around DW, but nobody seems to have ever had this same problem before.

Does anyone know what's causing it? Is there a way to remove one of them? I tried leaving it blank, because I'm not all that interested in having the link to my memories in the navbar, and while that removes both the original and the double, it leaves a wider gap between "tags" and "personal file" (profile) and it's really unaesthetic. While we're at it, is there a way to remove "tags" as well? I don't really need it or want it, since the tags are displayed on the sidebar.

I'm not new to importing layouts and I have used a variety of LJ native ones before, but this never happened with any of them.

Thanks!

Date: 2013-04-11 05:44 pm (UTC)
foxfirefey: A guy looking ridiculous by doing a fashionable posing with a mouse, slinging the cord over his shoulders. (geek)
From: [personal profile] foxfirefey
Okay, you know that layer you imported when you imported Mixit code? Find this and remove it:


    var Link memories_url = $.journal->get_link("memories");

    # Memories
    if($memories_url.url != "") {
        println safe """<li class="item"><a href="$memories_url.url" title="$*text_view_memories">$*text_view_memories</a></li>""";
    }


If that works for you, then try out this to not print out the tags link (not tested, but the basics of what you need to do, replace the code similar to this above the code you deleted with this code):

    # Standard Journal Pages (Recent, Archive, Friends, Userinfo)
    foreach var string v ($.views_order) {
        var string url   = $.view_url{$v};
        var string text  = lang_viewname($v);
        var string class = "item";
        
        # skip the tags item
        if($v == "tags") {
            continue;
        }        
        
        if($v == $.view) {
            $class = $class + " current";
        }
        if($v == $.views_order[0]) {
            $class = $class + " first";
        }

        $class = " class=\"$class\"";

        print """<li$class><a href="$url" title="$text">$text</a></li>""";
    }

Date: 2013-04-11 05:45 pm (UTC)
foxfirefey: A guy looking ridiculous by doing a fashionable posing with a mouse, slinging the cord over his shoulders. (geek)
From: [personal profile] foxfirefey
Oh: and the reason this is happening with Mixit is that Mixit manually adds a memory link. LJ doesn't include it in the default views. But DW does. So then Mixit goes through all the links DW gives it, and then it adds memory on the end even though DW already gave it that.

Date: 2013-04-11 06:27 pm (UTC)
foxfirefey: A fox colored like flame over an ornately framed globe (Default)
From: [personal profile] foxfirefey
Sure. Put this before that whole bit that is printing out those links:

  $navlinks_order =
    [
        "recent",
        "archive",
        "read",
        "userinfo",
        "memories",
    ];


And then change:

    foreach var string v ($.views_order) {


to

    foreach var string v ($navlinks_order) {


bonus: you don't need the check for tags then, if you don't include tags in that list.

Date: 2013-04-11 06:52 pm (UTC)
foxfirefey: A guy looking ridiculous by doing a fashionable posing with a mouse, slinging the cord over his shoulders. (geek)
From: [personal profile] foxfirefey
Hmm, I think I made a mistake. You are going to need to put the code before the #Standard Journal Pages yes. And I forgot I have to declare variables in S2. Try this:

  var $navlinks_order =
    [
        "recent",
        "archive",
        "read",
        "userinfo",
        "memories",
    ];


(I'm not trying to give you a hard time about core2 styles. I can tell you that we have styles similar enough to that layout that it wouldn't take much work to replicate most of the look and feel, though, giving you the best of both worlds, if you were interested.)

Date: 2013-04-12 04:07 am (UTC)
foxfirefey: Fox stealing an egg. (mischief)
From: [personal profile] foxfirefey
Mrm, found another syntax thing (too lazy to set it up for compiling the layer myself):

  var navlinks_order =
    [
        "recent",
        "archive",
        "read",
        "userinfo",
        "memories",
    ];


and yeah, I think Dusty Foot might be closest to what you what, given some tweaking and adjustments.

Date: 2013-04-12 03:16 pm (UTC)
foxfirefey: Smiley faces are born through factorized mechanical torture. (grimace)
From: [personal profile] foxfirefey
Aw man, I'm so sorry! THE IDEA WAS SOUND my implementation was off.

A new entry is probably best!

Date: 2013-04-12 02:29 pm (UTC)
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)
From: [personal profile] momijizukamori
Take a peek at Heads Up for a similar core2 one ;) I designed it to be similar in feel to Expressive/Mixit, and it's got a lot of stuff for adding banners nicely built-in

Date: 2013-04-12 03:14 pm (UTC)
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)
From: [personal profile] momijizukamori
You're welcome! We don't have a ton of default themes for it because... I think I'm the only one who remembers it's there, and I am not a graphics pro >_> But it's designed so you can specify the width of your content area in the wizard, and if it's the same width as your header image, they line up all nice and neat.

ignore this as you will

Date: 2013-04-11 06:27 pm (UTC)
foxfirefey: Fox stealing an egg. (mischief)
From: [personal profile] foxfirefey
also: I am contractually obligated to nudge you towards using native core2 styles and tell you we are more than happy to help you modify one with images and whatnot to be to your liking.

Profile

Dreamwidth style system discussion

April 2025

S M T W T F S
  12345
6 78910 1112
13 141516171819
2021 2223242526
27282930   

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 6th, 2025 12:07 pm
Powered by Dreamwidth Studios