Superlinks Problem

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

irakla7777777
Posts: 13
Joined: Sun Dec 04, 2011 12:16 pm

Re: Superlinks Problem

Post by irakla7777777 »

host.php is located in /var/www directory
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Superlinks Problem

Post by TheWitness »

Sounds right...
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?
irakla7777777
Posts: 13
Joined: Sun Dec 04, 2011 12:16 pm

Re: Superlinks Problem

Post by irakla7777777 »

is some way to fix this problem ? :(
evrenbey
Posts: 6
Joined: Mon Nov 28, 2011 8:29 am
Location: Turkey/Ankara

Re: Superlinks Problem

Post by evrenbey »

Hello i have also same problem as shown below

cacti Version 0.8.7g
Superlinks 1.4.2
Attachments
Capture.PNG
Capture.PNG (69.83 KiB) Viewed 4336 times
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Superlinks Problem

Post by TheWitness »

Use firefox and firebug and post the javascript error. This is compatible with 'h' and 'i'. Might be another buggy plugin interfering...
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?
evrenbey
Posts: 6
Joined: Mon Nov 28, 2011 8:29 am
Location: Turkey/Ankara

Re: Superlinks Problem

Post by evrenbey »

i tried with firefox 8.0 and firebug, there is no javascript error at all.

And also i tried with internet explorer 9.0.3

No change, same problem still exists.
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Superlinks Problem

Post by noname »

Try debugging..

In 'plugins/superlinks/setup.php' (at line 315-316), add "alert(...);" as follows:

Code: Select all

function superlinks_page_bottom() {
	...
	function resizeWindow() {
		...
		alert('resizeWindow() was successfully called');
	}
	...
}
After modified, can you see pop-up window when clicked 'NewTab' (or other tab)?
If not, just guessing..
1) JavaScript is OFF
2) Conflicts due to multiple versions of jQuery
3) Other plugin which forces <body onload=".."> will prevent $().ready working
4) Or else (I'm not sure)

// Sorry my English
evrenbey
Posts: 6
Joined: Mon Nov 28, 2011 8:29 am
Location: Turkey/Ankara

Re: Superlinks Problem

Post by evrenbey »

noname wrote:Try debugging..

In 'plugins/superlinks/setup.php' (at line 315-316), add "alert(...);" as follows:
Code:
function superlinks_page_bottom() {
...
function resizeWindow() {
...
alert('resizeWindow() was successfully called');
}
...
}

After modified, can you see pop-up window when clicked 'NewTab' (or other tab)?
If not, just guessing..
1) JavaScript is OFF
2) Conflicts due to multiple versions of jQuery
3) Other plugin which forces <body onload=".."> will prevent $().ready working
4) Or else (I'm not sure)
Hello
I edit the setup.php as you said and then try with firefox and IE notings happen
no pop up window appear.
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Superlinks Problem

Post by noname »

evrenbey wrote:I edit the setup.php as you said and then try with firefox and IE notings happen
no pop up window appear.
Then try to disable/enable (not uninstall) other plugin one by one
in order to make sure what causes this issue.
evrenbey
Posts: 6
Joined: Mon Nov 28, 2011 8:29 am
Location: Turkey/Ankara

Re: Superlinks Problem

Post by evrenbey »

noname wrote:
evrenbey wrote:I edit the setup.php as you said and then try with firefox and IE notings happen
no pop up window appear.
Then try to disable/enable (not uninstall) other plugin one by one
in order to make sure what causes this issue.
Hello
i disabled all plugins also superlinks plugin and remove all external links
and then i only enable superlinks plugin and add one external link as a URL link but nothing change.
there is still little window up-left of the cacti screen.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Superlinks Problem

Post by TheWitness »

Only way to solve this is to have a qualified support person have online session or full access to your system. It's definitely another plugin issue and not SuperLinks.
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?
evrenbey
Posts: 6
Joined: Mon Nov 28, 2011 8:29 am
Location: Turkey/Ankara

Re: Superlinks Problem

Post by evrenbey »

Hello

i solve the problem with upgrading the cacti to last version : )

Now everythings work perfectly.

Thanks for your replys
jcb
Posts: 29
Joined: Thu May 19, 2011 10:14 pm

Re:

Post by jcb »

Hi,

I had already trying everything ... then follow the tip of the venter and gave some, but the following message appears as i try to open an external site and in suggesting a url internal works, but also occupies the whole page.
IE 9.0.3
FF 8.0.1
Superlinks 1.4
Cacti Version 0.8.7i
Cacti OS unix CentOS
SNMP Version NET-SNMP version: 5.3.2.2
RRDTool Version RRDTool 1.4.x
PHP Version 5.1.6
venter wrote: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
lcano
Cacti User
Posts: 190
Joined: Thu Oct 09, 2008 5:46 pm
Location: Spain

Re: Re:

Post by lcano »

Does anybody solve this issue?

Also same situation, a little web page in the left upper corner, but never filling the whole page. I tried firebug, but not javascript error. Also tried to change the code in superlinks.php as 'jcb' mentioned in the previous post, but no changes. Also disabling most of the plugins already installed, but no changes.

I tried with FF 3.6, IE 6.0 and Chrome 18.0.1025.162 (Portable version), and all of them have the same problem.

Could it be an incompatibility issue between versions?

Info:

Code: Select all

Cacti: 0.8.7g
Superlinks: 1.4
Pluging Architecture: 2.8
Debian 6.0. Kernel 2.6.32-5-686
Thanks...

Luis
moxxbiales
Posts: 41
Joined: Thu Jun 04, 2015 11:36 am
Location: France

Re: Superlinks Problem

Post by moxxbiales »

Hi everyone,
I've got the same kind of issue.
My tabs work fine for most of my links except for google and another one wich give me some blank pages
weird stuff...
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests