Superlinks Problem

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

deu439356
Cacti User
Posts: 73
Joined: Wed Aug 13, 2008 8:08 am

Superlinks Problem

Post by deu439356 »

I am seeing an issue when I click on superlinks link in Firefox (like to google), the page loading will not display full screen. Please see the attached screen shot. It works great in IE. Cool plugin! :D
Thanks,

DEU
Attachments
SuperlinksProb.JPG
SuperlinksProb.JPG (87.19 KiB) Viewed 15118 times
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Which version of Superlinks? and Firefox?

This worked for me last time I tried it (in Firefox)...
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
deu439356
Cacti User
Posts: 73
Joined: Wed Aug 13, 2008 8:08 am

Post by deu439356 »

FF: 3.05 Superlinks: 0.8

I don't have any custom FF setting either... very strange.

I would like to note that when I create a tab at the top, it works fine, it is just when I have it in the console I am seeing the issue.
sasifras
Cacti User
Posts: 58
Joined: Tue Nov 18, 2008 6:57 am

Post by sasifras »

It appears that the code in the top_header.php is "causing" the problem. I haven't had much time to investigate, but my initial glace would be that the <TD> is limiting the size of the "rows to be used" or something along those lines (or the code is not being finished properly and that is causing the problem. Anyway, this only appears to happen with the console-based links (which depend on the top_header.php) versus the TAB'd links.

In superlinks.php, if you find the line:

Code: Select all

include_once("./include/top_header.php");
and replace it with:

Code: Select all

include_once("./include/top_graph_header.php");
you won't get the "boxy" feel in the iframe, but it will "overlay" the console menu at the same time...not exactly a "perfect" fix.

also, something else that is strange. Although IE "appears" to work, if you re-size IE when the console link is selected (using the original code), the result is the same as the initial FF screen which leads me to believe IE is not interrupting the code properly initially either.

Anyway, attached are some screenshots
Attachments
FF SS with the &amp;quot;boxy&amp;quot; feel
FF SS with the &quot;boxy&quot; feel
superlinks-ss.JPG (76.44 KiB) Viewed 15051 times
IE, initial link - no resizing done yet
IE, initial link - no resizing done yet
ie-unresized.JPG (91.57 KiB) Viewed 15051 times
IE, resized
IE, resized
ie-resized.JPG (80.81 KiB) Viewed 15051 times
deu439356
Cacti User
Posts: 73
Joined: Wed Aug 13, 2008 8:08 am

Post by deu439356 »

Thank you! That fixed the problem!
venter
Posts: 10
Joined: Tue Jun 15, 2010 5:54 am

Post by venter »

I got the same problem with superlinks 0.8 and cacti 0.8.7g beta2.

I fixed that by adding following trick, just change
print '<iframe src="' . $page['contentfile'] . '" width="100%" height="100%" frameborder="0"></iframe>';
to
print '<iframe id="frame" src="' . $page['contentfile'] .'" width="100%" height="100%" frameborder="0"></iframe>';
print "<script type='text/javascript'>
function resizeIframe() {
var height=window.innerWidth;//Firefox
if (document.documentElement.clientHeight) {
height=document.documentElement.clientHeight;//IE
};
document.getElementById('frame').style.height=parseInt(height-document.getElementById('frame').offsetTop-72)+'px';
};
document.getElementById('frame').onload = resizeIframe;
window.onresize = resizeIframe;
</script>";
in superlinks.php
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Howie was made aware of this over a month ago. I suspect that he is prepping a new version of Superlinks to deal with this. Like me, his is a very busy man.

Thanks for the patch!

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

This version of top_header from version E, I had to modified it to increase the size of the frame.

If you Use this with the latest version works well too.

LA
Attachments
top_header.php.txt
(5.55 KiB) Downloaded 738 times
dga
Posts: 2
Joined: Thu Apr 24, 2008 5:46 am

Post by dga »

Hello all,

I have same problem with superlinks in cacti 0.7.8g.
I added in next css style inside head tag of top_graph_header.php


<style type="text/css">
html,body{
width:100%;
height:100%;
margin:0px;
padding:0px;
}
</style>
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

zoemu wrote:This version of top_header from version E, I had to modified it to increase the size of the frame.

If you Use this with the latest version works well too.

LA
Hi
is that modification compatible with cacti 0.87g - the newest one?
Torsten
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

It worked for me
mrgenius
Posts: 41
Joined: Fri Feb 18, 2005 4:37 pm

Re: Superlinks Problem

Post by mrgenius »

i have tried all the workaround mentioned.. but none seems to work for me. i am still getting tabbed link in upper half of the page.

can someone tell me how to fix it???


using cacti 0.8.7g & superlinks 0.8
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Superlinks Problem

Post by TheWitness »

Attach a screen shot.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
mrgenius
Posts: 41
Joined: Fri Feb 18, 2005 4:37 pm

Re: Superlinks Problem

Post by mrgenius »

Screen Shots are attached.

Behaviour is same in IE & Firefox. where as in Safari it shows a blank page in that area.
Attachments
In Safari Browser, Super links showing Blank Page  i.
In Safari Browser, Super links showing Blank Page i.
Superlinks-Safari.JPG (29.07 KiB) Viewed 12266 times
In Firefox Browser, Super link showing Page in Top frame.
In Firefox Browser, Super link showing Page in Top frame.
Superlinks-Firefox.JPG (43.25 KiB) Viewed 12266 times
In Internte Explorer 8, Super link showing Page in Top frame
In Internte Explorer 8, Super link showing Page in Top frame
Superlinks-IE.JPG (41.42 KiB) Viewed 12266 times
User avatar
mpdsville1
Cacti User
Posts: 71
Joined: Wed Mar 16, 2005 12:11 pm
Location: Albany , NY , USA

Re: Superlinks Problem

Post by mpdsville1 »

I'm still at an impasse with superlinks v0.8 on cacti version 0.8.7g as well ..
I've tried the two fixes listed in this thread and have found no joy.
I'm unsure how to try the css fix. exactly where does one place the style declaration?

Has anyone figured out exactly what is going on with this problem?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest