jOpenSimWorld

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

grid map teleport

12 years 10 months ago #982 by DJ Devil
hey, i like the grid map and i was looking for a way to do the teleport to a region from there kinda like the slurl service from second life here is how i do it
	$regionimage = "<a href='secondlife:///%2\$s/'><img id='mapimage_%6\$s' name='mapimage_%6\$s' src='/".$assetpath."regionimage.php?uuid=%1\$s&mapserver=%3\$s&mapport=%4\$s&scale=".$scale."&info=%5\$s' border='1' alt='%2\$s' title='%2\$s' /></a>";

now my qustion is in the admin area it shows when a user is logged in , how can i get it there so i can do it like this
////if user is not logged in/////
	$regionimage = "<img id='mapimage_%6\$s' name='mapimage_%6\$s' src='/".$assetpath."regionimage.php?uuid=%1\$s&mapserver=%3\$s&mapport=%4\$s&scale=".$scale."&info=%5\$s' border='1' alt='%2\$s' title='%2\$s' />";
/////if user is logged/////
	$regionimage = "<a href='secondlife:///%2\$s/'><img id='mapimage_%6\$s' name='mapimage_%6\$s' src='/".$assetpath."regionimage.php?uuid=%1\$s&mapserver=%3\$s&mapport=%4\$s&scale=".$scale."&info=%5\$s' border='1' alt='%2\$s' title='%2\$s' /></a>";

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

12 years 9 months ago #983 by foto50
Basically it is possible, but there needs to be done more than just replacing 1 or 2 lines.

But in general, the surl could be added anyway since when not logged in, the assinged viewer should start automatically. Only question is, if it wouldnt be a bit confusing if the map has additional info attached with the small yellow which would contain a different link.

Greetz
FoTo50

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

12 years 9 months ago #984 by DJ Devil
yes but i dont intend on linking articles to it, the question for the userstatus is if a user is on another grid lets say for example osgrid and clicks on my map while browsing the web it would redirect to osgrid instead of my grid

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

12 years 9 months ago #985 by DJ Devil
Also i just tested it, when the small arrow is attached it keeps the links seperate the secondlife:// and the link to the article

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

12 years 9 months ago #987 by foto50
That's right ... it usually always tries to find the region in the current connection regardless of the grid. It is sorta of a "relative" link. Documentation on this is rather poor, but maybe we find some way of absolute url format to let the viewer know, what grid the surl belongs to.

Greetz
FoTo50

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

12 years 9 months ago #995 by DJ Devil
i am doing it like this on my map now maybe it gives you an idea
<?php
$region = $_GET['r'];
$x = $_GET['x'];
$y = $_GET['y'];
$z = $_GET['z'];
header("location:secondlife://$region/$x/$y/$z/");
?>
<body onload="javascript:top.window.close()">

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

12 years 9 months ago #996 by DJ Devil
on a different php file, another idea would be recompiling the singularity/phoenix source

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

Time to create page: 0.084 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): 7
Total Residents: 485
Online Now: 0
Hypergriders online: 0