Help - Search - Members - Calendar
Full Version: Making eqdkp work in frames! (Changing target=)
forums.eqdkp.com > EQdkp Support > Template & Style Support
Daelomdel
I wanted to have eqdkp load in a frame (as an embedded page), however, whenever someone clicked on a link from eqdkp it would "take over" the entire window.

I searched around the the forums and saw a bunch of people asking how to do this, however I didn't see a clear cut answer. After tinkering a bit I figured out how to make this work...

I made this change in eqdkp 1.0.3, not sure if its the same in other versions.

Here it is:

1. File /eqdkp/includes/eqdkp.php
2. Back it up!
3. Edit it....

Line: 298

${$var} .= '<a href="' . $this->root_path . $menu['link'] . '" class="copy" target="_top">' . $menu['text'] . '</a> | ';

Change it to....

${$var} .= '<a href="' . $this->root_path . $menu['link'] . '" class="copy" target="_self">' . $menu['text'] . '</a> | ';

4. Save the file.

Thats it, seems to affect ALL of the links in eqdkp. I have not tested extensively, but it seems to be working great. Just thought I would post this up to help anyone else trying to go the same thing.

Velkyn
EQ2 - Befallen
Perge
Does that work for people using php portals? Been looking for a way to have the DKP list in the portal area, leaving the overall_header.tpl showing. If not, is there an easy way to have the portal header show up on the dkp page?
swiz
Thank you very much for this tip, it works fine for me.
nnyan
using the latest version this (at least for me) did not work. It still launches a into a new window. sad.gif
Kringe
"Daelomdel" Dude you freaking rule! it has taken me three days to find this post but dag nabit I found it and now my eqdkp roster opens within its self!

Kringe
eqdkp ver 1.7

http://www.true-misery.com/forum/claninfo.asp?id=28
Hack
Yeesss!! THANKYOU so much for this 20second fix! I have spent the last 3 hours looking about on the joomla forums trying to find a fix.

I am going to copy paste your post over there so that others know what to do if they have the same problems biggrin.gif
soulofwolf
QUOTE(Daelomdel @ Aug 8 2005, 11:57 PM) [snapback]8170[/snapback]
I wanted to have eqdkp load in a frame (as an embedded page), however, whenever someone clicked on a link from eqdkp it would "take over" the entire window.

I searched around the the forums and saw a bunch of people asking how to do this, however I didn't see a clear cut answer. After tinkering a bit I figured out how to make this work...

I made this change in eqdkp 1.0.3, not sure if its the same in other versions.

Here it is:

1. File /eqdkp/includes/eqdkp.php
2. Back it up!
3. Edit it....

Line: 298

${$var} .= '<a href="' . $this->root_path . $menu['link'] . '" class="copy" target="_top">' . $menu['text'] . '</a> | ';

Change it to....

${$var} .= '<a href="' . $this->root_path . $menu['link'] . '" class="copy" target="_self">' . $menu['text'] . '</a> | ';

4. Save the file.

Thats it, seems to affect ALL of the links in eqdkp. I have not tested extensively, but it seems to be working great. Just thought I would post this up to help anyone else trying to go the same thing.

Velkyn
EQ2 - Befallen



omg simplistic and beautifull!! ty so much for this!!
soulofwolf
QUOTE(Perge @ Sep 29 2005, 12:33 AM) [snapback]9851[/snapback]
Does that work for people using php portals? Been looking for a way to have the DKP list in the portal area, leaving the overall_header.tpl showing. If not, is there an easy way to have the portal header show up on the dkp page?


hey perge there is a way to do it depending on your setup, i know this is a few months late but i'll include it anyway for anyone else looking. Start by making the changes that he posted..

then for your link to eqdkp you need it to link to a seperate file first, in that file you should include this script

CODE
<?php

if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
    die ("You can't access this file directly...");
}

$module_name = basename(dirname(__FILE__));

$index = 1;

    include("header.php");
    echo "<iframe name=\"framename\" SRC=\"../../../eqdkp/index.php\" borders=\"no\" scrolling=\"yes\" Height=\"800\" Width=\"97%\" name=\"frame\"></iframe>";
    include("footer.php");
?>


for me using phpnuke i have all links run through my modules directory, obviously you'll want to change your eqdkp path, but other than that it will open eqdkp in an iframe with your style still shown around it

an example of how it looks can be seen here
http://www.archeusguild.org/Nuke/html/modules.php?name=eqdkp
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.