What is wrong with this SmartyTemplate code?

  1. When I try to SAVE that template I get a general error (sorry, forgot the error #).

    I assume I have a syntax error.

  2. I'm not sure. Can you give me more detail on the error message? What's the exact time the error was generated?

  3. Also, which product are you testing this on?

  4. product:: speech & language Exercises
    plan: (probably doesn't matter since it would apply to all plans)
    but Plan code: Morespeech.com
    plan name: MoreSpeech.com

    error: 500: An unexpected error occured. Please try again later.

    Alternative solution:
    is there an alterernative comparison (besides == or eq) that checks for $A contains $B (case insensensive)

  5. Smarty reports that our security settings do not allow the strpos function. By default, the security settings are very restrictive. I'm not sure it's necessary to disallow the use of strpos. We've have to have the dev team evaluate and whitelist this function. Off the top of my head, I don't see a workaround.

  6. And, just to be clear, I want the Case Insensitive version (Stripos).
    (Althought strpos would work in a pinch)

  7. Any news on this"?

  8. The stripos function is now available with the email template system overhaul. Let us know how that works out for you. Thanks for the suggestion!

  9. Marc Guyer closed this discussion on 22 Apr, 2015 06:02 PM.

  10. Marc Guyer closed this discussion on 02 Jun, 2015 02:46 PM.

Discussions are closed to public comments.
If you need help with Cheddar please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions