<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:&nbsp; 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&nbsp;a text string&nbsp;(name&nbsp;of a building and so on)&nbsp;and recenters the map on the specific point. In&nbsp; a db, there is the relation between name and coordinates. <BR>I've created a new folder and put the template into it,&nbsp;and that is ok, the&nbsp;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>&nbsp;&nbsp;&nbsp; public function filterPostRequest(FilterRequestModifier $request) {<BR>&nbsp;&nbsp;&nbsp; $searchString = $request-&gt;getValue('buildName');<BR>&nbsp;&nbsp;&nbsp; if (!empty($searchString)) {</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // To simplify we assume that only one result is returned by the search<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; list($x, $y) = $this-&gt;makeSearch($searchString);<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $this-&gt;request-&gt;setValue('recenter_x', $x);&nbsp; (1)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $this-&gt;request-&gt;setValue('recenter_y', $y);&nbsp; (2)</P>
<P>&nbsp;&nbsp;&nbsp; }<BR><BR>protected function makeSearch($searchString) {<BR>&nbsp;// db connection atc.<BR><BR>&nbsp;return array($x, $y);</P>
<P>}<BR><BR>If I delete the lines (1) and (2) there's no error but&nbsp;I don't get&nbsp;the recentering.&nbsp;Can you help me?<BR>Is&nbsp; there a way to set&nbsp;a fixed&nbsp;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" &lt;oliver.christen@camptocamp.com&gt;<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>&nbsp;</DIV>
<DIV><FONT size=2>Regards,</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</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&nbsp; html/php page in the main page, the results is ok but it's no too "smarty", then I've just tried to follow&nbsp;the suggested procedures,&nbsp; &nbsp;<U><FONT face="Courier New" color=#800080>HowToWriteaRecenterPlugin</FONT></U>,&nbsp; Ive called my new plugin&nbsp; myPlugin (what&nbsp;a immagination ), but&nbsp;when I recall&nbsp;my project (which works fine in&nbsp;Cartoweb&nbsp;3.2&nbsp;) I get : <BR><BR>Couldn't&nbsp;load plugin ServerMyPlugin.<BR>&nbsp;<BR>No errors during the compilation. I've not written any server plugin, but it seems I 'm not supposed to do&nbsp;.<BR>what's wrong ?<BR><BR>Thanks in advantage.<BR><BR><BR><BR>&nbsp;&nbsp;<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" &lt;alexandre.saunier@camptocamp.com&gt;<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&amp;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>