-
AuthorPosts
-
oilproduction Friend
oilproduction
- Join date:
- November 2008
- Posts:
- 33
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 11
- Thanked:
- 1 times in 1 posts
May 12, 2009 at 3:51 pm #141114dears, I want to add the created date of each article at the JA-News (ultimas noticas) at the home
http://oilproduction.net/cms/
Could you help me?thanks for your time
MarceloAnonymous ModeratorJA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
May 22, 2009 at 10:00 am #305512Hi
For the case, open templatesja_opalhtmlmod_janewsblog_item.php file, at about line 43, find following code:
<h4 class="jazin-title"><a href="<?php echo $link;?>" title="<?php echo strip_tags($row->title);?>"><?php echo $row->title;?></a></h4>and change to:
<h4 class="jazin-title"><a href="<?php echo $link;?>" title="<?php echo strip_tags($row->title);?>"><?php echo $row->title;?></a> - <?php echo JHTML::_('date', $row->created, '%a - %d <span class="month">%b</span>'); ?></h4>
1 user says Thank You to JA Developer for this useful post
sushismb Friendsushismb
- Join date:
- October 2008
- Posts:
- 370
- Downloads:
- 59
- Uploads:
- 24
- Thanks:
- 86
- Thanked:
- 8 times in 1 posts
May 27, 2011 at 11:40 am #393188Hello,
Unfortunately, this didn’t work on mine.
I’m using Teline with JA News 1.3.2.
Hope you could help!
himangi Friendhimangi
- Join date:
- April 2011
- Posts:
- 1406
- Downloads:
- 1
- Uploads:
- 86
- Thanks:
- 21
- Thanked:
- 345 times in 332 posts
sushismb Friendsushismb
- Join date:
- October 2008
- Posts:
- 370
- Downloads:
- 59
- Uploads:
- 24
- Thanks:
- 86
- Thanked:
- 8 times in 1 posts
May 30, 2011 at 6:17 pm #393675Hello himangi,
This is strange, the file says 1.3.4 but when I install and open the module, it says 1.3.2. And in fact, it does have a function to show/hide created date. SHOW is selected but it is not showing. Any other settings required?
himangi Friendhimangi
- Join date:
- April 2011
- Posts:
- 1406
- Downloads:
- 1
- Uploads:
- 86
- Thanks:
- 21
- Thanked:
- 345 times in 332 posts
May 30, 2011 at 6:40 pm #393683Hi,
You are right, I had not seen the version displayed after installation. I will ask JA developers to correct this.
Regarding the created date display, it does not require any other setting than the show / hide option. Please try clearing cache before checking the result. If is still does not work, please give your site url and joomla admin access at http://support.joomlart.com/index.php?/Tickets/Ticket/View/73484. I will take a look at it on your site..
1 user says Thank You to himangi for this useful post
sushismb Friendsushismb
- Join date:
- October 2008
- Posts:
- 370
- Downloads:
- 59
- Uploads:
- 24
- Thanks:
- 86
- Thanked:
- 8 times in 1 posts
June 1, 2011 at 8:50 am #394042Hello himiangi,
I figured why the date was not showing despite that I enabled it at the backend.
I disabled the “intro item” but I have 5 “link items”.
What I want is to show the date on all those link items.
By the way, I posted a ticket so you can see the details of the site.
Thank you!
himangi Friendhimangi
- Join date:
- April 2011
- Posts:
- 1406
- Downloads:
- 1
- Uploads:
- 86
- Thanks:
- 21
- Thanked:
- 345 times in 332 posts
June 1, 2011 at 12:02 pm #394106Hi,
To show the date for links as well, please follow the steps below.
– Go to modules/mod_janews/tmpl and copy blog_item.php
– Now go to templates/your_template/html, create a new folder named mod_janews, if it is not already there.
– Once the folder is created, paste the blog_item.php you have already copied from the module files.
– Now open the blog_item.php and go to line no. 61 and copy following code
<blockquote><?php if ($showdate) : ?><span class=”createdate”><?php echo JHTML::_(‘date’, $row->created, JText::_(‘DATE_FORMAT_LC2’));?></span>
<?php endif; ?>
</blockquote>– Now go to line no 95 to find <blockquote><li>
<a title=”<?php echo strip_tags($row->introtext); ?>” href=”<?php echo $link; ?>”>
<?php echo $row->title; ?></a>
</li> </blockquote>and add the code related to the date, you have copied earlier before </li>
– Save the file and you will see the date appearing after article link as well.1 user says Thank You to himangi for this useful post
sushismb Friendsushismb
- Join date:
- October 2008
- Posts:
- 370
- Downloads:
- 59
- Uploads:
- 24
- Thanks:
- 86
- Thanked:
- 8 times in 1 posts
June 1, 2011 at 12:37 pm #394115himangi, you are a SUPERSTAR!
No one here provided the solution but you!
One last thing though, where do I change the date format? With the current format, its year/month/date/time. I just want the month/date there.
Thanks so much!!!
EDIT NOTE: I figured out how to change the format. Thanks again!
-
AuthorPosts
This topic contains 9 replies, has 4 voices, and was last updated by sushismb 13 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum