Author |
Message |
Topic: function do not work in all templates. |
yli
Replies: 1
Views: 6836
|
Forum: Plugins Posted: Sun May 19, 2013 1:13 pm Subject: function do not work in all templates. |
hi. i have created my function function.myfoo.php in libs/plugins.
then i have
page.html
and header.html
page.html have {include file="header.html"}
if i use {myfoo} in listings. ... |
Topic: display function from php. |
yli
Replies: 1
Views: 4704
|
Forum: General Posted: Thu Mar 29, 2012 7:57 am Subject: display function from php. |
hi .
i need help with this function wich retun me 5 result from mysql.
$smarty->register_function('get_rely', 'get_rely');
function get_rely() {
global $post_array;
... |
Topic: help with strpos and substr |
yli
Replies: 1
Views: 8493
|
Forum: General Posted: Sat Mar 17, 2012 2:48 pm Subject: help with strpos and substr |
how can i use strpos and substr in template file smarty2
so in change of "10" from
{$v.texto|substr:0:10}
i need to be the value of
{$v.texto|strpos:"0:`$post.vary`"}
... |
Topic: count digits not characters |
yli
Replies: 2
Views: 5131
|
Forum: General Posted: Sat Jul 30, 2011 1:26 pm Subject: count digits not characters |
i think i found a solution.
remove all non-digits ... count digits and if condition is true... stop . etc |
Topic: count digits not characters |
yli
Replies: 2
Views: 5131
|
Forum: General Posted: Sat Jul 30, 2011 1:14 pm Subject: count digits not characters |
hi. i would like to restrict the number of digits wich can be added in submit form.
any ideea how to do it with smarty?
i mean i have people wich add phone number on title and i don't want this.
... |
Topic: need help with custom function |
yli
Replies: 6
Views: 7901
|
Forum: General Posted: Thu Jul 14, 2011 10:40 pm Subject: solved |
Works now.
sorry to be a little ironic. i just learn php and translating things to smarty is hard for me.
thanks. |
Topic: need help with custom function |
yli
Replies: 6
Views: 7901
|
Forum: General Posted: Thu Jul 14, 2011 10:25 pm Subject: need help with custom function |
thank you. thank you. i will try. |
Topic: need help with custom function |
yli
Replies: 6
Views: 7901
|
Forum: General Posted: Thu Jul 14, 2011 10:09 pm Subject: THIS IS A HUGE BUG |
almost 170 visited this post. I'm sure it is a bug because nobody can respond to this question.
))) |
Topic: need help with custom function |
yli
Replies: 6
Views: 7901
|
Forum: General Posted: Thu Jul 14, 2011 8:31 pm Subject: re: need help with custom function |
ok. i user smarty2
i supose must to be something like this
function smarty_function_inck($params, &$smarty){
$params = array($listing.id,$lim1,$lim2);
execute mysql ... |
Topic: Performance of Smarty 2 vs 3 |
yli
Replies: 5
Views: 16263
|
Forum: Smarty 3 Posted: Sat Jul 09, 2011 6:29 pm Subject: hmmmm |
maybe i'm not the right person to comment on this post because i'm a newbie with php and smarty.
i think is normal to don't see any diference ... behind the smarty is php and your php version and you ... |
Topic: need help with custom function |
yli
Replies: 6
Views: 7901
|
Forum: General Posted: Sat Jul 09, 2011 5:29 pm Subject: need help with custom function |
i used a tutorial to create a custom function in plugins folder
function smarty_function_inck($idart, &$smarty)
but i want to change it and ad more parameters so will be
function smarty_funct ... |
Topic: how to do something like this |
yli
Replies: 1
Views: 3508
|
Forum: General Posted: Fri Jul 30, 2010 2:33 pm Subject: how to do something like this |
hi. maybe somebody can help me with this.
i have {$word} in my template
and i want to use it with the regex [a-zA-Z Á-Úá-ú][^1234567890]+$
{if $word (contain any of áñçôà etc)}
do this
{e ... |
Topic: help with replace or remove or ereg |
yli
Replies: 4
Views: 6773
|
Forum: General Posted: Sat Jul 03, 2010 7:46 pm Subject: help with replace or remove or ereg |
hmm sorry smarty is not coded but how i said i have now ideea about php or smarty.. i just understand bit.
i found this .. anybody can help me to get the regex for the replacement?
&editke ... |
Topic: help with replace or remove or ereg |
yli
Replies: 4
Views: 6773
|
Forum: General Posted: Sat Jul 03, 2010 7:24 pm Subject: help with replace or remove or ereg |
thanks for replay but i can't do this. i can only modify the template wich have smarty tags. all other files are encoded so... |
Topic: help with replace or remove or ereg |
yli
Replies: 4
Views: 6773
|
Forum: General Posted: Sat Jul 03, 2010 5:20 pm Subject: help with replace or remove or ereg |
i have no ideea with php or smarty. anyway i need help to do a replace or remove a part of a string.
i have this.
so i use
{$editlink}
where this is
xttp://mydomain[dot ... |
|