Me dirijo a Vd. con una oferta de trabajo ventajosa en mi sociedad.
------=_NextPart_000_0015_01C8593B.B4604650
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
iyfxcicv
------=_NextPart_000_0015_01C8593B.B4604650--
|
1/17/2008 6:03:54 PM
|
0
|
smarue...@estema.org ("smaruenda")
|
11% de la gente de su edad no están satisfechas con sus ingresos. ¿Cómo cambiar eso?
------=_NextPart_000_026C_01C85639.310561A0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
b
------=_NextPart_000_026C_01C85639.310561A0--
|
1/13/2008 10:08:21 PM
|
0
|
smaru...@geo.titech.ac.jp ("smaruyam")
|
Installer developed for Smarty
------=_NextPart_000_0029_01C852F7.43830980
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi all
I have developed a PHP browser-based installer for Smarty, which you can =
read about at http://www.medianna.eu/htdocs/warlock/warlock.en.php.
This installer does more than just installing the libraries! Just =
download a copy from =
http://www.medianna.eu/htdocs/warlock/downloads.en.php and see for =
yourself.
The installer is not finished as there's further development, bug fixes, =
removal of legacy code from early development and
|
1/9/2008 7:38:52 PM
|
0
|
...@medianna.eu ("Ian Short")
|
Smarty Unit Test - Test case failure - Package Smarty-2.6.18.tar.gz
------=_NextPart_000_0013_01C816C5.E8A1B7E0
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_0014_01C816C5.E8A1B7E0"
------=_NextPart_001_0014_01C816C5.E8A1B7E0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Does anyone else see the following test case failure when running the =
Smarty Unit test on package Smarty-2.6.18.tar.gz?
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
|
10/25/2007 4:14:24 AM
|
0
|
...@medianna.eu ("Ian Short")
|
problems after upgrading to php5
I have a website that uses smarty that I've inherited.
I just moved it to a new server with PHP5 (up from PHP4 on the old server).
I upgraded smarty to the latest thinking there may be an issue running an
old ver of smarty with PHP5 but no luck.
Now I'm getting weird behavior from Smarty when it creates the pages.
Codes like this:
<table width="100%" cellpadding="0" cellspacing="0"
class="loggedin"><tr><td>
{if $employee}
{assign var="en" value=$employee->name|escape}
{$lng.logged|string_format:$en} <---- PROBLEM IS HERE
[<a href="messages.php"><b>{if $unread}<font
color="
|
10/19/2007 6:25:01 PM
|
0
|
jsmFo...@optonline.net ("Jeff Mckeon")
|
Array keys, values
------=_Part_14260_23027732.1192477441000
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
If I have an array that looks like this:
Array
(
[Salary] => Array
(
[0-50K] => Array
(
[filterType] => range
[fieldLabel] => 0-50K
[fieldName] => SALARY
[lowerValue] => 0
[upperValue] => 50
[inclusive] => LEFT
)
[50-70K] => Array
|
10/15/2007 7:44:00 PM
|
0
|
christoph.bo...@gmail.com ("Christoph Boget")
|
Newline being inserted after plugin
I created a smarty function called {link_to_template} that creates a
URL designed to go inside a <a href=""> - for example:
<a href="{link_to_template param1=xyz}">Blah</a>
This creates a cache php file with the following:
<a href="<?php echo
smarty_function_link_to_template(array('param1' =>
'xyz'), $this);?>
">Blah</a>
There is a single blank line after the ?> (not two in the code above,
I inserted one for readability). This was never a problem under
php4 - but moving the same site to php5 I get an error now:
Fatal error: Cannot use string offset as an array in ...
|
10/10/2007 3:44:27 AM
|
0
|
j...@trutwins.homeip.net (Josh Trutwin)
|
force compile and caching
I am little confused about the optimum settings for force_compile and =
caching in a production environment as described in this paragraph:
From the manual->[force_compile] forces Smarty to (re)compile templates =
on every invocation. This setting overrides $compile_check. By default =
this is FALSE. This is handy for development and debugging. It should =
never be used in a production environment. If $caching is enabled, the =
cache file(s) will be regenerated every time.
Does this mean that in a production environment caching should be =
enabled and force_compile should be set
|
10/5/2007 2:47:27 PM
|
0
|
kkthomp...@tsl.state.tx.us ("Kathleen Krause-Thompson")
|
date formatting
hello,
in my template I have an input field which contains the date a shelf
expires.
<input type="text" name="{$shelf_expire.name}"
value="{$shelf_expire_value}" class="bg{$shelf_expire.farbe}"
size="{$shelf_expire.breite}" {$shelf_expire.readstatus} />
Given the value for $shelf_expire_value is 2099-12-31 the template
returns just that.
If I use:
value="{$shelf_expire_value|date_format:'%d.%m.%Y'}" instead of
value="{$shelf_expire_value}" I get the result: 04.10.2007, which is
today's date...
Is date_format only working with a certain type (format) of string? How
|
10/4/2007 12:59:08 PM
|
0
|
i...@screen-card.de (Peggy Schatz)
|
Working with arrays recursively
------=_Part_3914_30023214.1188562859845
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
I know you can set up nested {foreach} blocks in the template but that only
works if you know that the array you are working with has a predefined
number of levels. Is there a way to set up a block so that you can work
with the array recursively? So no matter how many levels the array has,
your smarty block can handle and display all the data?
thnx,
Christoph
------=_Part_3914_30023214.1188562859845--
|
8/31/2007 12:20:59 PM
|
0
|
christoph.bo...@gmail.com ("Christoph Boget")
|
{include} questions
=46rom the docs:=20
"All assigned variable values are restored after the scope of the
included template is left. This means you can use all variables from
the including template inside the included template. But changes to
variables inside the included template are not visible inside the
including template after the {include} statement."
Is there any way for an included template to pass data back to the
template that includes it? I have some included templates that do
something that I want the including template to know about.
My only thought was to use the assign attribute and
|
8/23/2007 5:32:07 PM
|
0
|
j...@trutwins.homeip.net (Josh Trutwin)
|
Cat modified update
I've a problem with the cat modifier
I would to append a string only if the "main" string is not empty...
{$string|cat:" - "} don't work then I modified the plugin link as
following....
some comments?
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty cat modifier plugin
*
* Type: modifier<br>
* Name: cat<br>
* Date: Feb 24, 2003
* Purpose: catenate a value to a variable
* Input: string to catenate
* Example: {$var|cat:"foo"}
* @link http://smarty.php.net/manual/en/language.modifier.cat.php cat
*
|
8/22/2007 10:14:14 AM
|
0
|
apae...@yahoo.it (APaella)
|
Curly braces inside a function argument
------=_Part_202246_28110651.1187719111805
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
How can put curly braces inside of a function argument? Is it not
possible? everything I've tried doesn't seem to work:
{myfunc test="foo {bar}"}
{myfunc test='foo {bar}'}
{myfunc test="foo {ldelim}bar{rdelim}"}
No matter what, smarty always percieves the first closing brace as the
closing brace for the function itself. Should this be considered a bug?
------=_Part_202246_28110651.1187719111805--
|
8/21/2007 5:58:31 PM
|
0
|
bendavi...@gmail.com ("Ben Davis")
|
Conditional
I use a lightbox effect on my G2 site (which uses Smarty). When this
lightbox effect is called, i want to display only certain stuff. How
would i write this using smarty? Thanks for any help
Chris
|
8/21/2007 1:54:24 PM
|
0
|
carn...@electrichendrix.com (Chris Arnold)
|
Best way to build site with different type of users
Hi all,
I need some suggest, advice, information that help me in a right way:
I want to build a site that have different type of users, like for
example "admin" and "normal user".
I've a form for the authentication, when the username and password are
validated I will display the right section/panel.
In file auth.php I validate username and password if are right I do:
set all the $_SESSION[''] that I need
Now one way may be this :
header("Location: index.php");
I will continue to manage all the option with:
if(isset($admin_index)) or if(isset($user_section)) in the same
|
8/20/2007 2:41:13 PM
|
0
|
...@linuxtime.it (Massimiliano Marini)
|
Smarty engine help
Hello all! I am using Gallery2 which uses the smarty engine. I have a
gallery and a lightbox on this gallery. I have added the class for the
lightbox in the G2 template so the pic's load in a lightbox; like so:
{foreach from=$theme.children item=child}
{if !$child.canContainChildren}
{if $firstItem}
<div class="gallery-items">
{assign var="firstItem" value=false}
{/if}
<div class="gallery-thumb">
<a href="{g->url params=$theme.pageUrl arg1="itemId=`$child.id`"}"
class="lightwindow">
{if isset($child.thumbnail)}
{g->image item
|
8/14/2007 2:55:30 AM
|
0
|
carn...@electrichendrix.com (Chris Arnold)
|
variable on config file
Hi,
I have URL like:
user.php?option=add_success&id=lucky
I want output like this: User lucky successfully added
I confuse how to buld that with config file and tpl file. I must use config
file, because it will have more than 1 language. I do this on english
language config file:
english.conf:
**********
add_success = "User %s successfully added", $smarty.get.id
**********
tpl file:
**********
{if $smarty.get.option == "add_success"}{#add_success#}{/if}
**********
But it didn't work. I also read about eval on help file, but I still confuse
how to use eval for this
|
8/8/2007 11:53:59 PM
|
0
|
wiwid-...@centrin.net.id ("Wiwid Lukiyanto")
|
Every possible meds you need but at lower price.
------=_NextPart_000_0006_01C7D36F.CBB92E90
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
If you are looking for the way to save on your meds, then this information is for you. Buy medications in Canada. They are manufactured according to the same strict pharmaceutical standards as American ones.
Visit our "CanadianPharmacy" site Forget about high prices, order with �CanadianPharmacy�!
Canadian �CanadianPharmacy� drugstore is the only trustful source of high-quality discounted medications which are 100% generic. All medications are supplied from the l
|
7/31/2007 10:59:11 AM
|
0
|
dwplacoess...@placoessmi.com ("Steve Noga")
|
Feature req/idea: storing variables in cached templates
Hi Smarty team, just wanted to start by saying that you've all built a
great piece of software. It's fantastic.
I had a little conundrum which is not really killing me but it leaves
just a niggling little want.
I was wondering how breaking it would be to be able to load variables
from a precompiled/cached smarty template and use these variables in
one's application code, before displaying that cached template (using a
func like get_cached_template_vars()
<http://smarty.php.net/manual/en/api.get.template.vars.php> ) . I was
looking at those 2 lines of metadata in the cached
|
7/17/2007 10:02:12 AM
|
0
|
j...@limelightnetworks.com (Joey Korkames)
|
quickform arraysmarty
------=_NextPart_000_030F_01C7C734.E17AD9A0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hello,
I changed my quickform templates from static {{$form.phone.label}} to
dynamic.
This works great as it saves time while making forms...
TPL:
<form {{$form.attributes}}>
{{foreach from=$form.elements item=element}}
label : {{$element.label}} html: {{$element.html}}<br>
{{/foreach}}
</form>
But before I used
HTML/QuickForm/Renderer/ArraySmarty.php
$renderer =& new HTML_QuickForm_Renderer_ArraySmarty($smart
|
7/16/2007 6:07:12 AM
|
0
|
and...@kende.com ("Andras Kende")
|
Smarty and E_STRICT environment
Dear Smarty Developers,
I have been looking for information about Smarty future:
- are you going to make it compatible with E_STRICT environment?
- are you going to rewrite it in PHP6 when it comes?
Unfortunately I didn't find any answer for these two question on Smarty
mailing lists, so I decided to ask for it personally.
Best regards,
Tomasz Kuter
|
7/16/2007 12:27:17 AM
|
0
|
register.evo...@interia.pl (Evolic)
|
Smarty 3000
------=_Part_17857_31809133.1184365123166
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
How that php4 is being retired.. bless her cotton socks .. me loved her 2...
Is it time now for a complete revamp:
eg
- A pure php5 implementation ala smarty5 maybe.. with core engine, ie
parsing and "standard filters/plugins" eg removal of {popup} - this is to
sit on smarty.php.net, and using a "modern" scm system .. eg svn or
git CVS is dead
- Revival of "smarty.sf.net" as the "users zone" where u g
|
7/13/2007 10:18:43 PM
|
0
|
pedromor...@gmail.com ("Peter Morgan")
|
But also - please permit - I will do one thing more for you.
--=====================_3185296==.REL
Content-Type: multipart/alternative;
boundary="=====================_3185296==.ALT"
--=====================_3185296==.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed
[]
The script then performs the typical housecleaning operations,
closing both the recordset and the connection. There was no double
entendre in either of our minds.
It really stank in there. Do not expect too much from this small web-site.
This call is synchronous, and blocks the current thread of execution
until a message is available. Doug Lea's malloc
|
7/4/2007 9:30:00 AM
|
0
|
jar...@armin-freund.de ("jarrad Foulds")
|
But also - please permit - I will do one thing more for you.
--=====================_3185296==.REL
Content-Type: multipart/alternative;
boundary="=====================_3185296==.ALT"
--=====================_3185296==.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed
[]
The script then performs the typical housecleaning operations,
closing both the recordset and the connection. There was no double
entendre in either of our minds.
It really stank in there. Do not expect too much from this small web-site.
This call is synchronous, and blocks the current thread of execution
until a message is available. Doug Lea's malloc
|
7/4/2007 9:30:00 AM
|
0
|
jar...@armin-freund.de ("jarrad Foulds")
|
cache .xml files
Hello,
it seems that the Smarty cache creates .html files. Is it possible to
instruct it to cache .xml files? I need this to cache RSS feeds.
Thanks,
Iv
|
6/28/2007 1:13:57 PM
|
0
|
po...@verysmall.org ("po...@verysmall.org")
|
Get a biger instrument
------=_NextPart_001_006B_01C7B909.7379E100
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Girls lie when they say "size doesn't matter" that's just to make us feel=
better,=20
The truth is they want their partner to have a huge one, and they will ke=
ep searching until they find it!
Now you can be that big man with the new improved and doctor recommended =
enlargement pills,=20
click here to get your supply before they sell out! http://gnmil=2Ecom/
proposal, similar to this recent proposal, to modify the
Bank of China Governor Zhou
|
6/28/2007 1:21:04 AM
|
0
|
supp...@21stsoftware.com ("Cole M. Orr")
|
[Fwd: Re: [SMARTY] Problem with clear_cache and cache groups]
http://smarty.php.net/manual/en/api.clear.cache.php
$cache_id is the second parameter.
Francesco Cipriani schrieb:
> Hello,
> I'm using smarty 2.6.18, I've just upgraded from smarty 2.5 (...).
> I'm using clear_cache to clear cache groups, it did work with smarty 2.5
> but now it doesn't work anymore. Smarty's config and file permissions
> should be ok because clear_all_caches works correctly, but if I do a
> clear_cache("group1") it doesn't delete the cache for the page I
> displayed using $tpl->display("mytpl", "group1|group2");
> The call to clear_cache returns true... but the
|
5/29/2007 4:48:00 PM
|
0
|
dan...@blizzz.org (Danilo Buerger)
|
Problem with clear_cache and cache groups
Hello,
I'm using smarty 2.6.18, I've just upgraded from smarty 2.5 (...).
I'm using clear_cache to clear cache groups, it did work with smarty 2.5
but now it doesn't work anymore. Smarty's config and file permissions
should be ok because clear_all_caches works correctly, but if I do a
clear_cache("group1") it doesn't delete the cache for the page I
displayed using $tpl->display("mytpl", "group1|group2");
The call to clear_cache returns true... but the files are still in their
directories.
I'm using php 5.2.2 on gentoo linux with apache2.
How can I debug (and fix) this??
--
Franc
|
5/29/2007 4:15:36 PM
|
0
|
f.cipri...@inwind.it (Francesco Cipriani)
|
Assign by ref issue
I have an Image object that I have assigned by ref to my template. So
far so good, until I try to pass an array as an argument to one of the
object's methods:
{$Image->resize($data.Inventory.image1, 124, null, true,
array('border'=>1))}
The call works fine without the array, but with it, I get:
Fatal error: Smarty error: [in offer.tpl line 27]: syntax error:
unrecognized tag: $Image->resize($data.Inventory.image1, 124, null,
true, array('border'=>1)) (Smarty_Compiler.class.php, line 439)
Any ideas?
-Erich-
|
5/18/2007 2:23:52 PM
|
0
|
erich.beyr...@beyrent.net ("Erich C. Beyrent")
|
default modifiers vs. foreach & if
Hello everyone.
I just tried to use this nice feature of smarty: =
http://smarty.php.net/manual/en/variable.default.modifiers.php
I think that auto-escaping of all values when outputting them is a great=
=
idea, so i set $this->default_modifiers =3D array('escape:"html"');
It worked nice until I tried to use foreach to iterate over array of =
arrays. I got lots of messages like this:
Warning: htmlspecialchars() expects parameter 1 to be string, array =
given...
The same warnings were displayed when using "{if $array}".
I looked into compiled templates and found
|
5/14/2007 9:25:41 AM
|
0
|
atregoube...@gmail.com ("Artemy Tregoubenko")
|
Re: you novel
This one is shoe in to Double by end of week
Huge Volume spike, many people are already in the know
Ground floor to the future, in the next big soda co
Fire Mountain Beverage Company
SYM-F B V G
2 Cents is a STEAL
Add this to your radar, Dont miss this one like HANS and FIZ
Remember Snapple, this will be bigger
Watch this trade Monday
Add it to your Radar
People are already loading up, you should too!!
led the Pirates to a 68-55 record, a trip to the round of 16 in the 2000 the University of Michigan's associate dean of students. Martin said he had postseason because o
|
4/23/2007 5:06:21 AM
|
0
|
oiqug...@scholz-direct.de ("Damon Roblesy")
|
Problem with array
Hello,
I have a probleme with an array like that:
$array[1]['mother_id'] = 0;
$array[1]['father_id'] = 0;
$array[1]['name'] = foo;
$array[2]['mother_id'] = 0;
$array[2]['father_id'] = 0;
$array[2]['name'] = foo1;
$array[3]['mother_id'] = 1;
$array[3]['father_id'] = 2;
$array[3]['name'] = foo2;
In PHP I print the name of the parents with:
$array[$array[$key]['mother_id']]['name']
I tried to do the same thing with smarty :
{$array[$array[$key].mother_id].name}
But it does not work. Do you have an idea ?
Regards
|
4/19/2007 5:13:02 PM
|
0
|
sylv...@abstraction.fr ("Sylvain")
|
debugging help wanted
Hello,
I've got quite strange results whith the following routine:
foreach ($result as $key => $val) {
echo "$key => $val<br>";
$smarty->assign($key . '_value',$val);
$smarty->assign($key . '_selected',$val);
}
One of the keys is 'ac_type' and $val is 'xxx'.
With Smarty-debugging on, I get :
'ac_type_value' empty
'ac_type_selected' 'xxx'
All other assignments work as wanted...
Is there a smart way to find out, whether there has been a conflicting
assignment to 'ac_type_value' and at what point of script processing?
Peggy
|
4/10/2007 10:06:05 AM
|
0
|
i...@screen-card.de (Peggy Schatz)
|
how to acces array keys that start with '#'
The drupal programmers use a lot array keys that start with '#' (e.g.
$field['#value'], $field['#weight'], $field['#description'], ...).
How can I access such array elements from within a smarty template?
If I use {$field.#value} I get a smarty syntax error: unrecognized tag.
Using {$field.'#value'} or {$field.[#value]} or {$field.['#value']} doesn't work either. Do I have to escape the # somehow?
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
|
4/5/2007 9:22:02 AM
|
0
|
funtasysp...@yahoo.com (=?iso-8859-1?Q?J=F6rg_Hermsdorf?=)
|