blnchflr: Remus/Ghost!Sirius (html)
practice being a zebra ([personal profile] blnchflr) wrote in [community profile] style_system2010-01-10 11:27 am

Change Network link to ?show=p? [SOLVED]

How can I change the Network link on my journal to go to ?show=p, so I only get personal journals (my circle's circles subscribe to a lot of feeds I'm not interested in)?

I'm using Transmogrified.

Thank you in advance.
dancing_serpent: (Default)

[personal profile] dancing_serpent 2010-01-10 11:40 am (UTC)(link)
Oh, I'm interested in that one, too. Even better for me would be if my network page would show everything but feeds, i.e. personal journals and communities.

Using Transmogrified, too.
yvi: Kaylee half-smiling, looking very pretty (Default)

[personal profile] yvi 2010-01-10 12:24 pm (UTC)(link)
show=P&show=C should work in that case. However, I also wnat to know how I can make that the default :)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2010-01-10 01:34 pm (UTC)(link)
Here you go! After seeing the comments, I took the liberty of making it "PC" instead of just personal journals.

If you want to filter on the fly, and you have the navstrip enabled, you can also use the filter dropdown to do so!


function print_module_navlinks() {
    var Page p = get_page();
    open_module("navlinks", "", "");
    var string[] links = [];
    foreach var string k ($p.views_order) {
        var string url = $p.view_url{$k};
        if ( $k == "network" ) {
            var string sep = $url->contains("?") ? "&" : "?";

            # show = P : personal
            # show = C : community
            # show = F : feeds
            # show = PC : personal and community (any other combinations also possible)
            $url = $url + $sep + "show=PC";
        }

        var string css = """ class="$k" """;
        if ($p.view == $k) { $css = """ class="current $k" """; }
        $links[size $links] = """<a href="$url"$css>"""+lang_viewname($k)+"""</a>""";
    }
    print_module_list($links);
    close_module();
}		

Edited (fix html) 2010-01-10 13:35 (UTC)
yvi: Kaylee half-smiling, looking very pretty (Default)

[personal profile] yvi 2010-01-10 01:38 pm (UTC)(link)
OMG IT'S S2! *flees*
dancing_serpent: (Default)

[personal profile] dancing_serpent 2010-01-10 01:54 pm (UTC)(link)
Thanks! I think I'm doing something wrong, though, because it doesn't work for me. *ducks*
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2010-01-10 03:39 pm (UTC)(link)
Hmm, is it giving you an error when you try to compile, or are the changes just not showing up?
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2010-01-10 03:39 pm (UTC)(link)
Glad I could help!
dancing_serpent: (Default)

[personal profile] dancing_serpent 2010-01-10 03:57 pm (UTC)(link)
The changes aren't showing up.
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2010-01-10 04:04 pm (UTC)(link)
How odd. Can you make the layer public, and toss me a link? I'll go take a look.
dancing_serpent: (Default)

[personal profile] dancing_serpent 2010-01-10 04:10 pm (UTC)(link)
It's already public, I'm using the theme from my latest [site community profile] dreamscapes submission. http://www.dreamwidth.org/customize/advanced/layersource?id=91493
Edited 2010-01-10 16:10 (UTC)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2010-01-10 04:11 pm (UTC)(link)
The function doesn't seem to be there.
dancing_serpent: (Default)

[personal profile] dancing_serpent 2010-01-10 04:12 pm (UTC)(link)
*headdesk* I copied it into the custom css box. So yeah, it works now. Thanks for your patience.
Edited 2010-01-10 16:15 (UTC)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2010-01-10 04:16 pm (UTC)(link)
Awesome; and any time :)
dancing_serpent: (Default)

[personal profile] dancing_serpent 2010-01-10 04:17 pm (UTC)(link)
Can't stop laughing at myself now. *g*
dancing_serpent: (Default)

[personal profile] dancing_serpent 2010-01-10 06:26 pm (UTC)(link)
Oh yes, that's a good one, too. *g*