Article Summary Per Author?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
bdconnolly
Regular
Posts: 140
Joined: Tue Apr 04, 2006 9:37 pm

Article Summary Per Author?

Post by bdconnolly »

Is it possible to produce and article list (a la archives/2007/10/summary.html) for individual authors?

Brian
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Article Summary Per Author?

Post by garvinhicking »

Hi!

Yes, simply click on the authors name of your blog entry. Like:

http://blog.s9y.org/authors/2-Jannis

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
bdconnolly
Regular
Posts: 140
Joined: Tue Apr 04, 2006 9:37 pm

Post by bdconnolly »

Thank you Garvin. BUT, that's not what I'm looking to do.

See, I'm setting up for only one article at a time on the frontpage. As such, what I'd like to do is produce a list like the archive summary.

Thoughts?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
bdconnolly
Regular
Posts: 140
Joined: Tue Apr 04, 2006 9:37 pm

Post by bdconnolly »

almost but nope.

This doesn't work:

http://furthermore.com/archives/2007/A1/summary.html

This kinda works but note it's listing an article dated September in October:

http://furthermore.com/archives/A1/summary.html

I know we're close.
Don Chambers
Regular
Posts: 3659
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

Brian - Garvin seems to be helping you with the summary issue, so I will not get into that.

I see you are using a slightly modified version of the blue colorset in bulletproof. I'm happy you like it. :D Why did you remove the credit links from the template?
=Don=
bdconnolly
Regular
Posts: 140
Joined: Tue Apr 04, 2006 9:37 pm

Post by bdconnolly »

Don, I'd like to stay on topic if we might. If you'd like contact me directly, I can be reached at bconnolly@furthermore.com.

Thanks,
bdconnolly
Regular
Posts: 140
Joined: Tue Apr 04, 2006 9:37 pm

Post by bdconnolly »

BACK ON TOPIC

This:

http://furthermore.com/archives/A1/summary.html

Using this (entries_summary):

Code: Select all

{serendipity_hookPlugin hook="entries_header"}
<div class="serendipity_Entry_Date">
<h4 class="serendipity_title"><a href="{$entry.link}">{$entry.title}</a>{$CONST.TOPICS_OF} {$dateRange.0|@formatTime:"%B %Y"}</h4>

<div class="serendipity_entry">
    {foreach from=$entries item="entries"}
        {foreach from=$entries.entries item="entry"}
           <a href="{$entry.link}">{$entry.title}</a>
           <div class="posted_by_date">{$entry.timestamp|@formatTime:DATE_FORMAT_ENTRY}</div>
        {/foreach}
    {/foreach}
</div>
</div>
Produces this:
From October 2007

blue
Sunday, October 14, 2007
Test47
Tuesday, September 12, 2006
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

But that's okay? When you don't use a year restriction on the summaries, it uses the full date range?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
bdconnolly
Regular
Posts: 140
Joined: Tue Apr 04, 2006 9:37 pm

Post by bdconnolly »

Yeah. BUT, note that I put in a retro date to test. September is being listed under October.

:(

If I can just fix that, I'm all good.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
bdconnolly wrote:Yeah. BUT, note that I put in a retro date to test. September is being listed under October.

:(

If I can just fix that, I'm all good.
This is simply because you are not specifiny a timestamp range. The s9y summary is only meant to be called with a range, which is why if you don't specify one, the current month name is given as the title, but the range spans everything.

So, use a timestamp range, and you should be fine. Else you must be patching your entries_summary.tpl file and remove the <h4> tag completely.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

Don Chambers wrote:I see you are using a slightly modified version of the blue colorset in bulletproof. I'm happy you like it. :D Why did you remove the credit links from the template?
LOL, when you give away something like a template you must expect people to remove your link. From doing a google search in specific code within my templates I can tell you that about 20% of all users will strip out the link, and frankly, if you want to enforce this you'll find people will stop using your template altogether. Better to let them do what they want and not upset anyone.
bdconnolly
Regular
Posts: 140
Joined: Tue Apr 04, 2006 9:37 pm

Post by bdconnolly »

Well, I'm fairly clear on how to remove <h4>. :)

I am not clear how to call the summary with a range. As I said, this is not working: http://furthermore.com/archives/2007/A1/summary.html . This works but is limited to the authors articles for October: http://furthermore.com/archives/2007/10/A1/summary.html .

Can I do this: http://furthermore.com/pages/A1/archives.html ?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi Carl!
Better to let them do what they want and not upset anyone.
I full-heartedly disagree.

It is simply not ALLOWED to remove copyright notices. It is an illegal breach of contract. Simply because people do it does not mean, that telling people not to do that is not the right thing to do. Uhm, wicked sentence.

What I mean: If people want free support anywhere, but then they show off URLs in which they remove other peoples work (what the BSD license does NOT ALLOW!), IMHO it is not really right to support those people any more. And we should create an awareness for other people reading this, that it is not okay to steal other ones work.

I've been in contact with bdconnolly in the past, and I'm quite sure that what he did was not on purpose. So especially to people like him, it's okay to encourage them to think about what they did to be able to fix that mistake.

As for your problem bdconnolly :

Try to use this URL:
http://furthermore.com/archives/A1/summary/entries.html

This should list all entries by Author 1 in the summary mode?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
bdconnolly
Regular
Posts: 140
Joined: Tue Apr 04, 2006 9:37 pm

Post by bdconnolly »

Well, first, I fixed the archive issue. Thank you Garvin.

With regard to copyright notices and license compliance... ABSOLUTELY AGREE!!! I am a HUGE advocate of copyright.

That said, one must make the distinction between copyright notice and advertising. Bulletproof, for instance, was/is not distributed with copyright notice or license. It was distributed as a part of Serendipity. As such, compliance is to keep copyright notice within the code.
Post Reply