Enhancements to news
Enhancements to news
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
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.Patricia wrote: The author name will be included in the next version of CMSMS which should be out in about 1 week.
How will that work if there is space in the author's name, but the file name can't take any space?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:with this:Code: Select all
<div class="NewsDetailAuthor"> {$entry->author} </div>
Code: Select all
<div class="NewsDetailAuthor"> {$entry->author} <img src="uploads/images/authors/{$entry->author}.jpg"> </div>
Re: Enhancements to news
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
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?
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?
Re: Enhancements to news
How about for summaries?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:with this:Code: Select all
<div class="NewsDetailAuthor"> {$entry->author} </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)Code: Select all
<div class="NewsDetailAuthor"> {$entry->author} <img src="uploads/images/authors/{$entry->author}.jpg"> </div>
You just need a week of patience
Cheers
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?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?
Re: Enhancements to news
Yeah, this is added in SVN and will be in the next release.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?