collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 309
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Blocks speak! Do you have an interest in getting more blocks - or even making your own? The Blocks Board is for you!

Author Topic: Audible alert sound in ShoutBox.  (Read 33186 times)

0 Members and 1 Guest are viewing this topic.

Offline N.E.Media

  • Semi Newbie
  • *
  • Posts: 21
  • Gender: Male
  • SMF Version: 1.1.10
  • SP Version: 2.3.1
Re: Audible alert sound in ShoutBox.
« Reply #20 on: November 10, 2009, 04:52:46 PM »
Contents of themes/default directory:


Offline N.E.Media

  • Semi Newbie
  • *
  • Posts: 21
  • Gender: Male
  • SMF Version: 1.1.10
  • SP Version: 2.3.1
Re: Audible alert sound in ShoutBox.
« Reply #21 on: November 10, 2009, 04:54:30 PM »
AHA!

Custom theme folder.

I'm an idiot at times.

Can't believe I didn't think of that with all the other modifications I've had to do that with.

Dan


Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Audible alert sound in ShoutBox.
« Reply #22 on: November 10, 2009, 04:57:50 PM »
So it works?

If you don't want to duplicate those files in your custom themes directory, then you could make the edit below.

Code: ("Find (/Themes/default/PortalShoutbox.template.php)") [Select]
   <script type="text/javascript" src="', $settings['theme_url'], '/soundmanager.js"></script>
    <script language="Javascript" type="text/javascript"><!-- // --><![CDATA[
        var last_refresh_', $shoutbox['id'], ' = document.getElementById("last_refresh_', $shoutbox['id'], '");
        soundManager.url = \'', $settings['theme_url'], '/swf/\';
        soundManager.onload = function()
        {
            soundManager.createSound(\'refresh_shoutbox\',\'', $settings['theme_url'], '/alert.mp3\');
        };';

Code: ("Replace") [Select]
   <script type="text/javascript" src="', $settings['default_theme_url'], '/soundmanager.js"></script>
    <script language="Javascript" type="text/javascript"><!-- // --><![CDATA[
        var last_refresh_', $shoutbox['id'], ' = document.getElementById("last_refresh_', $shoutbox['id'], '");
        soundManager.url = \'', $settings['default_theme_url'], '/swf/\';
        soundManager.onload = function()
        {
            soundManager.createSound(\'refresh_shoutbox\',\'', $settings['default_theme_url'], '/alert.mp3\');
        };';
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline N.E.Media

  • Semi Newbie
  • *
  • Posts: 21
  • Gender: Male
  • SMF Version: 1.1.10
  • SP Version: 2.3.1
Re: Audible alert sound in ShoutBox.
« Reply #23 on: November 10, 2009, 05:07:23 PM »
Perfect!!

Great new modification!

Thank you very much!

Dan


Offline N.E.Media

  • Semi Newbie
  • *
  • Posts: 21
  • Gender: Male
  • SMF Version: 1.1.10
  • SP Version: 2.3.1
Re: Audible alert sound in ShoutBox.
« Reply #24 on: November 10, 2009, 05:20:24 PM »
Uh oh!

Sound only can be heard by person sending the shout.

Passive recipients hear nothing - it's the recipients that need the alert.

Sorry!

Ideas?

Dan

« Last Edit: November 10, 2009, 05:26:15 PM by N.E.Media »

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Audible alert sound in ShoutBox.
« Reply #25 on: November 10, 2009, 05:28:57 PM »
The alert should sound whenever the shoutbox refreshes via javascript/Ajax and there is a new shout, ie. it will only sound if someone clicks the refresh button or you have the auto-refresh setting turned on and the shoutbox refreshes. If somebody reloads the entire page, it won't sound, although I suppose I could post some edits so that it worked like that as well.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline N.E.Media

  • Semi Newbie
  • *
  • Posts: 21
  • Gender: Male
  • SMF Version: 1.1.10
  • SP Version: 2.3.1
Re: Audible alert sound in ShoutBox.
« Reply #26 on: November 10, 2009, 05:48:51 PM »
The Ajax shoutbox makes an instant alert when a new shout comes in, in real time without waiting for next refresh.

Any way to do that?

Thanks!

Dan


Offline ginjack

  • Just Registered
  • Posts: 1
  • SMF Version: 2 RC1.2
  • SP Version: 2.2.2
Re: Audible alert sound in ShoutBox.
« Reply #27 on: November 14, 2009, 12:31:19 AM »
would there be a way to make this code work for SMF 2.0 RC2 also?


Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Audible alert sound in ShoutBox.
« Reply #28 on: November 14, 2009, 12:34:08 AM »
would there be a way to make this code work for SMF 2.0 RC2 also?

See homer09001's post, it should already work fine with SMF 2 RC2.

The Ajax shoutbox makes an instant alert when a new shout comes in, in real time without waiting for next refresh.

Any way to do that?

Thanks!

Dan



That would be far more complicated. The shutbox does not currently have a method of sending data from the server to the client without the clients browser request it. The best way of getting a similar effect would be to have the shoutbox set to auto-refresh.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline N.E.Media

  • Semi Newbie
  • *
  • Posts: 21
  • Gender: Male
  • SMF Version: 1.1.10
  • SP Version: 2.3.1
Re: Audible alert sound in ShoutBox.
« Reply #29 on: November 14, 2009, 05:14:57 PM »
Thank you!

I actually figured that was the case.

Still not working as-is though.

Everything's in the right place - still no alert tone on incoming.

Thanks!

Dan


Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Audible alert sound in ShoutBox.
« Reply #30 on: November 14, 2009, 05:34:18 PM »
Can you post a link to your website? I want to have a look at the issue. A temp regular member account would be useful as well.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline N.E.Media

  • Semi Newbie
  • *
  • Posts: 21
  • Gender: Male
  • SMF Version: 1.1.10
  • SP Version: 2.3.1
Re: Audible alert sound in ShoutBox.
« Reply #31 on: November 14, 2009, 05:58:02 PM »
Can you post a link to your website? I want to have a look at the issue. A temp regular member account would be useful as well.


http://www.banjoholler.com/forum/index.php

User:  Tester1

Password:  12345abc


Thanks!

Dan


Offline tfs

  • Jr. Member
  • **
  • Posts: 64
Re: Audible alert sound in ShoutBox.
« Reply #32 on: December 09, 2009, 12:40:05 AM »
Has anyone ever packaged this one up?  I'm hesitant to make the edits by hand because I don't want to break update scripts when a new SP comes out.

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Audible alert sound in ShoutBox.
« Reply #33 on: December 09, 2009, 10:47:30 PM »
Has anyone ever packaged this one up?  I'm hesitant to make the edits by hand because I don't want to break update scripts when a new SP comes out.

It doesn't look like it, I will package it when I find the time, although its not too high on my current priorities list. If anyone else wants to package it first, then go for it.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline tfs

  • Jr. Member
  • **
  • Posts: 64
Re: Audible alert sound in ShoutBox.
« Reply #34 on: December 11, 2009, 12:04:05 AM »
It doesn't look like it, I will package it when I find the time, although its not too high on my current priorities list. If anyone else wants to package it first, then go for it.

Thanks Nathaniel.  I'm looking forward to being able to give it a try.  An audible beep is the thing I miss the most about AJAX Chat.

Offline sattninja

  • Semi Newbie
  • *
  • Posts: 27
  • SMF Version: 1.1.10
  • SP Version: 2.3.1
Re: Audible alert sound in ShoutBox.
« Reply #35 on: December 13, 2009, 03:39:43 PM »
hello i have sound working however like in previous posts it will only make a sound after i type something on my end basicle if i type i hear it then the person on the other end types i heasr nothing and see nothing they typed then if i type something else then it will show what they types i have refresh set to 0 which i believe is auto and i have tried changing that to like 1 second and then what happens is i typr something and here a series of sounds i love this mod but it just doesnt seem to work for me properly i am sorry is i didnt explain it well but please help me figure this out also at times if i close my browser and then reopen it and go to the shoutbox and type nothing shows up until i log out and log back in that may be related it just seems like i have a refresh issue

Offline underfire

  • Newbie
  • Posts: 2
  • SMF Version: 1.1.10
  • SP Version: 2.3.1
Re: Audible alert sound in ShoutBox.
« Reply #36 on: December 26, 2010, 07:53:20 AM »
i don't have the "'/Themes/default/portal.js'" file :S

wiecher

  • Guest
Re: Audible alert sound in ShoutBox.
« Reply #37 on: April 10, 2011, 05:50:05 PM »
I hope it can be done.

Offline kimyaci

  • Full Member
  • ***
  • Posts: 127
  • Gender: Male
    • Forumigo8navigation
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Re: Audible alert sound in ShoutBox.
« Reply #38 on: April 24, 2011, 11:21:49 AM »
I wish it work with a button.Thanks.
SMF 2.0.7 HabboArtv1, Default Themes.

Offline beast

  • Semi Newbie
  • *
  • Posts: 21
  • Gender: Male
  • So What
    • stumpburner
  • SMF Version: 2 RC5
Re: Audible alert sound in ShoutBox.
« Reply #39 on: December 30, 2011, 04:55:54 PM »


  I wish a know nothing guy like me could do all this. I would crash my site in a heart beat. Is there something a guy like me could use to have the sound on the shout box or how much would someone charge me to do this

 :D ;D
Don't have one, Don't want one, Not gona get one