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 26 matches
Smarty Forum Index
Author Message
  Topic: smarty with perl LWP
Demerzel

Replies: 1
Views: 4144

PostForum: General   Posted: Sat Mar 17, 2012 7:16 pm   Subject: smarty with perl LWP
enclosed with translation files, and it works
  Topic: smarty with perl LWP
Demerzel

Replies: 1
Views: 4144

PostForum: General   Posted: Sat Mar 17, 2012 6:47 pm   Subject: smarty with perl LWP
I have php page with smarty that translates english words just fine. When I call the same page with PERL LWP translation stops working. In fact I have no idea what to look for?

In both cases I use ...
  Topic: number to words
Demerzel

Replies: 3
Views: 5978

PostForum: General   Posted: Mon Sep 26, 2011 5:47 pm   Subject: number to words
Your answer is so instructive, You could just as well not waste the time to write anything.
  Topic: number to words
Demerzel

Replies: 3
Views: 5978

PostForum: General   Posted: Sun Sep 25, 2011 7:02 pm   Subject: number to words
whether it is possible to change numbers to words.
For example to make smarty write "two" when varible is 2?
  Topic: cutting string
Demerzel

Replies: 5
Views: 8869

PostForum: General   Posted: Mon Sep 27, 2010 7:17 am   Subject: cutting string
Thanks
{if substr_count($a.description,"ABC")}
{assign var=temp value=$a.description|regex_replace:"/.*ABC/":""}
{assi ...
  Topic: cutting string
Demerzel

Replies: 5
Views: 8869

PostForum: General   Posted: Sun Sep 26, 2010 11:19 pm   Subject: cutting string
So how to repleace everything before ABC including ABC and everything after new line?
  Topic: cutting string
Demerzel

Replies: 5
Views: 8869

PostForum: General   Posted: Sun Sep 26, 2010 3:38 pm   Subject: cutting string
It's on of these things you should do in 5 minutes with one and but I always have troubles with regular expresions.
{assign var=temp value=$a.description|regex_replace:"/*ABC/": ...
  Topic: Converting data to months
Demerzel

Replies: 3
Views: 6033

PostForum: General   Posted: Sun Sep 05, 2010 9:27 pm   Subject: Converting data to months
Thanks, I soloved it in php
$time=$end-$start;
$time=floor($time/60/60/24/7/4);
  Topic: Multiple rows
Demerzel

Replies: 3
Views: 5690

PostForum: General   Posted: Fri Sep 03, 2010 12:46 pm   Subject: Multiple rows
Perhaps I can't see corectly why you do it this way. But I would try in diffrent way. In line 42 You make loop and every time you make SQL query.
Why not just one SELECT * FROM panels. Assign it to s ...
  Topic: Converting data to months
Demerzel

Replies: 3
Views: 6033

PostForum: General   Posted: Fri Sep 03, 2010 12:22 pm   Subject: Converting data to months
I have two dates 1283205600 1314827999. I can display them using
{$date|date_format:"%Y/%m/%d"}
But I would like to count month diference between them.
Using php I tried to ...
  Topic: reading aditional file to html
Demerzel

Replies: 1
Views: 3682

PostForum: General   Posted: Sat Aug 14, 2010 2:18 pm   Subject: reading aditional file to html
Is it possible to read aditional file and ad it content to main html file?
For example I have files a.html b.html and shared.html. I would like to insert shared.html in the midle of a and b. Using ph ...
  Topic: printing paragraph on separate page
Demerzel

Replies: 2
Views: 5146

PostForum: General   Posted: Sun Jul 25, 2010 2:32 pm   Subject: printing paragraph on separate page
Is it possible to force last part of html page to print always on new paper sheet? My html may have different length but I need last paragraph to be always on separate A4 sheet after printing.
For e ...
  Topic: PHP varibles
Demerzel

Replies: 1
Views: 4094

PostForum: General   Posted: Mon Jun 21, 2010 6:20 pm   Subject: PHP varibles
solution:
{assign var="br" value=$post.brows}
  Topic: PHP varibles
Demerzel

Replies: 1
Views: 4094

PostForum: General   Posted: Mon Jun 21, 2010 6:04 pm   Subject: PHP varibles
For example
<div align="center">{$_config.finances.siedziba}</div>
This one works fine.
But I need something like that (I would like to know how to do it right)
$v ...
  Topic: connecting smarty varibles
Demerzel

Replies: 1
Views: 3449

PostForum: General   Posted: Wed Mar 31, 2010 12:32 pm   Subject: connecting smarty varibles
{assign var="temp" value=$post.brows}- works Embarassed
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


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