News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

nneonneo's Shoutbox

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

Previous topic - Next topic

OrangeStar

Quote from: nneonneo on January 07, 2007, 09:43:22 PM
@OrangeStar: Did it say "Test Failed" on any installation/uninstallation? I highly doubt that SMF's package manager would insert the code twice unless there is some sort of bug in the PM or my mod install file.
yeah it did but I ignored it and still installed it, I don't know what file it was thought

nneonneo

Probably index.template.php. If it fails, that means that it could not remove the code fragment, so you will have to restore that file from backup.

If you want to change the refresh rate, see yshout/js/yshout.js. Change the "1" in "var floodTime = 1;" to any other desired time, in seconds. Be warned that very high values will make the shoutbox hard to use for users (something like 1-5 is recommended, and anything over 10 seconds might be too high; though this is all up to the administrator anyway).

BTW: The shoutbox sends almost no data when inactive; most of the bandwidth drain will come from the requests to the server (since there is a lot of cookie data and stuff in the request headers).
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!

Zwerko

hi again!

If any1 can spare some time to login to my forum and see whay smilyes don't showup. Tnx

login: tester pass: tester

In attch. is my history, in link to smiley are two // and between should be classic  :(

buhaychat.com

I got it working on my 1.1.1 custom theme but I'm not too fond of the location of the shoutbox.

Great mod though! :)

nneonneo

Quote from: Zwerko on January 08, 2007, 11:21:09 AM
hi again!

If any1 can spare some time to login to my forum and see whay smilyes don't showup. Tnx

login: tester pass: tester

In attch. is my history, in link to smiley are two // and between should be classic  :(


Check for any error messages; there might be a problem accessing the parser. I personally do not know what might cause this.
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!

Zwerko

all clear, nothing related to shoutbox :(  I have tried completely erase/delete then fresh reinstall but no progress.. Can I send u any file to see if something in code is wrong? tnx

bigmohi

why this mod show the members ip?

brianjw

Suggestions for future version
-Delete single posts from shoutbox itself with command or just a link like ban
I will edit this message and add more when i think of more. :D

nneonneo

@brianjw: Delete link already in 0.5
@bigmohi: Fixed in 0.5 (IP visible only to admins now)
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!

Greengoat

Nice mod.  I have turned the refresh rate down to 10, or up as it may.  Now the board seems to jump between 150 and high 600 bytes.  This is nothing to anyone on anything faster than dial-up.  But people on dial-up every little bit counts.  It's still worth it, believe me.  I really like the mod.  I was just wondering what would/could happen if you go beyond the 10 second mark?  And if I have it set to refresh every 10 seconds why is it a constant flow of data?  Just wondering.

belaferon

how i can added this shoutbox in Dilber Multicolor theme?

pariofdreamz

Its A nice one but can u pls tell me how can i use it with Dilber MC Theme by HarzeM :( PLSSSSSS:((

I want to add it on http://forums.parilok.org

:( :( :( :( :( :(


Nothing is IMPOSSIBLE in this world as IMPOSSIBLE itself says I M POSSIBLE

belaferon

#152
Quote from: pariofdreamz on January 09, 2007, 07:14:40 AM
Its A nice one but can u pls tell me how can i use it with Dilber MC Theme by HarzeM :( PLSSSSSS:((

I want to add it on hxxp:forums.parilok.org [nonactive]

:( :( :( :( :( :(
Quote from: belaferon on January 09, 2007, 06:26:30 AM
how i can added this shoutbox in Dilber Multicolor theme?

Use this code in index.template.php

// YSHOUT HERE
if($context['user']['is_logged'])
echo '
<script src="yshout/js/prototype.js" type="text/javascript"></script>
<script src="yshout/js/moo.ajax.js" type="text/javascript"></script>
<script src="yshout/js/behaviour.js" type="text/javascript"></script>
<script src="yshout/js/domFunction.js" type="text/javascript"></script>
<script type="text/javascript">

var myfunc = new domFunction(function()
{
',empty($options['collapse_header']) ? 'loadChat();':'','
}, { "yshout":"id"});

</script>
<script src="yshout/js/yshout.js?Oct112006" type="text/javascript"></script>
<script type="text/javascript">var shoutFile = "home.txt";</script>
<style type="text/css">
#yshout {
font-size: 10px;
}
#yshout p {
margin: 0 0 0; /* Top Bottom Linespacing */
}
.shout-invalid {
background: #FFFDD1;
}
#yshout fieldset {
border: none;
}
#yshout em {
font-style: normal;
}
#yshout p {
line-height: 1;
margin-top: 0;
}
#yshout {
overflow: hidden;
}
#yshout .shout-timestamp {
font-weight: normal;
color: #000;
}
#forum-name, #shout-text, #shout-button {
font-size: 9px;
margin: 0;
padding: 0;
}
#yshout #forum-name {
color: #666666;
width: 70px;
margin-right: 5px;
}
#yshout #shout-text {
color: #000000;
width: 310px;
margin-right: 5px;
}
#yshout #shout-button {
width: 55px;
}
#shouts .owner a {
color: #F00;
}
#shouts .moderator a {
color: #00F;
}
</style>';
// YSHOUT END




// YSHOUT HERE
document.getElementById("yshout").style.display = mode ? "none" : "";
if(!mode)
{
loadChat();
}
// YSHOUT END


and


// YSHOUT HERE
echo '
<br /><b>Shout Box</b><br /><br />
<div id="yshout"', empty($options['collapse_header']) ? '>' : ' style="display: none;">','...loading shoutbox...<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></div>';
// YSHOUT END


Zwerko

I found cause of my problem (smilies don't show up) - one of my admins has manually(over FTP) deleted file home.txt , and after this unthinking move box is no longer the same....
2 nneonneo : If this scenario help you to solve this "bug" it will be charm  ;D

maxprofit

I tried the above code but I still can not make it work with Dilber MC Theme by HarzeM . Switching out of Dilber to SMF default theme works well.

As most, I like Dilber MC Theme best.

:(

Cokeman

I just added this mod, love it so far. It's the only one that I got to work so thats a huge plus. Now if i could do 1 thing.

Is it possible to make it were it has a scrollong window? Instead of stretching the user area
or
Is it possible to move it to a location directly above the boards with a scrolling window?

i like the first idea best if thats possible. If I could have the window show the last 4 lines.

nneonneo

@Cokeman: If you want last 4 lines, edit yshout/yshout.php and change $max_lines=12 to some other value ($max_lines=4).

For scrollbars, add this code to index.template.php before "#yshout":
#yshout #shouts {
overflow: auto;
height: 100px;
}

Height parameter can be anything you want (in pixels; px must follow). You can also add width, if you so desire, etc. etc.

@Greengoat: Well, I don't quite know why the constant stream of bandwidth occurs, but you could try changing yshout.js?Oct112006 to something like "yshout.js?Jan092007" which causes the page to be recached. Some browsers, like Opera, cache extensively, causing them to fail to see new changes. AFAIK, setting a refresh rate higher than 10 seconds would cause a lack of interactivity, which is something that I see frequently on my boards (e.g. using the SB as a quick and simple form of instant messaging, for example to ask quick questions to all available board members).

@Zwerko: So, is the smileys thing fixed? I looked at my code, and can find no reason for said problem. Check the forum error logs and PM/email any errors you see: some may not appear to be SB related, but they just might be. I suspect some kind of array index error, since PHP assumes default empty strings "" in cases of invalid indices.

@<Dilber MC users>: Follow the steps at http://www.simplemachines.org/community/index.php?topic=137508.msg878923#msg878923. I have checked the latest Dilber MC release and verified that this should work.
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!

Greengoat

Quote from: nneonneo on January 09, 2007, 09:08:47 PM
@Greengoat: Well, I don't quite know why the constant stream of bandwidth occurs, but you could try changing yshout.js?Oct112006 to something like "yshout.js?Jan092007" which causes the page to be recached. Some browsers, like Opera, cache extensively, causing them to fail to see new changes. AFAIK, setting a refresh rate higher than 10 seconds would cause a lack of interactivity, which is something that I see frequently on my boards (e.g. using the SB as a quick and simple form of instant messaging, for example to ask quick questions to all available board members).

First off, thanks for your patience with us all and taking the time to address each problem.

I now see what you are talking about with not going over 10 seconds.  It has nothing to do with a software incompatibility.  See, our board isn't very busy and we seldom get into quick discussions in the shout box.  We use it more for an open ended conversation about little things.  Seldom do we find the conversation going back and forth.  Out of 180 members only 50 are active daily and of those about 20 post on a daily basis.  So it doesn't matter if the SB isn't refreshing at an instant messenger level.

BTW I run Firefox 2.0 and if I understand it the cache should be almost empty since I just installed it the other day.

Thanks for the mod and the help.  :)

nneonneo

If there's still a constant flow of data to the server, it could possibly indicate multiple asynchronous requests to the server from the client. If the browser is constantly requesting the page, as opposed to simply waiting 10 seconds between requests, then either my Javascript is wrong or Firefox has already cached the page.
If the client is making constant requests, try clearing the cache (Tools->Clear Private Data->Uncheck everything except Cache->Clear Private Data Now). Reload the page and see if that helps.
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!

Zwerko

2 nneonneo: I will leave it for now, whitout smiley, thanks for trying
I have problem with chmod, I can change to 777(or any other) nothing in yshout directory. I have try editing history.home.txt but I can't upload it back to server :(

Advertisement: