-
AuthorPosts
-
rick_blaine Friend
rick_blaine
- Join date:
- September 2009
- Posts:
- 13
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 3
- Thanked:
- 1 times in 1 posts
May 5, 2011 at 11:50 am #163621Hi there, congratulations for your great work on my first post 😉
I have a couple of issues with the ja_events custom user.php for K2.
First one, concerning date format, I’ve done what has been already suggested here to get it in spanish format:
line 152:
$createDay = date('M', strtotime( $item->created));
replace with:
$createMonth = JHTML::_('date', $this->item->created, JText::_('%b'));
Despite that, I get all items dated in MAY where there should also be items dated in April. Have a look at the following user page:
http://acme.2conb.com/blog/ricardo-orts-sanchez
All items show May as created date despite some of the articles were created in April:
http://acme.2conb.com/galeria/fantasia/caza-jedi-delta-7-escala-172Second issue concerns images. Despite the fact all images are properly assigned to items, they are not being displayed in the user page. Once again, see:
http://acme.2conb.com/blog/ricardo-orts-sanchezThanks for your help.
Best regards.
himangi Friendhimangi
- Join date:
- April 2011
- Posts:
- 1406
- Downloads:
- 1
- Uploads:
- 86
- Thanks:
- 21
- Thanked:
- 345 times in 332 posts
May 31, 2011 at 4:01 am #393744Hi,
I am getting Database Error: Unable to connect to the database:Could not connect to database on the urls you have provided. Can you please fix it and let me know? Also update your site admin access and ftp access at http://support.joomlart.com/index.php?/Tickets/Ticket/View/71926 so that I can check the issue..
rick_blaine Friendrick_blaine
- Join date:
- September 2009
- Posts:
- 13
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 3
- Thanked:
- 1 times in 1 posts
May 31, 2011 at 7:47 am #393806Hi himangi,
Here are the new links (the site is now in production):
User page (wrong dates, no images everywhere):
http://www.acmalmeria.com/blog/ricardo-orts-sanchez
Example of item created in april, shown with May date on user page:
http://www.acmalmeria.com/galeria/fantasia/caza-jedi-delta-7-escala-172Thanks for your help.
P.S. I’ve just updated the ticket 😉
himangi Friendhimangi
- Join date:
- April 2011
- Posts:
- 1406
- Downloads:
- 1
- Uploads:
- 86
- Thanks:
- 21
- Thanked:
- 345 times in 332 posts
May 31, 2011 at 11:07 am #393844Hi,
I checked http://www.acmalmeria.com/blog/ricardo-orts-sanchez page with your current template as well as original JA Events template installed in your joomla and it seems to me that while creating ACME template, date format / date related code has been changed in the blog related php file overriding the com_content blog files causing this issue..
I would suggest you to find the blog related file in ACME template, take its backup and replace it with the same blog related file from JA events. that should solve your problem with date. Please keep backup of the file you need to relace so that you wont loose any more changes you may have in that.
Hope this is clear enough.
rick_blaine Friendrick_blaine
- Join date:
- September 2009
- Posts:
- 13
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 3
- Thanked:
- 1 times in 1 posts
May 31, 2011 at 11:41 am #393851Hi himangi,
There’s just one difference between the original JA Events user.php file and my overridden one, located at line 152 (as stated in my original post). It’s needed to get dates in any other language than english. I assume the user.php file is the only com_k2 (and not com_content) related file that may be causing the issue. What else can it be?
Sorry if I didn’t make myself clear enough or didn’t get your point :-[
himangi Friendhimangi
- Join date:
- April 2011
- Posts:
- 1406
- Downloads:
- 1
- Uploads:
- 86
- Thanks:
- 21
- Thanked:
- 345 times in 332 posts
June 1, 2011 at 8:27 am #394037do you mean that if you use JA Events template then your date were not getting translated and you made some change in ACME template to translate the dates?
I will check the change you have made in user.php and get back to you.
rick_blaine Friendrick_blaine
- Join date:
- September 2009
- Posts:
- 13
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 3
- Thanked:
- 1 times in 1 posts
June 1, 2011 at 8:34 am #394040That’s correct, all I did was replacing “$createDay = date(‘M’, strtotime( $item->created));” with “$createMonth = JHTML::_(‘date’, $this->item->created, JText::_(‘%b’));” to get the dates in the right format.
Looking forward to your findings 🙂
himangi Friendhimangi
- Join date:
- April 2011
- Posts:
- 1406
- Downloads:
- 1
- Uploads:
- 86
- Thanks:
- 21
- Thanked:
- 345 times in 332 posts
June 1, 2011 at 9:21 am #394051yes I saw the change. I am not sure about the syntax though. Will ask some Ja developer to confirm if that can work..
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
June 1, 2011 at 9:31 am #394053Hi rick_blaine,
Try using this:
$createDay =JText::_(date('M', strtotime( $item->created)) ) ;
rick_blaine Friendrick_blaine
- Join date:
- September 2009
- Posts:
- 13
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 3
- Thanked:
- 1 times in 1 posts
June 24, 2011 at 8:24 am #398180Hi hungd, thanks for your help. Unfortunately it didn’t make a difference. After reviewing the entire site I’ve found that this problem only affects user page to one (or some,I’ven’t reviewed them all!) particular users. For example:
http://www.acmalmeria.com/blog/jose-joaquin-ramos-miras (correct dates/month)
http://www.acmalmeria.com/blog/ricardo-orts-sanchez (wrong dates/month, it shows current one)Any hints?
Best regards.
-
AuthorPosts
This topic contains 10 replies, has 3 voices, and was last updated by rick_blaine 13 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum