-
AuthorPosts
-
March 20, 2011 at 11:43 am #161682
hi there.
i installed ja Methys. beautiful template
but all ny articles are dated – 31 dec
how can i fix thatthanks
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
March 20, 2011 at 12:53 pm #382334I hope the 31 dec is static one.
Please attach this file templates/ja_methys/html/com_content/frontpage/default.php
so i can check the possibility of issue
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
March 20, 2011 at 3:19 pm #382343Hi,
Do you change Created Date of your article?March 20, 2011 at 3:25 pm #382344if you go to the site you can see that each article has a different creation date
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
March 20, 2011 at 4:14 pm #382351Hi,
– Open <joomla url>templatesja_methyshtmlcom_contentfeatureddefault_item.php file, show me code after
<!-- Date created -->
– My code is
<?php
$createDay = date('d', strtotime( $created));
$createMonth = date('M', strtotime( $created));
//$createYear = date('Y', strtotime( $created));
?>
<span class="date"><?php echo $createDay; ?></span>
<span class="month"><?php echo $createMonth; ?></span>March 20, 2011 at 4:21 pm #382352i don have a fetured folder. i have it here: templates/ja_methys/html/com_content/frontpage
<!– Date created –>
<?php
$createDay = date(‘d’, strtotime( $created));
$createMonth = date(‘M’, strtotime( $created));
//$createYear = date(‘Y’, strtotime( $created));
?>
<span class=”date”><?php echo $createDay; ?></span>
<span class=”month”><?php echo $createMonth; ?></span>khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
March 20, 2011 at 4:49 pm #382355Because I use Joomla 1.6, but you use 1.5 version. Do you give me code before
<!-- Date created -->
– My code is
<?php $created = T3Hook::_('t3_date_format', array($this->item->created, 'frontpage.created'));
if (!$created) $created = JHTML::_('date', $this->item->created, JText::_('DATE_FORMAT_LC2')) ?>
March 20, 2011 at 4:52 pm #382356mine is:
<dd class=”create”>
<?php $created = T3Hook::_(‘t3_date_format’, array($this->item->created, ‘frontpage.created’));
if (!$created) $created = JHTML::_(‘date’, $this->item->created, JText::_(‘DATE_FORMAT_LC2’)) ?>khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
March 20, 2011 at 5:17 pm #382364I don’t find down your problem. If it’s OK, do you give me username+password of backend/ftp?
viktorg Friendviktorg
- Join date:
- November -0001
- Posts:
- 30
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 4
- Thanked:
- 2 times in 1 posts
March 28, 2011 at 9:46 pm #383707Have you sorted this out? I have the same problem with joomla 1.6. I think this is a language issue (date format bug). With English activated on frontend it works.
Do you have the right code?
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
April 4, 2011 at 4:41 am #384702<em>@viktorg 230749 wrote:</em><blockquote>Have you sorted this out? I have the same problem with joomla 1.6. I think this is a language issue (date format bug). With English activated on frontend it works.
Do you have the right code?</blockquote>
If you install the quickstart then front page articles are likely to have all the identical pink circle date labels. What is your current language? Please update supper admin login info here:
http://support.joomlart.com/index.php?/Tickets/Ticket/View/68737
I want to check it myself.April 9, 2011 at 6:06 pm #385557I have the same problem, with Englis Default Language it works, but not with other language.
Any news?
thxkhoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
April 10, 2011 at 12:21 pm #385600Hi,
Could you give me user+pass of administrator+ftp? I will solve your problem
<em>@nikema 233175 wrote:</em><blockquote>I have the same problem, with Englis Default Language it works, but not with other language.
Any news?
thx</blockquote>April 10, 2011 at 2:48 pm #385606thx khoand, sent it by pm
April 10, 2011 at 7:51 pm #385651I solved for my site, the problem is the timestamp value that isn’t correct created, the function
strtotime( $created)
works correct only when the site default language is English, so because strtotime accept only an english input, witih different languages fault.
I bypassed it using directly the $created string to extract the day and the month of the date in the current language,
Using this way:Original Code
<!-- Date created -->
<?php
$createDay = date('d', strtotime( $created));
$createMonth = date('M', strtotime( $created));
//$createYear = date('Y', strtotime( $created));
?>
<span class="date"><?php echo $createDay; ?></span>
<span class="month"><?php echo $createMonth; ?></span>
<!-- <span class="year"><?php echo $createYear; ?></span> -->Modified Code
<!-- Date created -->
<?php
list($dd, $gg, $mm, $yy, $hh) = split(' ', $created);
?>
<span class="date"><?php echo $gg; ?></span>
<span class="month"><?php echo $mm; ?></span>I dont know if can be a general solution, but for my site work.:)
2 users say Thank You to nikema for this useful post
-
AuthorPosts
This topic contains 15 replies, has 6 voices, and was last updated by nikema 13 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum