• 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  [ 22 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: How to change date format
PostPosted: Wed Jun 06, 2012 12:26 am 
Offline
Power Poster
Power Poster

Joined: Sat Jan 15, 2011 8:36 am
Posts: 540
Location: Western Australia
Thank you Jan for showing me where to go

and

Thanks Jos for the reminder!


Top
 Profile  
 
 Post subject: Re: How to change date format
PostPosted: Wed Jun 06, 2012 1:54 am 
Offline
Power Poster
Power Poster

Joined: Sat Jan 15, 2011 8:36 am
Posts: 540
Location: Western Australia
I'm experimenting:
tried:

<td>{$entry->expires}:&nbsp;{'%d-%m-%Y'|date:$userinfo.expires}</td>

but this resulted in a rendering:

2013-06-06 08:15:07: %01-%01-%1970

Very interesting!

Tried: <td>{$entry->expires|date_format:"%d-%m-%Y"}</td>

AND IT WORKED!!!!!

Thank you both so much!

One last question, couldn't quite understand the instruction to put the copied file into:module_custom/yourmodule/ directory.

(I understand WHY, of course). Currently I copied the orginal and called it userlistORIGINAL.tpl and edited the userlist.tpl and saved the new file offsite as well. Do I need to set up another directory to put the new file in?


Top
 Profile  
 
 Post subject: Re: How to change date format
PostPosted: Wed Jun 06, 2012 2:40 am 
Offline
Power Poster
Power Poster

Joined: Mon Jan 29, 2007 4:47 pm
Posts: 426
jasnick wrote:
One last question, couldn't quite understand the instruction to put the copied file into:module_custom/yourmodule/ directory.
That means that if you put the file there it will override the original one without:
- modifying the original;
- compromising further upgrades of the module and/or CMSMS;

So, if you are modifying the template for FEU, just put the copied file in
< siteroot/CMSMS intalation >/module_custom/FEU/
You will actually have to create the folder yourself as it doesn't exist after a default CMSMS install unless someone already created it.

HTH.

_________________
"There are 10 types of people in this world, those who understand binary... and those who don't."

* by the way: English is NOT my native language (sorry for any mistakes...).

My developer Page on the Forge.


Top
 Profile  
 
 Post subject: Re: How to change date format
PostPosted: Wed Jun 06, 2012 3:39 am 
Offline
Power Poster
Power Poster

Joined: Sat Jan 15, 2011 8:36 am
Posts: 540
Location: Western Australia
Jo Morg wrote:
jasnick wrote:
< siteroot/CMSMS intalation >/module_custom/FEU/


Thank Jo!

So this will be a new folder "module_custom" and this goes in the same place as the CMSMS files, in other words, the same place as the config file for example?

So how does the FEU come into it? Is that a folder as well? FEU or FrontEndUsers?

It will contain only my newly altered userlist.tpl file? Do I still call it that?

I sometimes get a bit confused about exactly where to place things.

Thanks


Top
 Profile  
 
 Post subject: Re: How to change date format
PostPosted: Wed Jun 06, 2012 11:39 am 
Offline
Power Poster
Power Poster

Joined: Mon Jan 29, 2007 4:47 pm
Posts: 426
jasnick wrote:
Jo Morg wrote:
jasnick wrote:
< siteroot/CMSMS intalation >/module_custom/FEU/


Thank Jo!

So this will be a new folder "module_custom" and this goes in the same place as the CMSMS files, in other words, the same place as the config file for example?

So how does the FEU come into it? Is that a folder as well? FEU or FrontEndUsers?

It will contain only my newly altered userlist.tpl file? Do I still call it that?

I sometimes get a bit confused about exactly where to place things.

Thanks
Arrgh! Sorry, my bad! :-\

< siteroot/CMSMS intalation >/module_custom/FrontEndUsers

FrontEndUsers is a new folder inside the module_custom folder.

There should only be back end template customization and/or lang files customization (in this case inside a new 'lang' folder) so yes you put there your newly altered userlist.tpl and you SHOULD call it that.
HTH. ;)

_________________
"There are 10 types of people in this world, those who understand binary... and those who don't."

* by the way: English is NOT my native language (sorry for any mistakes...).

My developer Page on the Forge.


Top
 Profile  
 
 Post subject: Re: How to change date format
PostPosted: Wed Jun 06, 2012 11:48 am 
Offline
Power Poster
Power Poster

Joined: Sat Jan 15, 2011 8:36 am
Posts: 540
Location: Western Australia
Thanks Jo -nothing wrong with your English! Better than a lot of native speakers!

I thought that was what you meant but thought I had better check.

So if and when 1.10.3 has an upgrade, my new module_custom folder will still remain as is, even though the other CMSMS files currently on site may be upgraded?


Top
 Profile  
 
 Post subject: Re: How to change date format
PostPosted: Wed Jun 06, 2012 7:12 pm 
Offline
Power Poster
Power Poster

Joined: Mon Jan 29, 2007 4:47 pm
Posts: 426
jasnick wrote:
So if and when 1.10.3 has an upgrade, my new module_custom folder will still remain as is, even though the other CMSMS files currently on site may be upgraded?
That's it, yes. :)

_________________
"There are 10 types of people in this world, those who understand binary... and those who don't."

* by the way: English is NOT my native language (sorry for any mistakes...).

My developer Page on the Forge.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2

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:  
Arvixe - A CMSMS Partner