News:

SMF 2.0.19 has been released! Please update. Read more.

Main Menu

nneonneo's Shoutbox

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

Previous topic - Next topic

nneonneo

@JSizzal: No, it's not a priority for me at the moment (I feel it would clutter the interface unnecessarily). If you want it very badly, there's probably a nice way to copy the code from the post box.

@NFM: Unfortunately, that's a no. I haven't found an easy way to do that.
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!

brianjw

@nneonneo: Is there a way there doesn't have to be a home.history.txt file and there isn't extended history. I mean: When you use the command /clear I want it to clear everything including the overflow (aka History) ;)
How could your shoutbox do this?

Brianjw

nneonneo

Where the command handler is for /clear, have it also do something like unlink("$logDir/history.$chatFile"); and that will clear it up.

So, find case "/clear":
for($a=0;$a<$max_lines;$a+=1) truncateChat($chatFile,$logDir,0); // truncate $max_lines times, each approaching 0. This assumes that there aren't any shouts past $max_lines.

and add
unlink("$logDir/history.$chatFile");
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!

jawatkin

nneonneo - I'm wondering about server resources required to run this.  I put in smf_shoutbox into my forum last night (SMF 1.1.2, smf_shout 1.2.1) and it tripped out on me and brought my shared hosting service to its knees.  (I had the auto-refresh on) Took about 2 hours to fully recover once I'd removed the code, etc.  What would this package do with say 70-100 concurrent users or more?

1and1 is still trying to find the "root cause" but I suspect it was the shoutbox, along with the forum, and a good deal of SQL queries on my main site all at once... Check out the server log... Weird.. Put it up about midnight, but it started to really just take over around noon...?

jespereh

Is it possible to edit this shoutbox, so it is a Shoutbox in the right side of the Index-page. It has to look something like this:


If it is possible. A list of corrections would be appreciated.

nneonneo

@jawatkin: This shoutbox doesn't use MySQL, but it does use files for data storage. With 70-100 concurrent users, all using the shoutbox, with a refresh rate of 1.5 seconds (the default), that works out to 2400 requests per member per hour, or 168K - 240K requests per hour.
One thing to keep in mind is that the shoutbox will produce a blank page on unchanged refreshes, which will decrease bandwidth usage (if nobody posts, you'd use at most 1-3MB of bandwidth per hour). Also, if you use a PHP accelerator, the CPU usage is quite acceptable (though it depends on your host!). Without a PHP accelerator, I would *not* recommend this shout box as the 46 requests/sec would begin to lag quite bad.

So, in summary, with a higher delay between refreshes (yshout/js/yshout.js) and a PHP accelerator, it should not be a major problem.

@jespereh: Depends strongly on the theme. Some themes would be easier to modify, others more difficult. I am not an expert on modifying themes, though.
Also note that this shout box was designed to be laid out horizontally, and so far it looks rather terrible in a vertical narrowed space -- major modifications would be required to make it fully compatible and good-looking in a vertical manner.
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!

jawatkin

Yeah, I don't have a PHP accelerator on my host, but I plan on switching to a VPS shortly that will... Then your shoutbox will go up! Thanx!

jespereh

Quote from: nneonneo on April 14, 2007, 02:57:04 PM
@jespereh: Depends strongly on the theme. Some themes would be easier to modify, others more difficult. I am not an expert on modifying themes, though.
Also note that this shout box was designed to be laid out horizontally, and so far it looks rather terrible in a vertical narrowed space -- major modifications would be required to make it fully compatible and good-looking in a vertical manner.

Ok, sounds like alot of work :( I'll try a looking at different shoutboxes then.

greyknight17

nneonneo, I got the ShoutBox working on my forum now. Just have one quick question (maybe it was asked earlier already, but there's just too many pages for me to go over). Is there a way to make the shoutbox show up on all new pages opened in the forum? If I open up a topic in a new window, the shoutbox doesn't work on that new window, only the original window I have opened. I like to open up multiple topics in my Firefox tab and want all of them to have the shoutbox show up.

Thanks.

nneonneo

@greyknight: See the code if(get_cookie("yShout_open"))
{
$("yshout").innerHTML="Shoutbox loaded in another window. Retrying...";
setTimeout("loadChat()",Math.random()*1000+1000/*between 1 and 2 seconds*/);
return;
}
set_cookie("yShout_open","true",3/*seconds*/);
in yshout/js/yshout.js? Remove it.
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!

JSizzal

Haha I asked that same question anywayz

Im wonderning why your shoutbox comes out like this on the Cerberus theme:

I tried inserting a width code in the yshout part of the index.template

when i did that it made the shoutbox bigger but the fourm also increased width too..

Any chance you could help me!!


brianjw

Quote from: jespereh on April 14, 2007, 03:48:37 PM
Quote from: nneonneo on April 14, 2007, 02:57:04 PM
@jespereh: Depends strongly on the theme. Some themes would be easier to modify, others more difficult. I am not an expert on modifying themes, though.
Also note that this shout box was designed to be laid out horizontally, and so far it looks rather terrible in a vertical narrowed space -- major modifications would be required to make it fully compatible and good-looking in a vertical manner.

Ok, sounds like alot of work :( I'll try a looking at different shoutboxes then.
Actually its quite easy. The new way on integrating the shoutbox anywhere in any theme is simple. Just look on this topic somewhere or on the mod page for this. :)
http://www.brianjwilson.com has it integrated and it didn't take alot of work at all. :D

JSizzal

Can anyone help me with my problem!!

crazyASD

Hello all!! How about full integration with SMF? (Auto inserting username for registered users) Any ideas?

nneonneo

The username is already automatically inserted for registered users. Any further integration is not a priority for 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!

rEvOhSaLf

Hi everybody,

Sorry for my bad english
I just installed the shoutbox but a have some problems

=>

I add the line
loadTheme();
after
$user=ssi_welcome('nothing'); // ssi_welcome only does something IF the parameter is 'echo'; otherwise the user data is returned!
loadUserSettings();

but with no results...

I use Joomla 1.12 with SMF Bridge.
How can i pls solve my problem ?

JSizzal

nneonneo can u help me with my prob!!

crazyASD

Hmm... my SMF 1.1.1 version and 1.06 not still isert username...

nneonneo

@JSizzal: looks like you put the code in Cerberus wrong.
@rEvOhSaLf: Weird. Send me a link to your forum and a username/password (or I can sign up myself) and I will take a look!
@crazyASD: That's very strange, and probably wrong. Send me a link to your forum and a username/password I can use (like a test account).
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!

JSizzal


Advertisement: