is there a possibility to get the date in the head of an entry an additional time designation / timestamp? I use bulletproof, there are some dateformats included, but I found none with a time - maybe I overlooked it? I even surched the smarty-files, but I couldn't decide, where an how often the dateformat (strftime) where to specify or alterated.
Even the very useful mycalendar speaks in month - day - year. In spite of that- the output on the frontend-output allows a time designation, if the plugin is told to do so (%e %B %Y um %H:%M) . But its always 00:00 because there is no place to submit the time.
any hint would be appreciated
entries and mycalendar - with a timestamp?
-
- Regular
- Posts: 62
- Joined: Fri Jan 19, 2007 6:59 pm
- Location: Hamburg
Hi
I guess you could edit your entries.tpl.
Look for this
and change it to this
that would do it
HTH
DAve
I guess you could edit your entries.tpl.
Look for this
Code: Select all
<h3 class="serendipity_date"><abbr class="published" title="{$dategroup.date|@formatTime:'%Y-%m-%dT%H:%M:%S%Z'}">
{$dategroup.date|@formatTime:$template_option.date_format}</abbr></h3>
Code: Select all
<h3 class="serendipity_date"><abbr class="published" title="{$dategroup.date|@formatTime:'%Y-%m-%dT%H:%M:%S%Z'}">
{$dategroup.date|@formatTime:$template_option.date_format} at {$entry.timestamp|@formatTime:'%H:%M %P'}</abbr></h3>
HTH
DAve
-
- Regular
- Posts: 62
- Joined: Fri Jan 19, 2007 6:59 pm
- Location: Hamburg
Hi
that does it. But its placing the wrong time there (seems to bee the actual time). There must be some additional dependences.
I use a modification of the bulletproof theme, which allows to specify the date format in admin-area. A format with a timestamp is not included. Maybe I have to change something else?
But thx for showing the direction
eva
that does it. But its placing the wrong time there (seems to bee the actual time). There must be some additional dependences.
I use a modification of the bulletproof theme, which allows to specify the date format in admin-area. A format with a timestamp is not included. Maybe I have to change something else?
But thx for showing the direction
eva
hmm
I guess the $timestamp hasn't been set yet.
Well why not edit your bulletproof/config.inc.php.
Look for date_format and change the format for your chosen style.
ie: If I change
'%a, %e. %B %Y' => '%a, %e. %B %Y',
to
%a, %e. %B %Y at %H:%M' => '%a, %e. %B %Y at %H:%M',
that would change
'Wed, 30. April 2008'
to
Wed, 30. April 2008 at 15:54
so you should then go and select your new date format in admin/manage styles
HTH
Dave
I guess the $timestamp hasn't been set yet.
Well why not edit your bulletproof/config.inc.php.
Look for date_format and change the format for your chosen style.
ie: If I change
'%a, %e. %B %Y' => '%a, %e. %B %Y',
to
%a, %e. %B %Y at %H:%M' => '%a, %e. %B %Y at %H:%M',
that would change
'Wed, 30. April 2008'
to
Wed, 30. April 2008 at 15:54
so you should then go and select your new date format in admin/manage styles
HTH
Dave
-
- Regular
- Posts: 62
- Joined: Fri Jan 19, 2007 6:59 pm
- Location: Hamburg
solved: date_format problem in headline of entries
It is working now - via an intermediate stage, when there were two different times in the headline, it's now exactly what I wanted to have.
Thx
eva
Thx
eva