?

Log in

No account? Create an account

Previous Entry | Next Entry

Page Summary Widget

  • Mar. 9th, 2007 at 6:44 PM
I've just spent two hours searching FAQs and css guides, trying to find an answer to my question without any success.  I hope someone here can advise me.  In a community, I'm trying to limit the Page Summary link to just the linked Subject, removing the poster's username and the linked comment numbers.

/* post summary */
.archive-widget li.item {margin: 0px 0px 5px 0px; padding: 0px;}

.links-widget .widget-list .item {
margin-bottom: .2em;
border: none !important;
}

.widget-list .tagcloud {
list-style: none !important;
display: inline !important;
color: #ff0000 !important;
white-space: nowrap !important;
border-left: 0 !important;
width: 100% !important;
}

I'm using the layout "Your Biggest Flan" from thefulcrum  , which is based on Mixit.  Thank you in advance for any direction you can offer.

Comments

( 7 comments — Leave a comment )
av8rmike
Mar. 10th, 2007 03:25 am (UTC)
It's not a modification you can make with CSS; you'd need to remove a few things from the print_module_pagesummary() function. I can post a fix, but unless your community has a paid account, it won't do you any good.
cavalaxis
Mar. 10th, 2007 03:28 am (UTC)
It is a paid community. If it's not too much trouble, I would be indebted for your help.

Thank you.
av8rmike
Mar. 10th, 2007 03:50 am (UTC)
Here's a revised function, from which I just deleted a couple of lines. It will still display comment counts on entry pages, though:
function print_module_pagesummary(string title) {
    var Page p = get_page();

    var string link = "";
    var string[] links = [];
    if ($p isa RecentPage) {
        var RecentPage cp = $p as RecentPage;
        foreach var Entry e ($cp.entries) {
            var string subject = ($e.subject != "") ? striphtml($e.subject) : """<i class="nosubject">$*text_nosubject</i>""";
            $link = """<a href="#asset-$e.journal.username-$e.itemid">$subject</a>""";
            $links[size $links] = $link;
        }
    } elseif ($p isa EntryPage) {
        var EntryPage cp = $p as EntryPage;
        foreach var Comment c ($cp.comments) {
            var string poster  = (defined $c.poster) ? ($c.poster + "") : """<i class="noposter">$*text_poster_anonymous</i>""";
            var string subject = ($c.subject != "") ? $c.subject : """<i class="nosubject">$*text_nosubject</i>""";
            var int count = num_comments_in_thread($c.replies);
            $links[size $links] = """$poster : <a href="#comment-$c.talkid">$subject</a> <a href="$c.permalink_url">[+$count]</a>""";
        }
    }

    if (size($links) < 1) { return; }
    open_module("archive", $title, "");
    print_module_list($links,"");
    close_module();
}
cavalaxis
Mar. 10th, 2007 03:52 am (UTC)
Thank you! You rock!

And this needs to go into a theme layer, correct?
av8rmike
Mar. 10th, 2007 04:00 am (UTC)
Correct. There are several tutorials around for creating theme layers; try the beginners guide tag.
cavalaxis
Mar. 10th, 2007 04:03 am (UTC)
Thank you again. I've created a theme layer before, so I just have to figure out how I did it before.

Again, Thank You.
cavalaxis
Mar. 10th, 2007 04:08 am (UTC)
Also, your edits seem to have removed the comments link as well. Rock on!

You can see the results at musecrack.
( 7 comments — Leave a comment )

Latest Month

March 2016
S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728293031  

S2 Help Communities

Tags

Powered by LiveJournal.com
Designed by chasethestars