Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Search found 15 matches
Smarty Forum Index
Author Message
  Topic: FlatPress
NoWhereMan

Replies: 2
Views: 9627

PostForum: Showcase   Posted: Tue Feb 27, 2007 3:01 pm   Subject: FlatPress
Thanks Smile
  Topic: Italiani dove siete?
NoWhereMan

Replies: 29
Views: 67459

PostForum: Language: Italian   Posted: Thu Feb 22, 2007 1:13 pm   Subject: Italiani dove siete?
mi accodo.
  Topic: Smarty and wordpress/flatpress filters... need advice
NoWhereMan

Replies: 0
Views: 3326

PostForum: General   Posted: Wed Feb 14, 2007 1:17 pm   Subject: Smarty and wordpress/flatpress filters... need advice
Well, FlatPress is the project I've been working on; it uses Smarty, but since now it never used the real power of Smarty, and its use was limited to pass some bunch of variables in when some block ta ...
  Topic: [SValidate][reqs?] Default transform + standard php filters
NoWhereMan

Replies: 0
Views: 6263

PostForum: Add-ons   Posted: Thu Feb 01, 2007 9:06 pm   Subject: [SValidate][reqs?] Default transform + standard php filters
Is there something like a "default transform" ?
I would like to do something like

SmartyValidate::add_default_transform('stripslashes');

so that it is always applied to every validate ...
  Topic: [SmartyValidate] Disconnecting a Control Panel
NoWhereMan

Replies: 0
Views: 8121

PostForum: Add-ons   Posted: Thu Feb 01, 2007 8:49 pm   Subject: [SmartyValidate] Disconnecting a Control Panel
I'm using SmartyValidate as part of my blogging system. I have a central control panel, where every form managed SmartyValidate.

At the moment I register every time I enter a form and unregister/re ...
  Topic: SmartyValidate 2.7 released
NoWhereMan

Replies: 49
Views: 181797

PostForum: Add-ons   Posted: Thu Feb 01, 2007 8:41 pm   Subject: SmartyValidate 2.7 released
append problem. this may be a bug
http://www.phpinsider.com/smarty-forum/viewtopic.php?t=10238
  Topic: notempty plugin (shorthand conditional statement)
NoWhereMan

Replies: 6
Views: 12746

PostForum: Plugins   Posted: Thu Feb 01, 2007 8:18 pm   Subject: notempty plugin (shorthand conditional statement)
A big problem is that Smarty doesn't support parenthesis or any other grouping/nesting device of that sort. So you are going to want to do things like {$foo|iif:($bar|iif:$baz:$belie):$blitzen} -- but ...
  Topic: notempty plugin (shorthand conditional statement)
NoWhereMan

Replies: 6
Views: 12746

PostForum: Plugins   Posted: Thu Feb 01, 2007 7:31 pm   Subject: notempty plugin (shorthand conditional statement)
nice one... I like the "iif" name too Very Happy I might consider ripping off your idea Very Happy

it's not so meaningless or confusing, it's just a kind of perlism IIRC, as a said, considere adding a pa ...
  Topic: notempty plugin (shorthand conditional statement)
NoWhereMan

Replies: 6
Views: 12746

PostForum: Plugins   Posted: Thu Feb 01, 2007 6:47 pm   Subject: notempty plugin (shorthand conditional statement)
You may want to use count_characters:


{* Example: {$foo|count_characters} *}

{if $foo|count_characters > 0}

{/if}


Also, for default just ...
  Topic: notempty plugin (shorthand conditional statement)
NoWhereMan

Replies: 6
Views: 12746

PostForum: Plugins   Posted: Thu Feb 01, 2007 11:43 am   Subject: notempty plugin (shorthand conditional statement)
This is very useful for simple conditional tests

<?php

/**
* Smarty notempty modifier plugin
*
* Type: modifier
* Name: notempty
* Purpose: print a message if t ...
  Topic: FlatPress
NoWhereMan

Replies: 2
Views: 9627

PostForum: Showcase   Posted: Wed Jan 31, 2007 3:47 pm   Subject: FlatPress
http://flatpress.nowhereland.it
FlatPress blog uses smarty + smartyvalidate for its themes Smile
  Topic: [SmartyValidate] Problem with append ?
NoWhereMan

Replies: 2
Views: 8287

PostForum: Add-ons   Posted: Sun Jan 28, 2007 10:54 am   Subject: [SmartyValidate] Problem with append ?
{validate id="subject" message=$panelstrings.error.subject append="error"}
{validate id="content" message=$panelstrings.error.content append="error ...
  Topic: SmartyValidate 2.7 released
NoWhereMan

Replies: 49
Views: 181797

PostForum: Add-ons   Posted: Wed Aug 30, 2006 11:26 am   Subject: SmartyValidate 2.7 released
is there a way to add a validator using php code? I mean, not registering, but having the same behaviour of the {validator} tag

thanx
  Topic: SmartyValidate: a simple yet powerful form validation plugin
NoWhereMan

Replies: 268
Views: 514238

PostForum: Add-ons   Posted: Tue Feb 14, 2006 3:58 pm   Subject: SmartyValidate: a simple yet powerful form validation plugin
thanks, just checked it out, now i'm gonna try it Smile
  Topic: SmartyValidate: a simple yet powerful form validation plugin
NoWhereMan

Replies: 268
Views: 514238

PostForum: Add-ons   Posted: Tue Feb 14, 2006 7:26 am   Subject: SmartyValidate: a simple yet powerful form validation plugin
Sure I'm lazy Very Happy
A little suggestion (take it for what is worth)
This is great, but it would be even greater if the registerform and registervalidator stuff could be done from the template itself (y ...
 
Page 1 of 1
All times are GMT
Jump to:  


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