Discussion in "Map Me Support" started by    Penbrock    Feb 25, 2008.
Mon Feb 25 2008, 02:04 am
#1
Is there a page I can make a link to that will show just the map with user locations? I know it shows under a list of users but if you have hundreds of users that can get to be a long list
Mon Feb 25 2008, 11:55 pm
#2
use {MAP} shortcode in a custom file. it will show you all users on a world map. I think that is what you wanted...
Tue Mar 04 2008, 01:17 am
#3
Pardon me ahead of hand for being an e107 newbie.
I tried calling the shortcode map.sc following the basic directions I found on e107.org for making a custom page with enabled shortcode, but I don't seem to be able to get it to process the shortcode. I am not sure what I am doing wrong.

Is there an example I could reverse engineer so I can learn this stuff?

I want to add a site link for a user map showing all the pins.
the user location profile maps work great so far.

thanks
Thu Mar 06 2008, 06:59 pm
#4
The {MAP} shortcode does seem to do something in a custom page... But, all that gets displayed in the page is a blank table with the title "Members Map".

Has anyone got this work yet?
Thu Mar 06 2008, 08:43 pm
#5
i forget to tell there is one more thing need to be added in that custom page..

a java script code..
let say your custom page name is abc.php

so open e_meta.php from mapme plugin folder..
add this part of code at the end..

if (e_PAGE == abc.php) {
	$footer_js[]= "http://maps.google.com/maps?file=api&v=2&key=".$pref['mapme_key'];
	$footer_js[]= e_PLUGIN."mapme/mapjs.php";
}


Please test it and tell me
Fri Mar 07 2008, 09:41 pm
#6
I tried this fix, and it caused my e017 website to parse error on every page!

Scared me silly and I undid the change in about 2 seconds and all is now well. I didn't look at the error code long enough to provide any other details - sorry.

The file name I used had a "?" in it. Like: page.php?35

I don't know if that was the problem. But, I'm not going to repeat that test again to find out.

Any other suggestions??
Sat Mar 08 2008, 10:31 am
#7
I am on traveling right now and so couldn't do any test of changes i suggested.

Also i don't think there is a need of link to map only.. members page is enough for this. and i have posted code to move the user map to the top area of members page.

here is what i wrote:

for those who what member map at the top... do this hack!! - this hack will be an added in the next version of Map me!
open e_meta.php in mapme folder in e107 plugins folder...

there you find..

$USER_SHORT_TEMPLATE_END .="{MAP}";


change it to...
$USER_SHORT_TEMPLATE_START ="{MAP}".$USER_SHORT_TEMPLATE_START;


member map will move to top...

Rickey



2dopey already tested everything...
Sat Mar 08 2008, 06:37 pm
#8
Regarding your example code for the stand alone page:

You left out some important " " ....

Your example:
if (e_PAGE == abc.php) {
        $footer_js[]= "http://maps.google.com/maps?file=api&v=2&key=".$pref['mapme_key'];
        $footer_js[]= e_PLUGIN."mapme/mapjs.php";
}


Should be:
if (e_PAGE == "abc.php") {
        $footer_js[]= "http://maps.google.com/maps?file=api&v=2&key=".$pref['mapme_key'];
        $footer_js[]= e_PLUGIN."mapme/mapjs.php";
}


That fixes the parse error. But, it did not have any effect on displaying the members map on a custom page.

I disagree that there is no need, or use for, a stand alone members map page. I'd really like to have one. But, if that's not possible, your fix to move it to the top of the user list page is nice to have - thanks.
Mon Mar 10 2008, 12:17 am
#9
Maybe in next version i make it a stand alone page
my idea was just to have all members to be displayed on one map. and i thought its better to have it on members page. But maybe people want to have it separate so i will work out on it. And have to work on some small bugs
Hope i will get enough time.
Thu Apr 17 2008, 12:38 pm
#10
Hi,

any news available?

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm
Bernardwarge
Tue Mar 26 2024, 11:15 am