All 'Created Date' of articles show today's date

Advanced newspaper or magazine Joomla template to build news website with unique and detailed design.
GK User
Sat Dec 19, 2009 10:49 pm
Hey. First, I'm a massive fan of Gavick.com, and I've used a few of these templates already. You guys do great work!

One look at World News, and I knew I'd use it for my personal site, http://Spanners.net.au

However, all of the articles displayed show today's date instead of the Created Date.

For articles which have a Read More button, when I click Read More, it shows the correct Created and Last Updated date. For those that don't have a Read More line, they just show today's date.

I've checked on Safari, FF and IE8 on PC, and Safari and FF on Mac. All have the same problem.

I've checked the created date in the Article Manager, and the date is correct. It just shows today's date on the front end on all articles.

I've also checked the Menu items, and I have Created and/or Modified Date set to show.

I've gone to the Template parameters and I've turned the Show Date on and off, but this made no change.

I have checked that all users are on the same time zone (East Australia, Guam, Vladivostok)

Hopefully this is enough info for you to help me.
User avatar
Expert Boarder

GK User
Sun Dec 20, 2009 9:30 am
How did you change the logo? It doesn´t work on my site. http://www.b4f.me
User avatar
Fresh Boarder

GK User
Sun Dec 20, 2009 7:51 pm
In addition to the template CSS file you need to go to the following file and make the demension changes:
gk_header.php
Here is the path.
templatesgk_twnlayoutsblocksgk_header.php
User avatar
Fresh Boarder

GK User
Tue Dec 22, 2009 2:20 am
Heeeeyyyyyyy! Looks like there's an update for TWN template. The update fixes the Date and Time/Language issue.

http://www.gavick.com/members-area/article/download-4-commercial-templates/49-the-world-news-december-09-joomla-template-.html

There's the link. I'll install and let you all know how I go.
User avatar
Expert Boarder

GK User
Tue Dec 22, 2009 2:31 am
OK, so it doesn't look like this has fixed the issue on my website Spanners.net.au

Tested on FF3 and Safari on a Mac.

All it did was shrink the width of my logo.

Need help please Gavick!
User avatar
Expert Boarder

GK User
Tue Dec 22, 2009 2:32 am
Just tested IE8 and FF on PC, no good either.
User avatar
Expert Boarder

GK User
Tue Dec 22, 2009 7:10 am
I have a same problem. I asked gavick 17.12.2009 and the didnt answer to me. what am I payed for? for this support? gavick, pls help us
User avatar
Fresh Boarder

GK User
Tue Dec 22, 2009 10:19 am
Would you explaine please, how to update the template. I tried it by using the installer but it doesn´t work. Do I have to change something via FTP?
User avatar
Fresh Boarder

GK User
Tue Dec 22, 2009 12:05 pm
You have to upload the files from the zip file


Read the "readme.txt" file

Overwrite the files in the template location ( templates/gk_twn/ ) with
files from TEMPLATE catalog
User avatar
Expert Boarder

GK User
Tue Dec 22, 2009 1:39 pm
jfpeeples wrote:
In addition to the template CSS file you need to go to the following file and make the demension changes:
gk_header.php
Here is the path.
templatesgk_twnlayoutsblocksgk_header.php


Sorry, but I cannot find anything in this file about logo dimensions. Is there no instruction manual how to change the logo?
User avatar
Fresh Boarder

GK User
Tue Dec 22, 2009 4:14 pm
Take a look at end of line 29:

Code: Select all
<img src="<?php echo str_replace("index.php/","",$this->URI->root()); ?>templates/<?php echo $this->template->template; ?>/images/logo.png" alt="logo"  height="75" width="288"/>
User avatar
Fresh Boarder

GK User
Tue Dec 22, 2009 4:42 pm
tschersich wrote:
Take a look at end of line 29:

Code: Select all
<img src="<?php echo str_replace("index.php/","",$this->URI->root()); ?>templates/<?php echo $this->template->template; ?>/images/logo.png" alt="logo"  height="75" width="288"/>


Now it works. Thank you so much.
User avatar
Fresh Boarder

GK User
Tue Dec 22, 2009 7:35 pm
this zip file helps with date on the top of page, and other languages, but we are asking for this:

However, all of the articles displayed show today's date instead of the Created Date.

For articles which have a Read More button, when I click Read More, it shows the correct Created and Last Updated date. For those that don't have a Read More line, they just show today's date.

the time on front of the page is wrong!
User avatar
Fresh Boarder

GK User
Tue Dec 22, 2009 10:44 pm
This is exactly why I started this thread. The article dates are incorrect unless you open them via the Read More button.

I've installed the update correctly via Cyberduck (Mac) into the TWN template folder and the layouts/blocks folder, but this didn't fix anything for me.
User avatar
Expert Boarder

GK User
Mon Dec 28, 2009 3:23 am
Still no action on this problem? My dates are still showing today's date.
User avatar
Expert Boarder

GK User
Mon Jan 04, 2010 1:36 am
We still need a fix for The World News template for the Created Dates. Still showing todays date rather than the date created at the top of articles when a Read More button is present.

Nice new website by the way.
User avatar
Expert Boarder

teitbite
Mon Jan 04, 2010 11:15 am
Hi

I got a solution.

Please edit files: templates/gt_twn/html/com_content/frontpage/default_item.php, templates/gt_twn/html/com_content/article/default.php and add a line to the top of the code.

Code: Select all
$this->article = $this->item;


It's not pretty, but it works for me. But it's not changing the fact that it needs to be fix by programmer.
User avatar
Moderator

GK User
Mon Jan 04, 2010 10:50 pm
Trying it out now...
User avatar
Expert Boarder

GK User
Mon Jan 04, 2010 10:59 pm
The front page has worked correctly (see Spanners.net.au), but the other menu items haven't. I click on one of the menu items and the dates still show up as today's day.

Also, when I click Read More on those articles that have it, the article is completely missing. No text.

I'm looking where else I can put that snippet of code. But any help you could give, teitbite, would be greatly appreciated.

My PHP is a bit limited.
User avatar
Expert Boarder

GK User
Mon Jan 04, 2010 11:13 pm
After a bit of trial and error, I have edited the default_item.php file from the frontpage folder. Lines 1 -14 look like...

Code: Select all
<?php
/**
* @package   Template Overrides YOOtheme
* @version   1.5.8 2009-11-30 14:31:42
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright (C) 2007 - 2009 YOOtheme GmbH
* @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
*/
$this->article = $this->item;
// no direct access
defined('_JEXEC') or die('Restricted access');

$canEdit   = ($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own'));
?>


Clicked Menu items still display today's date with this, but the front page is fine, correct Created Dates are displayed.

When I do the same to the default.php file from the article folder, the dates don't change, and articles with a Read More disappear when you click Read More.

I'm still working on this.
User avatar
Expert Boarder

GK User
Mon Jan 04, 2010 11:40 pm
CURRENT SOLUTION

OK I think I have it fixed :woohoo: . Here's what I have.

Open templates/gt_twn/html/com_content/frontpage/default_item.php and paste the following into Line 9.

Code: Select all
$this->article = $this->item;


Then open templates/gt_twn/html/com_content/category/blog_item.php and paste the following into Line 9.

Code: Select all
$this->article = $this->item;


Finally, open templates/gt_twn/html/com_content/section/blog_item.php and paste the following into Line 9.

Code: Select all
$this->article = $this->item;


@teitbite, can you confirm this is correct? Is this going to stuff my website down the track?
User avatar
Expert Boarder

teitbite
Tue Jan 05, 2010 9:02 am
Hi

Yes it's correct. I know that there must be way to place it just once, but I don't know joomla structure that good :(
User avatar
Moderator

GK User
Sat Feb 06, 2010 10:02 pm
Has anyone else found a way to place this just once instead of editing the multiple files?
User avatar
Senior Boarder

GK User
Sat Feb 06, 2010 11:48 pm
Thanks Spanner, just thanks. I'm on the good way to eradicate all little bugs ;)

Phil
www.ultrafondus.net
User avatar
Fresh Boarder

GK User
Thu Mar 11, 2010 4:07 pm
I am using the new Hewahoo Template and there is the same problem.
But i am not sure where to place your fix-code.

because i think line 9 is not the right position on this template.
CAn someone tell me where to place the fix code?
User avatar
Junior Boarder

teitbite
Thu Mar 11, 2010 11:06 pm
Hi

Please put it in line 12 for example. The main idea is to have it before the first occurence of $this->article and not in commented or inside condition/function.
User avatar
Moderator

GK User
Sun Apr 18, 2010 9:31 am
I've added the lines in the 3 files and the date showes correct. But in the blog section I only want the created date and icons to show and in the article the author and reactions must be added (as in the demo of TWN). How to solve that problem. (when change the parameters in Joomla it takes effect on the blog section as the article)
User avatar
Fresh Boarder

teitbite
Tue Apr 20, 2010 10:06 am
Hi

This setting are used globaly thought. So the only way is to modyfie the code of displaying blog. Please paste here the code from file and please tell me how it should be displaying.
User avatar
Moderator

GK User
Tue Apr 20, 2010 10:36 am
This how it looks now. Right date but too much info (author, comments):




This is how it should look. Todays date is offcourse wrong




I added tis line: $this->article = $this->item; to the files and the reult was too much info (author, comment) and all i wanted was a date adjustment :-)
User avatar
Fresh Boarder

teitbite
Tue Apr 20, 2010 1:34 pm
Hi

Isn't it possible to set it to not display in module settings?
User avatar
Moderator

GK User
Tue Apr 20, 2010 1:42 pm
No! I want to show the author and comments in the article. Just like the TWN Demo does.

1. Do not want to show author and comments in the blog style

2. want to show the author and comments in each article like in the demo (but in the demo there is the same problem of showing todays date)
User avatar
Fresh Boarder

teitbite
Tue Apr 20, 2010 8:54 pm
Hi

Ok. So I would need ftp login data and also the url of Your site. Please send it to me and please show me an example of page to modyfie at Your site.
User avatar
Moderator

GK User
Wed Apr 21, 2010 8:35 am
Done!
User avatar
Fresh Boarder

GK User
Thu Apr 22, 2010 11:25 pm
Any update yet?
User avatar
Fresh Boarder

teitbite
Fri Apr 23, 2010 10:10 am
Hi

Sorry for delay. I couldn't find the right file for this, so I've made the simplest thing I could think of. I've added some code at the end of template.css file:

Code: Select all
.blog .author,
.blog .comments {
   display:none;
}


Please tell me if it's ok.
User avatar
Moderator

GK User
Fri Apr 23, 2010 10:43 am
Excellent! Thanks for that.

But it is only on the section blog style. I also wat to add it to the categorie style (or the other way around, can't tell for sure at the moment).

This should also be updatet at the demo template.
User avatar
Fresh Boarder

teitbite
Mon Apr 26, 2010 9:38 am
Hi

Please show me the page where You want to remove it too.
User avatar
Moderator

GK User
Mon Apr 26, 2010 10:00 am
Thanks for your reply but I solved it. Sometimes it is better to think first before posting a message. I forgot to delete it.

I didn't add the line mentioned in this thread to the category file...

Once again, thanks for your excellent help!
User avatar
Fresh Boarder

GK User
Wed May 05, 2010 3:05 pm
My Section and Category blog pages show Today's Date all the time. See here:

Image

For some reason the single article pages display the correct date without a problem.

I have tried to apply the fix to the blog_item.php files in the /section and /category directories of the template files and they work but not well. I added

<?php $this->article = $this->item; ?>

around line 16 of the files, right after the $canEdit equation.

As you can see here:

Image

the date gets corrected but now I am getting the Written By field, which I don't want and which is getting display in the wrong place too.

Please help me fix this problem. And why doesn't Gavick issue a new template version that corrects this issue?

Thanks in advance!

Sean
User avatar
Fresh Boarder

teitbite
Thu May 06, 2010 11:07 pm
Hi

Please see module configuration to disable this Written by thing.
User avatar
Moderator


cron