Dragonfly and iframe question

Dragonfly integration forum

Dragonfly and iframe question

Postby bohma » Wed Oct 03, 2007 2:35 am

Hiya

Maybe I am just going about this the wrong way, or am not sure what I should be looking for. I have checked a few Dragonfly sites, and forums, and I can't seem to find the answer... so here goes...

I would like to put two links on my menu (on the left side), (I am using DF Main Menu addon). I would like them to just use the center frame, and keep the menu bars on the left and right side of the screen. I tried a few variations, and alas, to no avial, it just keeps opening in a new page.

I saw a link for some iframe addon, though its no longer on the site as a download, and I could not find it on any other site.

I also saw "content" as a an addon, though this opens a block, which lists things to click on, which is nice, tough it does not translate the HTML very well, and I would prefer to put the two links under a specic header...


Anyone have any suggestions, or can point me in the right place to go.

Thanks
Image
User avatar
bohma
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Sun Sep 16, 2007 9:46 pm

Re: Dragonfly and iframe question

Postby Gator81 » Wed Oct 03, 2007 3:55 am

I dont use dragonfly but i did get some help for phpnuke and there could be something common that could help you get it to work. The last part is the one that worked for me on this thread.
http://www.wowroster.net/Forums/viewtop ... html#27566
Gator81
WR.net Journeyman
WR.net Journeyman
 
Posts: 115
Joined: Fri Jun 01, 2007 4:44 am

Dragonfly and iframe question

Postby Anaxent » Wed Oct 03, 2007 5:27 am

I have been working on porting roster 2.0 beta over to df and for the most part it is working very well granted there is still needed work to be done line the installer and such but as soon as Roster 2.0 becomes a release i should have this available to you guys.

Files that needed to be edited
/lib/cmslink.php
/header.php
/footer.php

Files that could also be edited
/lib/login.php

Here is a demo of what I have going so far
http://secret-order.us/df/WoWRoster.html

there are a few issues mostly because of the df theme being used which I will try to also iron out before release, but all the addons have installed and functioned with out the need to edit any of them which also includes the new siggen beta.
User avatar
Anaxent
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 642
Joined: Tue Jul 04, 2006 6:27 am
Location: Phoenix, Az

Re: Dragonfly and iframe question

Postby Scorn » Fri Mar 28, 2008 10:11 pm

I think this is what you are looking for... how to turn an IFrame into a module.

Careful because it is buggy and is completely unsupported by anyone.

Copy and paste the following code into a new webpage (notepad is acceptable).

Change the URL and name items.

If you wish to change the size (in order to remove a scroll bar for instance) adjust the hight and width accordingly.

Save the following into a file called index.php, Upload to /modules/NAME/
(change NAME into the name of the item you are Iframing.)


Code: Select all
<?php
if (!defined('CPG_NUKE')) { exit; }
/*--------------------[START CONFIG]-----------------------*/
$url = 'http://link.here.com'; /* URL */
$size = array(
'width'  => '100%', /* Width */
'height' => '1500'  /* Height */
);
$pagetitle .= 'PAGE TITLE'; /* Title*/
/*---------------------[END CONFIG]------------------------*/
require_once('header.php');
OpenTable();
echo '<center>'
    .'<iframe src="'.$url.'" width="'.$size['width'].'" height="'.$size['height'].'" BORDER=0 FRAMEBORDER=0 FRAMESPACING=0>'
    .'Your browser dosen\'t support iframe\'s, Get a real browser. Firefox - getfirefox.com'
    .'</iframe>'
    .'</center>';
CloseTable();
?>


Log in to Dragonfly as administrator.

Go to modules and activate.

I currently use this technique for our calendar: http://pwd-guild.com/index.php?name=Calendar
Last edited by Scorn on Fri Mar 28, 2008 10:20 pm, edited 2 times in total.
User avatar
Scorn
WR.net Apprentice
WR.net Apprentice
 
Posts: 21
Joined: Wed Jul 12, 2006 4:09 am
Location: Toronto, Ontario

Re: Dragonfly and iframe question

Postby IslandStyle » Fri Mar 28, 2008 11:33 pm

Scorn wrote:I think this is what you are looking for... how to turn an IFrame into a module.

Careful because it is buggy and is completely unsupported by anyone.

Copy and paste the following code into a new webpage (notepad is acceptable).

Change the URL and name items.

If you wish to change the size (in order to remove a scroll bar for instance) adjust the hight and width accordingly.

Save the following into a file called index.php, Upload to /modules/NAME/
(change NAME into the name of the item you are Iframing.)


Code: Select all
<?php
if (!defined('CPG_NUKE')) { exit; }
/*--------------------[START CONFIG]-----------------------*/
$url = 'http://link.here.com'; /* URL */
$size = array(
'width'  => '100%', /* Width */
'height' => '1500'  /* Height */
);
$pagetitle .= 'PAGE TITLE'; /* Title*/
/*---------------------[END CONFIG]------------------------*/
require_once('header.php');
OpenTable();
echo '<center>'
    .'<iframe src="'.$url.'" width="'.$size['width'].'" height="'.$size['height'].'" BORDER=0 FRAMEBORDER=0 FRAMESPACING=0>'
    .'Your browser dosen\'t support iframe\'s, Get a real browser. Firefox - getfirefox.com'
    .'</iframe>'
    .'</center>';
CloseTable();
?>


Log in to Dragonfly as administrator.

Go to modules and activate.

I currently use this technique for our calendar: http://pwd-guild.com/index.php?name=Calendar



Yeah thats the same code that i used to add a page as a module here
http://kalimdortribe.com/index.php?name=BBClone

You may have to play with the numbers for the height and width to get it to look someone decent.
Image
Image
User avatar
IslandStyle
WR.net Apprentice
WR.net Apprentice
 
Posts: 41
Joined: Tue Jul 11, 2006 8:57 am

Dragonfly and iframe question

Postby Kelv » Mon Mar 31, 2008 4:05 am

Little JScript to get rid of those scroll bars added...
Code: Select all
<?php
if (!defined('CPG_NUKE')) { exit; }

require_once(
'header.php');
echo 
'<script type="text/javascript">
function resizeme(obj)
{
var browser=navigator.appName
if (browser == "Opera" || browser == "Microsoft Internet Explorer")
{
  docHeight = myIFrame.document.body.scrollHeight
  obj.style.height = docHeight + 30
}
else

  obj.height = obj.contentDocument.body.offsetHeight+16

}
}
</script> '
;

$size = array(
'width'  => '110%'/* Width */
'height' => '1500'  /* Height */
);

$pagetitle .= 'DKP -> Member Standings';
$url '/eqdkp/plugins/raidplan/listraids.php';

OpenTable();

echo 
'<center><iframe id="myIFrame" src="'.$url.'" onload="resizeme(this)" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%;">
If you can see this, your browser doesn\'t understand and use IFRAME\'s. Get a real browser. Firefox - getfirefox.com.</iframe><center>'
;  
    
CloseTable();
?>
Last edited by Kelv on Mon Mar 31, 2008 4:06 am, edited 1 time in total.
Kelv
WR.net Apprentice
WR.net Apprentice
 
Posts: 49
Joined: Fri Dec 08, 2006 8:52 pm


Return to Dragonfly

Who is online

Users browsing this forum: No registered users and 1 guest

cron