<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.3790.2491" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Hi Giuseppe,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>did you add "implements FilterProvider " in your plugin
class definition ? Otherwise your plugin wont understand what are </FONT><FONT
size=3>filterGetRequest and filterPostRequest</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>otherwise, try doing a x($request) in your </FONT><FONT
size=3>filterPostRequest function to see whats inside and eventually see if
something is wrong.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>Regards,</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=giuseppe.derossi@email.it
href="mailto:giuseppe.derossi@email.it">giuseppe.derossi@email.it</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=oliver.christen@camptocamp.com
href="mailto:oliver.christen@camptocamp.com">oliver</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A
title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, March 01, 2006 9:03
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Cartoweb-users] writing new
plugin</DIV>
<DIV><BR></DIV>
<P>Hi,<BR>I fixed the first error, due to a naming error. Now, the plug in is
found but I get the following error:<BR><BR>Class :
CartocommonExceptionMessage : Error [8, Undefined property:
ClientRicerca::$request,
C:\wamp\www\cartoweb3\projects\MyProject\plugins\Ricerca\client\ClientRicerca.php,
21]<BR><BR><BR>My target consists on building up a new recenter plugin. I've
followed the indications into HowToWriteANewRecenterPlugIn. This new plugin
gets a text string (name of a building and so on) and
recenters the map on the specific point. In a db, there is the relation
between name and coordinates. <BR>I've created a new folder and put the
template into it, and that is ok, the plugin find the coordinates
but than it crashes and returns the error above.<BR>That is my code
:<BR><BR><BR>public function filterGetRequest(FilterRequestModifier $request)
{}</P>
<P> public function filterPostRequest(FilterRequestModifier
$request) {<BR> $searchString =
$request->getValue('buildName');<BR> if
(!empty($searchString)) {</P>
<P> // To simplify we assume that
only one result is returned by the
search<BR> list($x, $y) =
$this->makeSearch($searchString);<BR><BR>
$this->request->setValue('recenter_x', $x);
(1)<BR>
$this->request->setValue('recenter_y', $y); (2)</P>
<P> }<BR><BR>protected function makeSearch($searchString)
{<BR> // db connection atc.<BR><BR> return array($x, $y);</P>
<P>}<BR><BR>If I delete the lines (1) and (2) there's no error but I
don't get the recentering. Can you help me?<BR>Is there a way
to set a fixed zoom so I get a visible map in a time ?<BR><BR>In my
not-smarty plugin, I've set the distances for x and y to set a fixed box
around the found center.<BR><BR>Thanks in advantage<BR></P>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">--------- Original Message --------<BR>Da:
"oliver" <oliver.christen@camptocamp.com><BR>To: <BR>Cc:
cartoweb-users@lists.maptools.org<BR>Oggetto: Re: [Cartoweb-users] writing
new plugin<BR>Data: 27/02/06 09:06<BR><BR>
<META content="MSHTML 6.00.3790.2491" name=GENERATOR>
<STYLE></STYLE>
<DIV><FONT size=2>Hi Giuseppe,</FONT></DIV>
<DIV><FONT size=2>first, be sure you didnt used any function that require a
server side ( your plugin must not implements ServerCaller), </FONT></DIV>
<DIV><FONT size=2>also you must not call your plugin on the server side (in
server_conf/yourproject/yourproject.ini it must not be in loadPlugins =
...)</FONT></DIV>
<DIV><FONT size=2>otherwise it may be something to do with the functions or
objects you have used but i cant say without seeing your actual
code.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Regards,</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=giuseppe.derossi@email.it
href="mailto:giuseppe.derossi@email.it">giuseppe.derossi@email.it</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=alexandre.saunier@camptocamp.com
href="mailto:alexandre.saunier@camptocamp.com">Alexandre Saunier</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A
title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, February 26, 2006 11:40
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Cartoweb-users] writing
new plugin</DIV>
<DIV><BR></DIV>Hi Alexandre,<BR>in my first attemp, I wrote a new feature
by linking a new html/php page in the main page, the results is ok
but it's no too "smarty", then I've just tried to follow the
suggested procedures, <U><FONT face="Courier New"
color=#800080>HowToWriteaRecenterPlugin</FONT></U>, Ive called my
new plugin myPlugin (what a immagination ), but when I
recall my project (which works fine in Cartoweb 3.2 )
I get : <BR><BR>Couldn't load plugin ServerMyPlugin.<BR> <BR>No
errors during the compilation. I've not written any server plugin, but it
seems I 'm not supposed to do .<BR>what's wrong ?<BR><BR>Thanks in
advantage.<BR><BR><BR><BR> <BR><BR><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">--------- Original Message --------<BR>Da:
"Alexandre Saunier" <alexandre.saunier@camptocamp.com><BR>To:
<BR>Cc: cartoweb-users@lists.maptools.org<BR>Oggetto: Re:
[Cartoweb-users] writing new plugin<BR>Data: 21/02/06 13:50<BR><BR><FONT
face="Courier New" size=2><BR><BR>Hello,<BR><BR>have a look at this
tutorial:<BR><A class=autolink
href="http://cartoweb.org/cwiki/HowToWriteaRecenterPlugin"
target=_blank>http://cartoweb.org/cwiki/HowToWriteaRecenterPlugin</A><BR><BR>The
plugin writing principles are obviously the same for other kinds of
<BR>plugins...<BR><BR>AS<BR></FONT></DIV></BLOCKQUOTE><BR>
<P><FONT face=Verdana,Arial size=2>----<BR>Email.it, the professional
e-mail, gratis per te: <A href="http://www.email.it/cgi-bin/start?sid=3"
target=_blank>clicca qui</A> <BR><BR>Sponsor:<BR>Campioni GRATIS: Più di 6
milioni di persone si sono affidate a VistaPrint Scopri perché. <BR><A
href="http://adv.email.it/cgi-bin/foclick.cgi?mid=4833&d=20060226"
target=_blank>Clicca qui</A> </FONT><BR>
<P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing
list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE></DIV></BLOCKQUOTE><BR>
<P><FONT face=Verdana,Arial size=2>----<BR>Email.it, the professional e-mail,
gratis per te: <A href="http://www.email.it/cgi-bin/start?sid=3"
target=_blank>clicca qui</A> <BR><BR>Sponsor:<BR>Scopri come proteggere dai
virus il tuo computer e come eliminare ogni tipo di virus! - clicca qui<BR><A
href="http://adv.email.it/cgi-bin/foclick.cgi?mid=3212&d=20060301"
target=_blank>Clicca qui</A> </FONT><BR></P></BLOCKQUOTE></BODY></HTML>