Discussion in "Map Me Support" started by    LondonGman    Aug 17, 2009.
Mon Aug 17 2009, 01:49 am
#1
I run a small club in the UK and would like the start view for the members profile and in the member list to focus on the UK.

I tried modifying “mapconfig.php” to

else{
   $sql->
mySQLresult = @mysql_query("SELECT * FROM ".MPREFIX."gmarkers WHERE user_id='".USERID."';");
   $rows = $sql->
db_Rows();
   if($rows){
      $row = $sql->
db_Fetch();
      $lat = $row['lat'];
      $lng = $row['lng'];
      $zoom = 6;
   } else {
      $lat = 54.00;
      $lng = -4.00;
      $zoom = 4;


As mentioned in
http://www.8051projects.net/forum-t4589.html

but it did not work. Please help

Thanks for the work you done on this plug. Just what I needed and suggest an admin page for making modification to map in future versions.

also how do i alter the size of the map


[ Edited Mon Aug 17 2009, 01:51 am ]
Tue Aug 18 2009, 03:10 pm
#2
well it should have worked.

Thank you for suggestion... I will surely try to make a new release soon.
Tue Aug 18 2009, 05:21 pm
#3
hmm maybe it is because i am using IE8
or maybe Google changed something.
Thanks anyway for your efforts so far.
Tue Aug 18 2009, 05:24 pm
#4
I will do some tests after i make changes to plugin for user to enter default location.

also trying to add Geocoding so that it automatically places marker if location field is entered by user in his/her profile (location must be enabled in extended).
Sat Aug 22 2009, 07:55 pm
#5


else{
   $sql->
mySQLresult = @mysql_query("SELECT * FROM ".MPREFIX."gmarkers WHERE user_id='".USERID."';");
   $rows = $sql->
db_Rows();
   if($rows){
      $row = $sql->
db_Fetch();
      $lat = $row['lat'];
      $lng = $row['lng'];
      $zoom = 6;
   } else {
      $lat = 54.00;
      $lng = -4.00;
      $zoom = 4;

LondonGman



This should look like;

else{
   $sql->
mySQLresult = @mysql_query("SELECT * FROM ".MPREFIX."gmarkers WHERE user_id='".USERID."';");
   $rows = $sql->
db_Rows();
   if($rows){
      $row = $sql->
db_Fetch();
      $lat = $row['lat'];
      $lng = $row['lng'];
      $zoom = 6;
   } else {
      $lat = 54;
      $lng = -4;
      $zoom = 4;


you cannot use what it probably thinks is a double like that. if you want to specify a decimal number then wrap it in single quotes.

      $lat = '54.749991';
      $lng = '-4.042969';
      $zoom = 4;



To change the size of the maps, open either the map.sc or mapme.sc; whichever you want to change and modify the division's sizes.

<div id='map' style='width:100%; height:400px'>
</div>



I love this plug-in! Thanks! Have fun.
Fri Dec 18 2009, 05:42 pm
#6
doesn't work anyway...
Fri Dec 18 2009, 05:48 pm
#7
Centurio, this is already added in new version.

Try these beta files.
http://www.8051projects.net/Beta/mapme.zip
Fri Dec 18 2009, 06:07 pm
#8
thx - but doesn't work...

i've completely removed prev. mapme v1.3 an installed the version from your link above.
i've entered my api-key, make my settings - after that it hangs at the user location update (see screen)...



[ Edited Fri Dec 18 2009, 06:07 pm ]
Mon Dec 21 2009, 06:11 pm
#9
can you attach the xml generated from link
http://yoursite.com/(plugins_directory)/mapme/mapxml.php?p=update

PM me the file if you feel problem attaching it.
Mon Dec 21 2009, 06:34 pm
#10
if i enter this http://www.chimera-clan.de/e107_plugins/mapme/mapxml.php - this message will be displayed:
"This XML file does not seem to be style-related information. Below is shown the tree view of the document."

here is my mapxml.php attached...
Attachment

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

EdwardFew
Mon Mar 18 2024, 01:14 pm
EmeryPah
Mon Mar 18 2024, 11:51 am
RobertMax
Sun Mar 17 2024, 10:22 pm
DanielJar
Fri Mar 15 2024, 06:52 pm
Tuzaimecor
Fri Mar 15 2024, 02:32 am
PromotionFoode
Thu Mar 14 2024, 08:11 pm
EdwardGeawn
Sun Mar 10 2024, 12:24 pm
ZacharyShado
Sat Mar 09 2024, 10:04 am