Enhancements to news

Talk about new features for CMSMS and modules.
Post Reply
neenach2002

Enhancements to news

Post 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.
westis

Re: Enhancements to news

Post 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?
westis

Re: Enhancements to news

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

Re: Enhancements to news

Post 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
neenach2002

Re: Enhancements to news

Post 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
westis

Re: Enhancements to news

Post 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.
neenach2002

Re: Enhancements to news

Post by neenach2002 »

That's great to hear!

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

Return to “Feature ideas”