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

From: Date: Tue, 23 Jul 2002 10:40:07 +0000
Subject: Re: [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-5388@lists.php.net to get a copy of this message
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

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