Discussion in "Map Me Support" started by    WayneM    Mar 5, 2008.
Wed Mar 05 2008, 04:22 am
#1
Great plugin! :-)

One slight problem for me:

My e107 is installed in a subdirectory, like this:
http://www.mywebsite.com/e107/...

So, for example, a link to a user profile looks like this:
http://www.mywebsite.com/e107/user1.html

When the plugin builds urls to the avatar images, the urls end up as relative paths that look like this:
<img src="../../e107_files/public/avatars/somefile.gif">


My installation of e107 works fine otherwise, and the avatar_handler returns properly formatted urls for all other instances.

Seems like the code might need a tweak to fix this ??

Thanks for a great new feature for my website. If you can find a fix for this issue I'd be very pleased - even more! :-)
Fri Mar 07 2008, 07:37 am
#2
Is it just me?
Fri Mar 07 2008, 09:26 pm
#3
Well, I did the fix on this myself.

I did some rewrite of the "mapmejs.php" file, and had to make a change in the e107 file "avatar_handler.php"

Changed mapmejs.php line 42 as follows:

e_BASE changed to e_HTTP

From:

$html = "\"<div style='width:250px; height:100px'>
<div style='float:right; width:130px; text-align:left;'>
<a href='".e_BASE."user.php?id.".$uid."' title='".$row['user_name']."'>
<b>
".$row['user_name']."</b>
</a>
<br>
".MAPME_JS_001." ".$row['user_name']." ".MAPME_JS_002." ".$row['loc'].".";


To:

$html = "\"<div style='width:250px; height:100px'>
<div style='float:right; width:130px; text-align:left;'>
<a href='".e_HTTP."user.php?id.".$uid."' title='".$row['user_name']."'>
<b>
".$row['user_name']."</b>
</a>
<br>
".MAPME_JS_001." ".$row['user_name']." ".MAPME_JS_002." ".$row['loc'].".";


That change makes the link to the user profile work.


Changed avatar_handler.php line 24 as follows:

e_FILE changed to e_FILE_ABS

From:

return e_FILE."public/avatars/".str_replace("-upload-", "", $avatar);


To:

return e_FILE_ABS."public/avatars/".str_replace("-upload-", "", $avatar);



That change of the e107 constant makes the avatar handler return an absolute address, instead of a relative address, and so the avatar image now shows up in the mapme bubble.

It looks like this change to the avatar handler file has no ill effects in regard to the way the rest of the e107 core files work for the forums (avatar display, and avatar uploads). But, I’m not an expert on this, and so really don't know if this is a bad change to have made in a core handler - only time will tell. If anyone out there know if this is a bad idea to make this change, please say so - and why.

I hope this helps others with unusual e107 directory structures to use this the mapme plugin. :-)
 Spawn like this.
Sat Mar 08 2008, 10:07 am
#4
hey hey hey.. cant you wait for a replay?
I have other stuff to do ok?

and i think it might be just you facing this problem. I did not see any problem so far. coz relative address is also corresponds to your subdirectory.

Edit:
good you edited as per your requirement
I will wait if someone else report this problem, and will work on finding a solution if necessary.


[ Edited Sat Mar 08 2008, 10:08 am ]
Sun Mar 15 2009, 02:22 am
#5
I'm experiencing the same issue that WayneM was.

My users avatars are showing up at:
http://mysite.com/e107/e107_files/public/avatars/ap_3_mudz2.jpg

but MapMe is looking for the avatar at:
http://mysite.com/e107_files/public/avatars/ap_3_mudz2.jpg

How can I resolve this? Should I edit the files that Wayne did, or wait for a change in the application? I'll wait if it won't take that long, but if it's going to be a long wait then perhaps editting the files is the best solution?
Sun Mar 15 2009, 09:56 pm
#6


Should I edit the files that Wayne did, or wait for a change in the application? I'll wait if it won't take that long, but if it's going to be a long wait then perhaps editting the files is the best solution?

Spawn



If you want it to work, you should make the edits yourself now.

I'd say that based on the general level if inactivity of posts in this forum, Map Me! now seems to be a non-supported, dead project. The current version has been in need of several fixes for a good long time.

I just found another bug earlier this week: The user inputs for location description are not cleaned for bad characters prior to being added to the database (or properly escaped during output). Character inputs like apostrophes and quotes can really screw up the output and make the maps completely non-functional. When this happens, it requires a manual search of the database to find and remove the offensive characters.

It really bugs me when a nice plugin like this is neglected. I don't randomly add plugins to my e107 site. I try to make sure that I choose plugins that work well and seem to have good support and the best possibility for longevity. My users have invested a lot of time into adding their locations to my website, and now I'm stuck with a marginally functional plugin.

I'd really like to see Ajay make the fixes and get a new version out ASAP.
 Spawn like this.
Sun Mar 15 2009, 10:46 pm
#7
Thanks WayneM! I did already edit the files, and the avatars are showing perfectly. It's a shame that plugins like this do end up being neglected, especially when there aren't really any plugins similar to this (I've only found 2 member mapping plugins for e107 - including this one!)
On another note, do you happen to know how to edit the information in the member balloon? Right now all I see is the member name and "Modify location". I did happen to find that there is text in the box, but it must be written in the same color as the background, because I can only see it if I highlight the box.

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