Username:    Password:        Click Here To Signup     Forgotten Password
Main Menu
Online
Members: 0

Guests: 13

131.253.x.x user
175.42.x.x forum
175.42.x.x forum
175.44.x.x forum
175.44.x.x forum
178.32.x.x forum
192.80.x.x forum
220.161.x.x signup
220.250.x.x forum
42.62.x.x user
50.19.x.x forum
66.249.x.x user
88.242.x.x news

Last Seen

Dodgeitorelse Sat 12:09
palyarmerc Sat 11:09
xMin Sat 11:08
Wussie Sat 08:48
BYTM Sat 07:32

Newest Members

Forums
Map image hyperlink
HTM|Minion
Mon Mar 03 2008, 06:32PM

Posts: 25
Joined: Fri Feb 22 2008, 01:20PM
Registered Member #3734
I was wanting to take the map image from my zone display and link it to a url instead of having it linked to the server information page. I'm actually linking it to a page built into my CMS that will display the server info and keep the side blocks etc.
Website
HTM|Minion
Tue Mar 04 2008, 02:36AM

Posts: 25
Joined: Fri Feb 22 2008, 01:20PM
Registered Member #3734
So.. is there a way to disable the map images when they are in a zone then? My problem is my zone is in an iframe 200px wide and if you click an image it tries to open the 600px wide server info page in the 200px iframe...(not a pretty sight).
Website
Rich
Tue Mar 04 2008, 09:42AM
Posts: 1700
Joined: Wed Nov 26 2003, 04:30PM

I would edit the lgsl_zone.php and change:

a href='".lgsl_link($server['o']['id'])."'

to

a href='".lgsl_link($server['o']['id'])."' target='_parent'

which should make the link open in the full page instead of within the iframe.
Website
HTM|Minion
Tue Mar 04 2008, 04:29PM

Posts: 25
Joined: Fri Feb 22 2008, 01:20PM
Registered Member #3734
I'm used to hyperlinks using a url, I'm confused on how it knows where to go.

BTW.. did you remove the link to your map image renaming script or am I just blind Rich?
Website
Rich
Tue Mar 04 2008, 07:03PM
Posts: 1700
Joined: Wed Nov 26 2003, 04:30PM

Appologies, I posted the code for software link instead of the details page link. Have now corrected my post.

The lgsl_link function automatically works out where the zone is in relation to the rest of lgsl, and returns a link.

target='_parent' tells the browser to open that link in the webpage thats loading the iframe, instead of the iframe itself.

Your blind, its on the last page of the forum:
http://www.greycube.com/site/e107_plugins/forum/forum_viewtopic.php?6351
Use with caution.
Website
 

Jump:     Back to top


You are not logged in - Click Here To Signup

Username:    Password:   

Mini Buttons

.... © GreyCube.com - Richard Perry - Powered by e107.org