-
AuthorPosts
-
ger12 Friend
ger12
- Join date:
- May 2012
- Posts:
- 185
- Downloads:
- 7
- Uploads:
- 0
- Thanks:
- 62
- Thanked:
- 8 times in 1 posts
March 15, 2013 at 6:50 pm #185886Hi, 🙂
How can i change the date of ja topbar. it is possible ? :-[
thank in advance
Ger.
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
March 17, 2013 at 8:24 am #486717Hi
Goto this file templates/ja_Social/ blocks/topbar.php
and find this code
<p class="ja-day">
<?php
echo "<span class="day">".JText::_(strtoupper(date ('l')))."</span>";
echo "<span class="date">, ".date ('m')." ".date ('d').date ('S')."</span>";
?>
</p>
<p class="ja-updatetime"><span><?php echo JText::_('Last update')?></span><em><?php echo T3Common::getLastUpdate(); ?></em></p>You can change the date format | date (‘m’).” “.date (‘d’).date (‘S’) | or remove what you don’t need to be showed
Regards
1 user says Thank You to pavit for this useful post
ger12 Friendger12
- Join date:
- May 2012
- Posts:
- 185
- Downloads:
- 7
- Uploads:
- 0
- Thanks:
- 62
- Thanked:
- 8 times in 1 posts
March 19, 2013 at 4:07 am #486962Thank you Pavit,
How can i change 03
i would like to show March instead 03
How can i change the other months too.
Thanks in advance.
Ger.
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
ger12 Friendger12
- Join date:
- May 2012
- Posts:
- 185
- Downloads:
- 7
- Uploads:
- 0
- Thanks:
- 62
- Thanked:
- 8 times in 1 posts
March 19, 2013 at 11:09 pm #487099Thank you, i saw the GUIDE and i found that code:
echo date(‘l jS of F Y h:i A’);
shows like:
Tuesday 19th of March 2013 08:02 PM
Its ok for me, but how can put that in spanish, i try to put setlocale or strftime instead date but i dont get the result in spanish. :((
What is the code to put Tuesday 19th of March 2013 08:02 PM in spanish ?
Thank you in advance.
Ger.
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
March 20, 2013 at 6:00 am #487137Did you installed the Spanish language for your website ?
ger12 Friendger12
- Join date:
- May 2012
- Posts:
- 185
- Downloads:
- 7
- Uploads:
- 0
- Thanks:
- 62
- Thanked:
- 8 times in 1 posts
March 20, 2013 at 10:58 pm #487260No, where can i found the spanish language ?
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
ger12 Friendger12
- Join date:
- May 2012
- Posts:
- 185
- Downloads:
- 7
- Uploads:
- 0
- Thanks:
- 62
- Thanked:
- 8 times in 1 posts
April 4, 2013 at 5:02 pm #488872Thank you pavit,
i install spanish language from that page.
But i dont have any result using : echo date(‘l jS of F Y h:i A’);
:((
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
April 4, 2013 at 7:22 pm #488880Hi
Did you set the Spanish language as default for your front end ?
Did you cleaned you cleaned your JaT3 cache ?
If problem was still not solved could you send me via PM a temp super user account to your administrator page so i can better check what’s happening ?
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
April 5, 2013 at 9:31 pm #489001Hi
I checked your website and the error was in the date format in this file templatesja_socialblockstopbar.php
You used this format echo date(‘l jS of F Y h:i A’); echo takes server values and do not translate the date in spanish taking content from your ini file.
you need to have it as is now
<p class="ja-day">
<?php
echo "<span class="day">".JText::_(strtoupper(date ('l')))."</span>";
echo "<span class="date">, ".date ('m')." ".date ('d').date ('S')."</span>";
?>
</p>Then change your preferred settings values respecting the format
e.g. date (‘m’) you can change in date (‘F’) to have Abril instead of 041 user says Thank You to pavit for this useful post
ger12 Friendger12
- Join date:
- May 2012
- Posts:
- 185
- Downloads:
- 7
- Uploads:
- 0
- Thanks:
- 62
- Thanked:
- 8 times in 1 posts
April 6, 2013 at 7:36 pm #489043Hi Pavit, thank you for your patience.
I use that code:
[PHP]<p class=”ja-day”>
<?php
echo “<span class=”day”>”.JText::_(strtoupper(date (‘l’))).”</span>”;
echo “<span class=”date”>, “.date (‘d’).” de “.date (‘F’).” de “.date (‘Y’).”</span>”;
?>
[/PHP]and show:
I need ABRIL
Thank you in advance.
Ger.
ger12 Friendger12
- Join date:
- May 2012
- Posts:
- 185
- Downloads:
- 7
- Uploads:
- 0
- Thanks:
- 62
- Thanked:
- 8 times in 1 posts
April 10, 2013 at 12:38 am #489366I dont know why the date show some part in spanish and another part in english…
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
April 10, 2013 at 6:44 am #489394<em>@ger12 368296 wrote:</em><blockquote>I dont know why the date show some part in spanish and another part in english…</blockquote>
You can try this way
Open
<p class="ja-day">
<?php
echo "<span class="day">".JText::_(strtoupper(date ('l')))."</span>";
echo "<span class="date">, ".date ('d')." de ".date ('F')." de ".date ('Y')."</span>";
?>
Change to
<p class="ja-day">
<?php
echo "<span class="day">".JText::_(strtoupper(date ('l')))."</span>";
echo "<span class="date">, ".date ('d')." de ".JText::_(date ('F'))." de ".date ('Y')."</span>";
?>
Remember to clear cache from Admin area
Let me know the result
-
AuthorPosts
This topic contains 15 replies, has 3 voices, and was last updated by ger12 11 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum