Author |
Message |
Topic: upgrading 2.6.28 to 3.1.21 |
shwekhaw
Replies: 3
Views: 14903
|
Forum: Smarty 3 Posted: Tue May 28, 2019 6:26 am Subject: upgrading 2.6.28 to 3.1.21 |
I am getting fatal php error for substr modifier in in variables with $variable|substr due to security.
What is the error text?
It is as follows.
[28-May-2019 03:17:26 UTC] PHP Fatal error: Uncaug ... |
Topic: upgrading 2.6.28 to 3.1.21 |
shwekhaw
Replies: 3
Views: 14903
|
Forum: Smarty 3 Posted: Tue May 28, 2019 2:18 am Subject: upgrading 2.6.28 to 3.1.21 |
Hi. I am moving the site from 2.6.28 to 3.1.21 I am getting fatal php error for substr modifier in in variables with $variable|substr due to security. Is there work around to this?
Also I have noti ... |
Topic: Using direct php functions allowed |
shwekhaw
Replies: 0
Views: 16135
|
Forum: Plugins Posted: Wed Dec 10, 2014 4:45 pm Subject: Using direct php functions allowed |
In our old code we had if statement with strpos($haystack,$needle) format just like php code syntax. I get following error in log file. However the code still works regardless of error.
Error: ... |
Topic: amp modifier |
shwekhaw
Replies: 3
Views: 6500
|
Forum: General Posted: Sat Oct 11, 2014 5:21 am Subject: amp modifier |
Yes it is custom modifier. I found the code in func library. It just change & to &. I should have gusssed Thanks for reply anyway. |
Topic: amp modifier |
shwekhaw
Replies: 3
Views: 6500
|
Forum: General Posted: Wed Oct 08, 2014 9:00 pm Subject: amp modifier |
I am trying to understand a smarty code in eCommerce software. It is coded like this {$variable|amp}. I could not find any documentation on amp. Is it modifier? What does it do? |
Topic: Undesired new lines in if select loop with if statement |
shwekhaw
Replies: 2
Views: 5954
|
Forum: General Posted: Sun Nov 18, 2007 7:23 pm Subject: Undesired new lines in if select loop with if statement |
Great! it works. It puts all options in one long line. So I put {"\n"} just before {/if} and it looks great now. |
Topic: Undesired new lines in if select loop with if statement |
shwekhaw
Replies: 2
Views: 5954
|
Forum: General Posted: Sat Nov 17, 2007 11:42 pm Subject: Undesired new lines in if select loop with if statement |
My html page is over 300KB. The problem is due to unnecessary newlines.
I have about 1500 categories with parent and child two level categoy structure.
About 25 are parent categories and 1475 are ch ... |
Topic: truncate by words |
shwekhaw
Replies: 8
Views: 21093
|
Forum: General Posted: Fri Apr 08, 2005 5:07 am Subject: truncate by words |
Nice.. very nice..
It totally works. Do not worry, you got me reading Smarty manual up to chapter 8. I did not know you can use perl like syntax in php language. I have some perl and C background so ... |
Topic: truncate by words |
shwekhaw
Replies: 8
Views: 21093
|
Forum: General Posted: Fri Apr 08, 2005 1:59 am Subject: truncate by words |
Looks like I have to learn PHP to do this modification. I was hoping smarty has some built-in fundtion for this. |
Topic: truncate by words |
shwekhaw
Replies: 8
Views: 21093
|
Forum: General Posted: Thu Apr 07, 2005 4:48 am Subject: truncate by words |
I like to truncate by words For example I want to display only first two words of a phrase or sentence. First two words can be just 10 letters or 100 letters. In another word, I want to left out every ... |
|