Adding a shoutbox? - Page 1
Forum section: electronics / general

author: Unknown
author_rank: Unknown
timestamp: June 20, 2011, 12:05:33 am
content: Not quite a blog suggestion, but how about adding (if technically possible) a 'shoutbox' to the forum? It will be an excellent stress relief for Dildbert.It could go on the bottom of the front page of the forum, say having 3 rants/shoutouts visible and a a scrollbar for a total of 10 or so. This way it will not clog up the page. Of course, only registered users can post, to limit spam.What do you think?

author: EEVblog
author_rank: Unknown
timestamp: June 21, 2011, 12:14:05 am
content: I already tried one, but ti didn't work.There is another Ajax Chat one that seems popular, but like many other add-on's not updated for the public 2.0 release yet.And SMF won't let you install add-on's without them being verified as working for your version.Dave.

author: EEVblog
author_rank: Unknown
timestamp: June 21, 2011, 12:34:07 am
content: Done.Got a Shoutbox/Chat window working.It only shows up on the main index page. I think I can change that if needed to show up at all times, but I figure people might find that annoying.Dave.

author: Unknown
author_rank: Unknown
timestamp: June 21, 2011, 12:56:24 am
content: Cheeers!

author: Joshua
author_rank: Regular Contributor
timestamp: June 21, 2011, 04:29:22 am
content: Is there a way to have it on the right or left pane always. Or even the bottom. Maybe even a little popout frame or something. That way one can see it while bouncing around the forum.

author: insurgent
author_rank: Regular Contributor
timestamp: June 21, 2011, 05:11:10 am
content: Everyone should just lurk on IRC then we wouldn't need a lame shoutbox on the web page

author: ndictu
author_rank: Regular Contributor
timestamp: June 21, 2011, 10:48:23 am
content: Quote from: Joshua on June 21, 2011, 04:29:22 amIt would be best to set this in profile, not on a global basis because I would like it just on the index page as it is now, having it on every single one would be annoying.

author: FreeThinker
author_rank: Frequent Contributor
timestamp: June 21, 2011, 11:45:16 am
content: Thanks Dave.I find these shout boxes can be really useful if you have a problem in say software an people can bounce ideas around which you can try in real time etc. But be aware that you can get into a real flame war very quickly so..... REVIEWBEFOREyou send.There is no delete function.

author: EEVblog
author_rank: Unknown
timestamp: June 21, 2011, 12:22:52 pm
content: I can delete chat postsBut they scroll off into oblivion after 50 posts anyway.I like the new chat window. It works well and doesn't take up any database resources.Dave.

author: ndictu
author_rank: Regular Contributor
timestamp: June 21, 2011, 12:25:06 pm
content: Quote from: EEVblog on June 21, 2011, 12:22:52 pmBTW, is there a way to set the shoutbox time to my local time? I have the timezone offset and custom datetime format set for the forum but it doesn't apply there.

author: Frangible
author_rank: Regular Contributor
timestamp: June 21, 2011, 03:25:24 pm
content: Quote from: insurgent on June 21, 2011, 05:11:10 amLots of places have IRC ports turned off because of their use to control botnets. Then you end up having to use a lame HTTP proxy any way.

author: FreeThinker
author_rank: Frequent Contributor
timestamp: June 21, 2011, 04:34:09 pm
content: Quote from: EEVblog on June 21, 2011, 12:22:52 pmOh I see. On other shout boxes I've used it scrolls off into an archive which you can review all comments for say the last 24 hrs or longer. This allows people to catch up on old comments, but as a shout box is much more spontaneous this is probably not a vital requirement.

author: ndictu
author_rank: Regular Contributor
timestamp: June 22, 2011, 01:50:13 pm
content: Quote from: ndictu on June 21, 2011, 12:25:06 pmSo, I downloaded the shoutbox mod and it's doing the time all wrong. It saves the users local, offset and formated time and then everyone's messages are using different format and timezone. There is a simple fix to this, if you have some time Dave could you please do it?First, to save the timestamp not the formated string, in .../NChat/NChatHandle.php, line 84, change:Code:$mess[] = array($NChatInfo['time'], $username, $subject);to:Code:$mess[] = array(time(), $username, $subject);Next, to format it in viewing users timezone, in .../Nchat/NChatHandle.php, line 44, change:Code:if($NChat['order'] == 1){for($i=(count($mess)-1);$i>=0;$i--){echo (($NChatInfo['can_mod']) ? '[<a href="javascript: NChat_ajax(\'NChat=clean&&NChat_mess='.$i.'\');">X</a>]' : '') .'[<span style="color:#666686;font-size:80%;">'.$mess[$i].'</span>]'.$mess[$i].': '.NChatParser($mess[$i]).'<br />';}}else{for($i=0;$i<=(count($mess)-1);$i++){echo (($NChatInfo['can_mod']) ? '[<a href="javascript: NChat_ajax(\'NChat=clean&&NChat_mess='.$i.'\');">X</a>]' : '') .'[<span style="color:#666686;font-size:80%;">'.$mess[$i].'</span>]'.$mess[$i].': '.NChatParser($mess[$i]).'<br />';}}to:Code:if($NChat['order'] == 1){for($i=(count($mess)-1);$i>=0;$i--){echo (($NChatInfo['can_mod']) ? '[<a href="javascript: NChat_ajax(\'NChat=clean&&NChat_mess='.$i.'\');">X</a>]' : '') .'[<span style="color:#666686;font-size:80%;">'.timeformat($mess[$i], false).'</span>]'.$mess[$i].': '.NChatParser($mess[$i]).'<br />';}}else{for($i=0;$i<=(count($mess)-1);$i++){echo (($NChatInfo['can_mod']) ? '[<a href="javascript: NChat_ajax(\'NChat=clean&&NChat_mess='.$i.'\');">X</a>]' : '') .'[<span style="color:#666686;font-size:80%;">'.timeformat($mess[$i], false).'</span>]'.$mess[$i].': '.NChatParser($mess[$i]).'<br />';}}

author: ndictu
author_rank: Regular Contributor
timestamp: June 27, 2011, 05:39:50 pm
content: Dave, could you please turn the auto-link feature on? Since the shoutbox auto-refreshes every few seconds it's very annoying to select and copy the links from there.

author: EEVblog
author_rank: Unknown
timestamp: June 28, 2011, 12:07:55 pm
content: Quote from: ndictu on June 27, 2011, 05:39:50 pmDone.Dave.

author: FreeThinker
author_rank: Frequent Contributor
timestamp: June 28, 2011, 07:50:24 pm
content: Dave is it possible for the shoutbox to add new comments at the bottom instead of the top? Would make reading multi line shouts a lot easier.

author: martysdomain
author_rank: Contributor
timestamp: June 28, 2011, 07:51:36 pm
content: Quote from: Frangible on June 21, 2011, 03:25:24 pmAn IRC channel wouldn't be a bad idea at all. The benefits outweigh the downsides. It wouldn't have to be hosted on the EEV blog server. Check into Mibbit, perhaps they have something we could use here for live chat. I am certainly not a huge fan of the shoutbox, there are things that work better, like IRC.

author: baljemmett
author_rank: Unknown
timestamp: June 29, 2011, 12:00:52 am
content: Quote from: martysdomain on June 28, 2011, 07:51:36 pmIndeed -- althoughthe channel we have on Afternetis a little quiet at times

author: martysdomain
author_rank: Contributor
timestamp: August 08, 2011, 04:24:09 pm
content: Quote from: baljemmett on June 29, 2011, 12:00:52 amWell done sir! Was that always there or just recently added?

author: baljemmett
author_rank: Unknown
timestamp: August 08, 2011, 07:30:26 pm
content: Quote from: martysdomain on August 08, 2011, 04:24:09 pmIt's been there a few months -- since about March or thereabouts, I think.

author: EEVblog
author_rank: Unknown
timestamp: August 09, 2011, 02:47:40 am
content: Quote from: baljemmett on June 29, 2011, 12:00:52 amYeah, I'm just not keen on IRC at all. Or chat rooms in general usually!Dave.