-
AuthorPosts
-
yoda_oz Friend
yoda_oz
- Join date:
- January 2008
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 1
- Thanked:
- 1 times in 1 posts
April 21, 2012 at 7:35 am #176340like the title suggests the date is not showing in the ja_social box in the category blog on the home page. please see screenshot.
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
April 21, 2012 at 10:32 am #449487By defaule, there is only created date is showed in the box. So you turn show_created_date on to achieve your purpose.
If you want to show published date in the box, you must modify php codeyoda_oz Friendyoda_oz
- Join date:
- January 2008
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 1
- Thanked:
- 1 times in 1 posts
April 21, 2012 at 10:36 am #449488i enabled show_created_date and it still doesn’t work…
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
April 22, 2012 at 7:16 am #449568It’s weird. Could you give me username+password of your backend and ftp? I will check it
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
April 22, 2012 at 8:19 am #449573– 19-Apr is created date of article.
– In demo site, you see created date in the box, because demo site set type of Home menu is featured.
– Your site use type of Home menu is category, and default category layout doesn’t put created date into the box. If you want to created date in the box, you do following steps:
+ you remove the code from /templates/ja_events/html/com_content/category/blog_item.php
<?php if ($params->get('show_create_date')) : ?>
<dd class="create">
<?php
$createDay = date('d', strtotime($this->item->created));
$createMonth = JText::_(strtoupper(date('F', strtotime($this->item->created)))."_SHORT");
//$createYear = date('Y', strtotime($this->item->created));
?>
<span class="date"><?php echo $createDay; ?></span>
<span class="month"><?php echo $createMonth; ?></span>
</dd>
<?php endif; ?>
+ you add the code into /templates/ja_events/html/com_content/category/blog_item.php
<div class="ja-social-toolbox-small">
<div class="inner clearfix">
<?php
if ($params->get('show_create_date')) :
$createDay = date('d', strtotime($this->item->created));
$createMonth = JText::_(strtoupper(date('F', strtotime($this->item->created)))."_SHORT");
$createYear = date('Y', strtotime($this->item->created));
?>
<div class="articleCreated">
<span class="date"><?php echo $createDay; ?></span>
<span class="month"><?php echo $createMonth; ?></span>
<span class="year"><?php echo $createYear; ?></span>
</div>
before
<?php echo $this->item->event->beforeDisplayContent; ?>
AuthorPostsViewing 5 posts - 1 through 5 (of 5 total)This topic contains 5 replies, has 2 voices, and was last updated by khoand 12 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
date not showing in ja_social
Viewing 5 posts - 1 through 5 (of 5 total)