• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Enhancements to news
PostPosted: Mon Jan 16, 2006 1:03 am 
I would love to see the ability to have both poster's name and an avatar for that poster in the news section.


Top
  
 
 Post subject: Re: Enhancements to news
PostPosted: Mon Jan 16, 2006 5:50 am 
Offline
Power Poster
Power Poster

Joined: Sun Nov 21, 2004 6:35 am
Posts: 1469
Location: Geneva - Switzerland
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:
<div class="NewsDetailAuthor">
   {$entry->author}
</div>

with this:
Code:
<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

_________________
Patricia


Top
 Profile  
 
 Post subject: Re: Enhancements to news
PostPosted: Mon Jan 16, 2006 11:03 am 
Offline
Power Poster
Power Poster

Joined: Sat Sep 10, 2005 4:45 pm
Posts: 650
Location: Växjö, Sweden
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.

Quote:
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:
<div class="NewsDetailAuthor">
   {$entry->author}
</div>

with this:
Code:
<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?


Top
 Profile  
 
 Post subject: Re: Enhancements to news
PostPosted: Mon Jan 16, 2006 1:21 pm 
Offline
Power Poster
Power Poster

Joined: Sun Nov 21, 2004 6:35 am
Posts: 1469
Location: Geneva - Switzerland
ok, sorry, I mistook beta with full release, I shouldn't say that fast :)

about space in name, yep, you are right I haven't thought of this.
I'm always a bit too optimistic :) but the workaround would work :)

Westis, do you think a avatar should be in the users profile? I can open a feature request for that, then it would be easy to insert anyway like {user_avatar} or {user_name} or whatever from the users table.

_________________
Patricia


Top
 Profile  
 
 Post subject: Re: Enhancements to news  [SOLVED]
PostPosted: Mon Jan 16, 2006 7:10 pm 
Offline
Power Poster
Power Poster

Joined: Sat Sep 10, 2005 4:45 pm
Posts: 650
Location: Växjö, Sweden
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).


Top
 Profile  
 
 Post subject: Re: Enhancements to news
PostPosted: Tue Jan 17, 2006 7:25 am 
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


Top
  
 
 Post subject: Re: Enhancements to news
PostPosted: Tue Jan 17, 2006 7:30 am 
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:
<div class="NewsDetailAuthor">
   {$entry->author}
</div>

with this:
Code:
<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


Top
  
 
 Post subject: Re: Enhancements to news
PostPosted: Tue Jan 17, 2006 3:05 pm 
Offline
Power Poster
Power Poster

Joined: Sat Sep 10, 2005 4:45 pm
Posts: 650
Location: Växjö, Sweden
Quote:
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.


Top
 Profile  
 
 Post subject: Re: Enhancements to news
PostPosted: Tue Jan 17, 2006 8:01 pm 
That's great to hear!

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


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting