12 years 1 month ago
Hi there,
Its been a while since Ive looked at that module.
You need to basically duplicate the parameters int he xml and php files.
eg in the xml add another grow like this:
<param name="@spacer" type="spacer" default="" label="" description="" />
<param name="pub4" type="list" default="no" label="Publish this marker" description="Line break after name field">
<option value="1">Yes</option>
<option value="0">No</option>
</param>
<param name="lat4" type="text" default="" label="Marker 3 Latitude" description="Marker 3 Latitude" />
<param name="long4" type="text" default="" label="Marker 3 Longitude" description="Marker 3 Longitude" />
<param name="title4" type="text" default="" label="Title for third marker" description="Enter plain text or html here for a title on the marker." />
<param name="html4" type="textarea" cols="30" rows="5" default="" label="Description for third marker" description="Enter plain text or html here for a description on the marker." />
then in the php file add this:
$lat4 = (float)$params->get( 'lat4', '4' );
$long4 = (float)$params->get( 'long4', '4' );
$html4 = $params->get( 'html4', '' );
$pub4 = (int)$params->get( 'pub4', '0' );
then change the following code:
$lats = array($lat1,$lat2,$lat3);
$longs = array($long1,$long2,$long3);
$pubs = array($pub1,$pub2,$pub3);
$htmls = array(preg_replace("/\r?\n/", "\\n", addslashes($html1)),preg_replace("/\r?\n/", "\\n", addslashes($html2)),preg_replace("/\r?\n/", "\\n", addslashes($html3)));
$titles = array(preg_replace("/\r?\n/", "\\n", addslashes($title1)),preg_replace("/\r?\n/", "\\n", addslashes($title2)),preg_replace("/\r?\n/", "\\n", addslashes($title3)));
to
$lats = array($lat1,$lat2,$lat3,$lat4);
$longs = array($long1,$long2,$long3,$long4);
$pubs = array($pub1,$pub2,$pub3,$pub4);
$htmls = array(preg_replace("/\r?\n/", "\\n", addslashes($html1)),preg_replace("/\r?\n/", "\\n", addslashes($html2)),preg_replace("/\r?\n/", "\\n", addslashes($html3)),preg_replace("/\r?\n/", "\\n", addslashes($html4)));
$titles = array(preg_replace("/\r?\n/", "\\n", addslashes($title1)),preg_replace("/\r?\n/", "\\n", addslashes($title2)),preg_replace("/\r?\n/", "\\n", addslashes($title3)),preg_replace("/\r?\n/", "\\n", addslashes($title4)));
I havent tested this but I think that's what is required.
Anthony