jOpenSimWorld

Grid Status: Online
Total Regions: 23
Visitors (30 Days): 12
Total Residents: 485
Online Now: 0
Hypergriders online: 0

Map Issue

13 years 8 months ago #472 by jscollett
I am having trouble with the map. The module just displays the name of my regions.
I am running:
* Apache2 (Version 2.2.11)
* MySQL5 (Version 5.1.35)
* PHP5 (Version 5.3.5)
* Joomla (Version 1.5.15)
* Opensim diva distro r13981
I am also running in stand alone mode. I\'m not on the grid at all. Whole thing is running local just for me right now.

Any Ideas?

Please Log in or Create an account to join the conversation.

13 years 8 months ago #476 by foto50
Hi jscollett

It looks like there is some wrong setting and therefor the image doesnt show up. Firefox displays the alt text (= region name) instead and MSIE that image with the red x - correct? Does Joomla and OpenSim reside on the same server? Could you investigate the url of the images please? They show be something like
someurl/components/com_opensim/assets/regionimage.php?uuid=...&mapserver=...&mapport=...&scale=...&info=no
Specially the \"mapserver=...\" part would be important to know.

You could then build the url directly and enter this into your browser to see if the images work from OpenSim side like:

http://[mapserver]:[mapport]/?method=regionImage[uuid]

Greetz
FoTo50

Please Log in or Create an account to join the conversation.

13 years 8 months ago #479 by jscollett
Just to make sure you know that my grid is only working locally on my PC for now. I plan on taking it live on the web at a later date. That is why the URLs say \"localhost\"
After I read your post about the differences between firefox and IE I realized that I had not tested out the site with IE. So when I tested with IE everything came up just fine and the images were there.

Here is the URL to one of my region images:
<a class=\"postlink\" href=\"http://localhost/joomla/components/com_opensim/assets/regionimage.php?uuid=fc5cb537a3324f95ae067b2ba2ab76c3&mapserver=127.0.0.1&mapport=9000&scale=256&info=no\">http://localhost/joomla/components/com_ ... 56&info=no

I was able to get this URL from right clicking on the image in IE and going to properties.When I put this URL into firefox it will display the image.

When I get the image URL From Firefox this is what I get:
<a class=\"postlink\" href=\"http://localhost/joomla/components%5Ccom_opensim%5Cassets%5Cregionimage.php?uuid=fc5cb537a3324f95ae067b2ba2ab76c3&mapserver=127.0.0.1&mapport=9000&scale=256&info=no\">http://localhost/joomla/components%5Cco ... 56&info=no

You can see that it is taking the \"/\" and replacing it with \"%5\" in the URL. Looks like the \"%5\" is generating a \"\\\" in the URL. That seems to be why its not bringing up the picture. any way to fix this?

Hope this help.

Joe

Please Log in or Create an account to join the conversation.

13 years 8 months ago #480 by foto50
Hi Joe

Is this all running on a windows server? It somehow seems that something goes wrong with Joomla\'s constant for the dash (DS) and it also seems that MSIE can somehow replace %5C with \"\\\" automatically while firefox cannot :shock: <img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" />:shock:

However, you could try to \"override\" Joomla\'s constant by changing 2 lines (1 for the frontend and 1 for the admin) as following and see if this solves your problem:

in path_to_your_joomla/components/com_opensim/views/maps/view.html.php near line 27 it says:
$assetpath = \"components\".DS.$mapinfo&#91;\'basename\'&#93;.DS.\"assets\".DS;
You can change this manually to
$assetpath = \"components/\".$mapinfo&#91;\'basename\'&#93;.\"/assets/\";
...and in path_to_your_joomla/administrator/components/com_opensim/views/maps/view.html.php near line 25 the same:
$assetpath = \"components\".DS.$assetinfo&#91;\'basename\'&#93;.DS.\"assets\".DS;
can be changed manually to
$assetpath = \"components/\".$assetinfo&#91;\'basename\'&#93;.\"/assets/\";
This could solve this issue temporary for you. But I will need to have a closer look to when and why exactly this behaviour appears to fix it in one of the next releases ...

Greetz
FoTo50

Please Log in or Create an account to join the conversation.

13 years 8 months ago #481 by jscollett
Greetz,
Right now its running on a windows vista. I plan on moving it to a windows XP machine in the next few days.

The code change seems to have corrected the issue.

Thanks so much for your help!! Now all I have to do is finish designing my site!

Joe

Please Log in or Create an account to join the conversation.

13 years 8 months ago #482 by foto50
Hi Joe

Happy I could help :) <img src=\"{SMILIES_PATH}/icon_e_smile.gif\" alt=\":)\" title=\"Smile\" />:) If you change to XP, please try out if the original code works then and let me know. But also please keep these lines in mind since I\'m not sure if I can solve this in the next version and an upgrade might overwrite these manual changes.

Greetz
FoTo50

Please Log in or Create an account to join the conversation.

Time to create page: 0.091 seconds

Search

Donate jOpenSim

Please consider supporting our efforts.

Amount

Our Regions

Region: Loc X: Loc Y:
Agora 1000 998
BareBad… 997 997
Bohemas 996 998
BoraBor… 1002 999
Crystal… 1001 1000
DeepTho… 1005 998
FoToSan… 999 995
jCity 1001 997
jOpenWe… 1000 999
JuniorT… 1002 1001
Kanadah… 1002 1000
LindaKe… 1000 997
LittleC… 996 997
MonteSc… 1001 1001
Naos 999 999
Pangaea 1005 1003
RiverSi… 999 1000
Sakani 999 998
Snambin 1001 998
Tartola 997 998
ViewerH… 1002 998
WaterWo… 1001 999
WilderK… 1000 1000

jOpenSimWorld

Grid Status: Online
Total Regions: 23
Visitors (30 Days): 12
Total Residents: 485
Online Now: 0
Hypergriders online: 0