Page 1 of 1

Enhancements to news

Posted: Mon Jan 16, 2006 1:03 am
by neenach2002
I would love to see the ability to have both poster's name and an avatar for that poster in the news section.

Re: Enhancements to news

Posted: Mon Jan 16, 2006 11:03 am
by westis
Patricia wrote: The author name will be included in the next version of CMSMS which should be out in about 1 week.
Well, I think that's a bit optimistic.... ;) It needs proper testing before the official version is released. But a beta/RC version should be out within a week, most likely.
The avatar is not included, but you can achieve that by tweaking the detail template
in the News module you will simply go to the detail template in the admin panel and :

replace:

Code: Select all

<div class="NewsDetailAuthor">
	{$entry->author}
</div>
with this:

Code: Select all

<div class="NewsDetailAuthor">
	{$entry->author} <img src="uploads/images/authors/{$entry->author}.jpg">
</div>
How will that work if there is space in the author's name, but the file name can't take any space?

Re: Enhancements to news

Posted: Mon Jan 16, 2006 7:10 pm
by westis
Yeah, a user avatar sounds like a cool idea. Possibly even with automatic resizing, i.e. that it can create a thumbnail of the deserved size even though the original file is bigger (so that it can be used ni different sizes without html resizing).

Re: Enhancements to news

Posted: Tue Jan 17, 2006 7:25 am
by neenach2002
That's great to hear!

I'm just trying to achieve something that looks similar to my old news. ;)  Avatars are a must for any anime site; along with usernames.

Can't I just use {$entry->author} for the author's name then?  :P

Re: Enhancements to news

Posted: Tue Jan 17, 2006 7:30 am
by neenach2002
Patricia wrote: The author name will be included in the next version of CMSMS which should be out in about 1 week.

The avatar is not included, but you can achieve that by tweaking the detail template
in the News module you will simply go to the detail template in the admin panel and :

replace:

Code: Select all

<div class="NewsDetailAuthor">
	{$entry->author}
</div>
with this:

Code: Select all

<div class="NewsDetailAuthor">
	{$entry->author} <img src="uploads/images/authors/{$entry->author}.jpg">
</div>
you of course need to have the authors images in .jpg (with same spelling+ uppercase-lowercase) in uploads/images/authors/ (path and extension as per my above example)

You just need a week of patience :)

Cheers
How about for summaries? :P
neenach2002 wrote: That's great to hear!

I'm just trying to achieve something that looks similar to my old news. ;)  Avatars are a must for any anime site; along with usernames.

Can't I just use {$entry->author} for the author's name then?  :P
Guess I can't use it yet;  I imagine I wouldn't be able to use it anywhere in news until you guys have added the author name in yet, right?  :P

Re: Enhancements to news

Posted: Tue Jan 17, 2006 3:05 pm
by westis
Guess I can't use it yet;  I imagine I wouldn't be able to use it anywhere in news until you guys have added the author name in yet, right?
Yeah, this is added in SVN and will be in the next release.

Re: Enhancements to news

Posted: Tue Jan 17, 2006 8:01 pm
by neenach2002
That's great to hear!

I'll be on the lookout for it.  =)