Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 10 matches
Smarty Forum Index
Author Message
  Topic: upgrading 2.6.28 to 3.1.21
shwekhaw

Replies: 3
Views: 14903

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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 &amp. I should have gusssed Smile Thanks for reply anyway.
  Topic: amp modifier
shwekhaw

Replies: 3
Views: 6500

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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 ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP