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.
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)