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    


Alert sounds for Manage without Quicktime Plugin

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin General
Author Message
streaker69
Cacti Pro User


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

PostPosted: Thu Aug 07, 2008 8:21 am    Post subject: Alert sounds for Manage without Quicktime Plugin Reply with quote

I use Firefox all the time, and one thing that's always bothered me is the default association with playing an embedded WAV and needing to install Quicktime. I also like to use Gilles plugin Manage, but never liked that I needed Quicktime.

I made a little change to the manage_ajax.php so that if you're running Windows to watch Cacti, it will now embed Media player in both IE and FF without the need for Quicktime to be installed.

Just install the following code at the indicated places.

Code:

   $sound = $config["url_path"] . "plugins/manage/images/themes/".$theme."/attn-noc.wav";
   print "<object id=MediaPlayer1 CLASSID=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6";
   print "standby=Loading Microsoft Windows® Media Player components... type=application/x-oleobject width=640 height=480>";
   print "<param name=fileName value=".$sound.">";
   print "<param name=animationatStart value=true>";
   print "<param name=transparentatStart value=true>";
   print "<param name=autoStart value=true>";
   print "<param name=playcount value=0>";
   print "<param name=uimode value=invisible>";
   print "<param name=Volume value=-450>";
   print "<embed type=application/x-mplayer2 pluginspage=http://www.microsoft.com/Windows/MediaPlayer/ src=".$sound." name=MediaPlayer1 uimode=invisible width=1 height=1 autostart=1 playcount=0 volume=-450>";
   print "</object>";


It should work without much issues, as long as you have Media Player installed on your Windows Boxen. Make sure you comment out the lines indicated in the screen caps or else you'll have either two instances playing, or you'll be asked for the QuickTime plugin as well as having the sound play.



SP32-20080807-091913.gif
 Description:
 Filesize:  13.19 KB
 Viewed:  619 Time(s)

SP32-20080807-091913.gif



SP32-20080807-091933.gif
 Description:
 Filesize:  13.37 KB
 Viewed:  619 Time(s)

SP32-20080807-091933.gif


Back to top
N3NCY
Cacti User


Joined: 22 Sep 2005
Posts: 242
Location: Landenberg, PA

PostPosted: Mon Aug 11, 2008 5:23 pm    Post subject: Reply with quote

I am telling Steve Jobs that you are trying to avoid Apple's Quicktime!
You are sooo busted!

Oh, and what is FireFox?
That better be another name for Safari or I am telling Steve about that too!
Freakin' Amish...
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin General All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group