Author |
Message |
Topic: feature request: function which could loading js/css files |
jLix
Replies: 27
Views: 46615
|
Forum: Smarty 3 Posted: Tue Aug 04, 2009 8:12 am Subject: feature request: function which could loading js/css files |
It's "best practice" to put them in the <head>, but this is not law. No one will send you to Hell because there is a <script> tag in the <body>. Some developers even adv ... |
Topic: assign php_variable into Javascript function argument in Sm |
jLix
Replies: 3
Views: 9243
|
Forum: General Posted: Mon Jul 13, 2009 12:15 am Subject: assign php_variable into Javascript function argument in Sm |
TIP: always have a look in the source code of your browser when things are not going according to plan in order to see what the result of the PHP/Smarty parsing looks like. Too often developers only l ... |
Topic: Suffix in a day (1st, 2nd...) |
jLix
Replies: 2
Views: 14866
|
Forum: Tips and Tricks Posted: Fri Jul 03, 2009 2:33 am Subject: Re: Suffix in a day (1st, 2nd...) |
If you would like to help me, please let me know, how to remove 0 in the days where, the day is less than 10. For example, it gives 01st, but I want 1st.
{'l, jS F, Y'|date}instead of{ ... |
Topic: How to add an image - output to this code ... |
jLix
Replies: 1
Views: 7246
|
Forum: General Posted: Thu Jul 02, 2009 12:26 am Subject: How to add an image - output to this code ... |
To markup the breadcrumbs I'd suggest you use an ordered list. The divider image is presentation only, so it should be added as a background-image by CSS.
HTML/Smarty:<ol id="breadcrumbs&q ... |
Topic: Includes are terribly slow - what to do? |
jLix
Replies: 6
Views: 14935
|
Forum: General Posted: Wed Jul 01, 2009 5:03 pm Subject: Includes are terribly slow - what to do? |
How many different templates do you have to include and can you give some examples of them to get an idea what we're talking about here? |
Topic: How to sum of numeric values in a array in smarty template |
jLix
Replies: 5
Views: 32553
|
Forum: Smarty Development Posted: Wed Jul 01, 2009 11:30 am Subject: How to sum of numeric values in a array in smarty template |
{$val_arr|array_sum}
I believe it should be {$val_arr|@array_sum} as czarnowski mentioned earlier (the function needs to be applied on the entire array, not on the individual elem ... |
Topic: Inport tpl not reading code with javascript. |
jLix
Replies: 9
Views: 11570
|
Forum: General Posted: Wed Jul 01, 2009 11:12 am Subject: Inport tpl not reading code with javascript. |
If you make a direct call to the PHP file that uses these templates and everything looks fine, then it's not a Smarty problem. It's probably the Ajax call where things go wrong. Perhaps the following ... |
Topic: Editing smarty code using dreamweaver cs3 |
jLix
Replies: 2
Views: 7896
|
Forum: General Posted: Wed Jul 01, 2009 10:48 am Subject: Editing smarty code using dreamweaver cs3 |
I use just the regular { and } for Smarty and have not experienced this problemn recently. I remember that in Dreamweaver MX 2004 I had the same problem, but that's a long time ago.
I guess the use ... |
Topic: Using a SWF Inside A Smarty Template |
jLix
Replies: 25
Views: 41762
|
Forum: General Posted: Fri Jun 19, 2009 7:13 pm Subject: Using a SWF Inside A Smarty Template |
The problem, here, is that the SWF menubar in question is already
working in a number of my websites. For an example, go to:
"http://www.westerncardinal.com/wci_pages/WCI_SalesMain.php".
... |
Topic: {json} |
jLix
Replies: 6
Views: 28676
|
Forum: Plugins Posted: Thu Jun 18, 2009 6:17 pm Subject: {json} |
That's correct and therefor it is stated on the [url=http://jlix.net/extensions/smarty/json]download page that json_decode() support is a requirement.
json_decode() is part of PHP, version 5.2.0 and ... |
Topic: javascript |
jLix
Replies: 3
Views: 7173
|
Forum: General Posted: Sun Jun 14, 2009 10:24 pm Subject: javascript |
Perhaps the following is what causes the problem:value='username'onclick="vider()"Should be:value='username' onclick="vider()"
<offtopic>
It's advised not ... |
Topic: Make website design - help |
jLix
Replies: 15
Views: 17684
|
Forum: General Posted: Sun Jun 14, 2009 10:09 pm Subject: Make website design - help |
Yes |
Topic: javascript |
jLix
Replies: 3
Views: 7173
|
Forum: General Posted: Sun Jun 14, 2009 10:08 pm Subject: javascript |
Compare the source code that your browser recieves (view source) of both the Smarty and non-Smarty template. |
Topic: A tip a day - {cycle} tag in Smarty for color banding |
jLix
Replies: 4
Views: 28693
|
Forum: Article Discussions Posted: Fri Jun 12, 2009 6:40 pm Subject: A tip a day - {cycle} tag in Smarty for color banding |
I updated the example in SVN, it will get updated on the site at some point.
That's just great. Thanks! |
Topic: A tip a day - {cycle} tag in Smarty for color banding |
jLix
Replies: 4
Views: 28693
|
Forum: Article Discussions Posted: Thu Jun 11, 2009 9:38 pm Subject: A tip a day - {cycle} tag in Smarty for color banding |
Good to see you don't follow the official Smarty documentation or Smarty book in which they put the make-up straight into the markup: <tr bgcolor="{cycle values="#eeeeee,#d0d0d0"}&qu ... |
|