News:

Wondering if this will always be free?  See why free is better.

Main Menu

nneonneo's Shoutbox

Started by nneonneo, December 26, 2006, 06:58:11 PM

Previous topic - Next topic

Musicmad

It gets stuck on "loading shoutbox" for me.

nneonneo

@ByeVas: You probably don't want to wrap the shouts div, since it rewritten on each refresh. Rather, you should consider wrapping the code in index.template.php (around the <div id="yshout"> part).

@Musicmad: see PM
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

ByeVas

nneonneo I am using a separate page. I have the code in my chat.php file the same way but it is still the same:
<div id="yshout"><div class="roundedcornr_box_278698">
   <div class="roundedcornr_top_278698"><div></div></div>
      <div class="roundedcornr_content_278698">
       Loading...<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></div><br>     
</div>
   <div class="roundedcornr_bottom_278698"><div></div></div>

nneonneo

Wrap your rounded corner stuff around the yshout div, so the innermost div is yshout (otherwise, again, the yshout div contents are replaced)
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

ByeVas

#1804
Got it! Thanx a lot!

Quote from: nneonneo on August 18, 2007, 11:56:39 AM
@Mongey: Find all instances of the number 125 and increase the value. It should occur twice as maxlength="125" and once in substr($shoutText,0,125).
@Spale: change $allowGuests in yshout.php to false.
@pongsak: in yshout/js/yshout.js, change function doRefresh() { to var oldShouts = null;
function doRefresh() {
if (oldShouts != null && oldShouts != $("shouts").innerHTML)
{
<PLAY SOUND>
}
oldShouts = $("shouts").innerHTML;

where "<PLAY SOUND>" is code for producing an audible sound; this varies widely from browser to browser. There are a number of sites on the Internet to find code to play sounds.
And the smileys menu looks nice -- I can't wait to find out how you did it :)

This one stopped the chat from loading, any idea?

nneonneo

Well, you need actual code in place of <PLAY SOUND>; see http://www.simplemachines.org/community/index.php?topic=137508.msg1208212#msg1208212 for a specific implementation.
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

ByeVas

#1806
Quote from: nneonneo on March 15, 2008, 02:03:59 PM
Well, you need actual code in place of <PLAY SOUND>; see http://www.simplemachines.org/community/index.php?topic=137508.msg1208212#msg1208212 for a specific implementation.

Yes I put that code:

var oldShouts = null;function doRefresh()
{if (oldShouts != null && oldShouts != $("shouts").innerHTML){if(get_cookie("shoutSound") == "true") {soundManager.setVolume('sound',200); } soundManager.play('sound')} oldShouts = $("shouts").innerHTML;


Uploaded the sound.mp3
and soundmanager2.js
and soundmanager.swf,
changed the js

nneonneo

And it still didn't work? That's a bit weird. Post your whole yshout.js file...
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

ByeVas

#1808
sory my mistake I messed up the brakets.
THANX A LOT!

Tabbee

hey guys, im having an issue with a former member who keeps signing on to the shout as a guest.. is thier anyway that I can turn that option off.. I would like to have the shout private like the rest of my forum. thnx

nneonneo

In yshout/yshout.php, change $allowGuests to false.
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

syndicate

hey nneonneo, if u remember me from today, www.aesl-gaming.com/forums, the shout box has disappeared?!?!?! ANd so has some topics/posts from today and previous days aswell :/

nneonneo

Looks like it's working to me...
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

syndicate

yer now its back :S i think the forums has split itself up somehow into two different forums :/ because some posts are missing, but are back the next day but then those are gone and others appear :(

Mystiquo

#1814
Quote from: nneonneo on August 19, 2007, 03:39:56 PM
Adding sound:
Get SoundManager2 (http://www.schillmania.com/projects/soundmanager2/)
Place soundmanager2.js in yshout/js
Place soundmanager2.swf in yshout/
Place the desired sound in yshout/ and change the URL below to match (MUST BE MP3!)

Place the following code after
<script src="',$boardurl,'/yshout/js/yshout.js?Jul222007" type="text/javascript"></script>
<script type="text/javascript">var shoutFile = "home.txt";</script>

in index.template.php:
<script src="',$boardurl,'/yshout/js/soundmanager2.js" type="text/javascript"></script>
<script type="text/javascript">soundManager.url="',$boardurl,'/yshout/soundmanager2.swf";
soundManager.debugMode = false;
soundManager.consoleOnly = false;
soundManager.onload = function() {
soundManager.createSound("sound", "', $boardurl, '/yshout/sound.mp3");
}</script>


Replace <PLAY SOUND> by soundManager.play('sound')

It should work (hasn't been tested as my server is being odd today)
Scuse me but i don't understand how sound go with yshout this:
doidoinstall soundmanager2 full?
and
Place the desired sound in yshout/ and change the URL below to match (MUST BE MP3!) ?????my sound.mp3 is yshout/
and
Replace <PLAY SOUND> by soundManager.play('sound')where do  i do this????
I don't listen any sound

Scuse me for my english but 'i'm italian, i will want too install a option muting sound
P.S. I have traslated in italian your shout box have you want it????
Thanks for all




EDIT: NOW PLAY

Mystiquo

#1815
Quote from: falconforce on January 16, 2008, 10:20:09 AM
in yshout.php, add this to anywhare are you need
if(!isset($_COOKIE['shoutSound'])) {
echo '&nbsp;<a href="javascript:delete_cookie(\'shoutSound\');set_cookie(\'shoutSound\',\'true\',3600*24);delete_cookie(\'yShout_open\');loadChat();">Use Sound</a>';
} else {
echo '&nbsp;<a href="javascript:delete_cookie(\'shoutSound\');delete_cookie(\'yShout_open\');loadChat();">No Sound</a>';
}


PS. I'm add that after...
case "init":
if($gzipCompression) ob_start("ob_gzhandler"); // GZip for everything BUT the 404 header
echo '<a href="javascript:goTo(\'file=',checkName($chatFile),'&amp;history\')">',$txt['yshout_history'],'</a>&nbsp;<a href="javascript:goTo(\'help\')">',$txt['yshout_commands'],'</a>';

this 2 where do i must add?


EDIT: now the button there is but it's don't stop sound why????

rebus

I just installed the shout box and seems to work fine, great job!
Just 2 questions (I'm sure this has been asked before, but the thread is just way too long, sorry!)

1) How to put a "Shout Box" title, just like in the demo site?

2) The "Shout!" button has no text (I use SMF default theme but not english language)

Thanks for the help and the great mod  :)

hotrod

Hi All! Is it possible to make the chat history open in new window, and the txt box up instead of down?

Thnx from Holland..  ;)

Check: http://www.hotrodpage.nl              and       http://www.coverplaza.nl

Mystiquo

#1818
Quote from: falconforce on January 16, 2008, 10:20:09 AM
I try modified own shout box, so it can turn off sound  ;)

after you modified mod with sound...

in yshout.js, after
if (oldShouts != null && oldShouts != $("shouts").innerHTML)
{


add
if(get_cookie("shoutSound") == "true")
{
soundManager.setVolume('sound',200); // my addition line, you can remove it
soundManager.play('sound');
}


and add this to first line of file
if (delete_cookie('shoutSound'))
{
set_cookie('shoutSound','true',3600*24);
}


in yshout.php, add this to anywhare are you need
if(!isset($_COOKIE['shoutSound'])) {
echo '&nbsp;<a href="javascript:delete_cookie(\'shoutSound\');set_cookie(\'shoutSound\',\'true\',3600*24);delete_cookie(\'yShout_open\');loadChat();">Use Sound</a>';
} else {
echo '&nbsp;<a href="javascript:delete_cookie(\'shoutSound\');delete_cookie(\'yShout_open\');loadChat();">No Sound</a>';
}


PS. I'm add that after...
case "init":
if($gzipCompression) ob_start("ob_gzhandler"); // GZip for everything BUT the 404 header
echo '<a href="javascript:goTo(\'file=',checkName($chatFile),'&amp;history\')">',$txt['yshout_history'],'</a>&nbsp;<a href="javascript:goTo(\'help\')">',$txt['yshout_commands'],'</a>';

this
and add this to first line of file
if (delete_cookie('shoutSound'))
{
set_cookie('shoutSound','true',3600*24);
}

Where can I put this? is it the problem?????????

The sound i hear,  but Why do i stop sound?

EDIT: Now i stop but for change from sound at no sound i do refresh page It's normal use???? it's right???

But you Think is  can  something put the volume bar also?

nneonneo

#1819
@Syndicate: Well, that doesn't sound like a shoutbox problem; I advise you contact your host right away...

@Mystiquo: I'm not sure if refreshing is normal for turning on and off sound, since I didn't write that code. However, if that's what is needed, I don't expect it's that big of a deal. Also, an Italian translation would be appreciated; you should attach Modifications.english.php.

@rebus: Copy Themes/default/languages/Modifications.english.php to Modifications.<yourlanguage>.php, and both problems should be fixed.

@hotrod: On reversing the order of chats:
http://www.simplemachines.org/community/index.php?topic=137508.msg1276450#msg1276450
As for making the history in a new window, in yshout/yshout.php, change
'<a href="javascript:goTo(\'file=',checkName($chatFile),'&amp;history\')">'
to
'<a href="javascript:window.open(yshout_php+\'?file=',checkName($chatFile),'&amp;history\');void(0);">'
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

Advertisement: