1
mferreira
Display date in a theme.
  • 2006/8/19 21:47

  • mferreira

  • Just popping in

  • Posts: 57

  • Since: 2006/1/19


Is there some variable that i can use to display the date? I also would like it to be language configurable.

If so, can I get a list of the variables that i can use? like user name or so?

Thanks.
Sorry for my bad english... :)
I love to learn, feel free to tell me when I misspell something.
Using Xoops 2.0.16, FC4, PHP 5.0.4-10.5, Apache 2.0.54-10.4, mysql-4.1.20-1.FC4.1.

2
zyspec
Re: Display date in a theme.
  • 2006/8/19 22:15

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


The easiest way to do this is to use Smarty variables in your theme. One of the best short descriptions of the available Smarty variables can be found H E R E

3
mferreira
Re: Display date in a theme.
  • 2006/8/19 22:27

  • mferreira

  • Just popping in

  • Posts: 57

  • Since: 2006/1/19


Thats great thanks!
Sorry for my bad english... :)
I love to learn, feel free to tell me when I misspell something.
Using Xoops 2.0.16, FC4, PHP 5.0.4-10.5, Apache 2.0.54-10.4, mysql-4.1.20-1.FC4.1.

4
mferreira
Re: Display date in a theme.
  • 2006/8/19 22:34

  • mferreira

  • Just popping in

  • Posts: 57

  • Since: 2006/1/19


Now im searching how to configure it in spanish...
Sorry for my bad english... :)
I love to learn, feel free to tell me when I misspell something.
Using Xoops 2.0.16, FC4, PHP 5.0.4-10.5, Apache 2.0.54-10.4, mysql-4.1.20-1.FC4.1.

5
mferreira
Re: Display date in a theme.
  • 2006/8/19 22:49

  • mferreira

  • Just popping in

  • Posts: 57

  • Since: 2006/1/19


But the
<{$smarty.now|date_format:"%A, %B %e, %Y | %H:%M %Z"}>
gives me the server time, it is also in english.

When i try using the php tag, i get the following error:
Parse error: parse error in /var/www/html/portalmaranatha/html/templates_c/
default-maranatha_new^%%58^584^584B75F7%%theme.html.php on line 258

The error is the same when I empty the template_c fldr
Sorry for my bad english... :)
I love to learn, feel free to tell me when I misspell something.
Using Xoops 2.0.16, FC4, PHP 5.0.4-10.5, Apache 2.0.54-10.4, mysql-4.1.20-1.FC4.1.

6
zyspec
Re: Display date in a theme.
  • 2006/8/19 23:08

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


The easist way to do this for each client is to add a little javascript into your theme. Something like:

<script type="text/javascript">

script>


This will display today's date in a format like
8/19/2006

Login

Who's Online

236 user(s) are online (181 user(s) are browsing Support Forums)


Members: 0


Guests: 236


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits