Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


[INFO] Weathermap 0.94 released (now 0.941)
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2132
Location: United Kingdom

PostPosted: Mon Nov 19, 2007 3:38 pm    Post subject: Reply with quote

nduda78 wrote:
Howie, thanks for you help today. I've been able to redo many maps with the new features. One small side question, what is the syntax to get an image to appear in the hoverover of a link? Can OVERLIBCAPTION be used to point to a local png file? I was reading up on the special tokens and don't see that OVERLIBCAPTION can, maybe I am wrong.

Basically on my hoverover I want the title to say something, which i did with OVERLIBCAPTION. Then a small image (like the logo of the ISP being used on that link), then the normal bandwidth graph , and finally NOTES , which works fine.

Thanks


Easiest way would be to put it into the NOTES and skip OVERLIBGRAPH:

Code:

NOTES <img src="mylogo.gif"><br /><img src="mygraphpng"><br />Here are my notes


It does mean the editor is not so useful though - you'd have to combine the OVERLIBGRAPH line that it generates with your NOTES. If you don't mind that the logo comes after the graph, then just use OVERLIBGRAPH and then put the logo in your NOTES in a similar way.
Back to top
nduda78
Cacti User


Joined: 01 Mar 2005
Posts: 106

PostPosted: Tue Nov 20, 2007 8:21 am    Post subject: Reply with quote

Howie wrote:
nduda78 wrote:
Howie, thanks for you help today. I've been able to redo many maps with the new features. One small side question, what is the syntax to get an image to appear in the hoverover of a link? Can OVERLIBCAPTION be used to point to a local png file? I was reading up on the special tokens and don't see that OVERLIBCAPTION can, maybe I am wrong.

Basically on my hoverover I want the title to say something, which i did with OVERLIBCAPTION. Then a small image (like the logo of the ISP being used on that link), then the normal bandwidth graph , and finally NOTES , which works fine.

Thanks


Easiest way would be to put it into the NOTES and skip OVERLIBGRAPH:

Code:

NOTES <img src="mylogo.gif"><br /><img src="mygraphpng"><br />Here are my notes


It does mean the editor is not so useful though - you'd have to combine the OVERLIBGRAPH line that it generates with your NOTES. If you don't mind that the logo comes after the graph, then just use OVERLIBGRAPH and then put the logo in your NOTES in a similar way.


Getting the Red X with line like this:

NOTES <img src="/www/htdocs/cacti/plugins/weathermap/images/logo.gif"> Blah Blah Blah Blah Blah

logo.gif is chowned to the cactiuser
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2132
Location: United Kingdom

PostPosted: Tue Nov 20, 2007 8:33 am    Post subject: Reply with quote

nduda78 wrote:


Getting the Red X with line like this:

NOTES <img src="/www/htdocs/cacti/plugins/weathermap/images/logo.gif"> Blah Blah Blah Blah Blah

logo.gif is chowned to the cactiuser


That's a URL, so unless your webserver is laid out very strangely, it should be:

Code:

NOTES <img src="/cacti/plugins/weathermap/images/logo.gif"> Blah Blah Blah Blah Blah
Back to top
nduda78
Cacti User


Joined: 01 Mar 2005
Posts: 106

PostPosted: Tue Nov 20, 2007 8:38 am    Post subject: Reply with quote

Howie wrote:
nduda78 wrote:


Getting the Red X with line like this:

NOTES <img src="/www/htdocs/cacti/plugins/weathermap/images/logo.gif"> Blah Blah Blah Blah Blah

logo.gif is chowned to the cactiuser


That's a URL, so unless your webserver is laid out very strangely, it should be:

Code:

NOTES <img src="/cacti/plugins/weathermap/images/logo.gif"> Blah Blah Blah Blah Blah


Thanks Howie, that worked.
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Tue Nov 20, 2007 1:12 pm    Post subject: Reply with quote

Howie,

I'm getting the following when I try to add a new node:

Code:
var fromplug=1; // the only javascript in here should be the objects representing the map itself // all code should be in editor.js


The node gets added, but if I try to edit any of it's properties, I cannot, and it displays that message. Also now when a node is added, it no longer displays anything, it just makes an invisible object on the screen, and the only way to find it is to move the mouse around until you see the cursor change.

EDIT: nevermind, I fixed it.
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2132
Location: United Kingdom

PostPosted: Tue Nov 20, 2007 7:15 pm    Post subject: Reply with quote

streaker69 wrote:

EDIT: nevermind, I fixed it.


But did I break it, or you?

I guess it was a missing ?> or similar in the editor-config.php?
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Tue Nov 20, 2007 7:40 pm    Post subject: Reply with quote

Howie wrote:
streaker69 wrote:

EDIT: nevermind, I fixed it.


But did I break it, or you?

I guess it was a missing ?> or similar in the editor-config.php?


Nothing you did, I broke it. I upp'ed to .94 and didn't clean out .93.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group