Re: AW: [SMARTY] Upgrade(?) Problems (1.4.6 -> 2.2.0)

From: Date: Tue, 23 Jul 2002 13:42:25 +0000
Subject: Re: AW: [SMARTY] Upgrade(?) Problems (1.4.6 -> 2.2.0)
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5393@lists.php.net to get a copy of this message
btw, you can already URL encode with Smarty without your custom function: {$var|encode:url} Rainer Collet wrote:
just put the function implementation into a file called function.myuencode.php rename the function to smarty_function_myuencode an save it into the plugins-dir. then your custom function should work again. overlib support is still included, but you have to download the overlib distribution on your own now. rainer
-----Ursprüngliche Nachricht----- Von: Tibor Thurnay [mailto:tibor.thurnay@swr3.de] Gesendet: Dienstag, 23. Juli 2002 12:40 An: smarty-general@lists.php.net Betreff: Re: [SMARTY] Upgrade(?) Problems (1.4.6 -> 2.2.0) Hi, i am new to the Smarty Templates and also new to the server i am speaking about... I upgraded a server with php 4.0.6 & Smarty version 1.4.6 to php 4.2.1 & Smarty 2.2.0 Everything seems to work quite ok, but there is a Problem on a page. Now in the old Smarty, there was a file Smarty.addons.php which does not seem to be in the new version. This file had a function which seems now to be missing: /*======================================================================*\
    Function: smarty_func_myuencode
    Purpose:  urlencode a string and print it
\*======================================================================*/ function smarty_func_myuencode() {
    extract(func_get_arg(0));
    print urlencode($value);
} The Code in the template gives as error message: unknown tag -'myuencode': <a ref="{#club_app_address#}?action=modify&tpl=showcart&qty%23{myuencode value=$aCartContent.products.ticket.items[section1].ident}=0" {popup sticky=true caption="Artikel löschen" delay=400 text="Auf das X klicken um diese Postion aus dem Warenkorb zu entfernen!"}> Now i know that there is a plugin in directory and i wonder if the addons file is just the old "plugin" version ( i did not find any info about this in the info files/documents ). And if so, how i have to put this function there so that the "template" will find it... A link to a page with upgrade information would also be very much appreciated :-) What happend to the overlib support? Thank you very much... Tibor -- SWR3 Online Tibor.Thurnay@swr3.de Work: 07221/929-3239 -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.

« previous php.smarty.general (#5393) next »