Author Topic: Adding a shoutbox?  (Read 7685 times)

0 Members and 1 Guest are viewing this topic.

Alex

  • Guest
Adding a shoutbox?
« on: June 20, 2011, 12:05:33 am »
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?
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 38019
  • Country: au
    • EEVblog
Re: Adding a shoutbox?
« Reply #1 on: June 21, 2011, 12:14:05 am »
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.
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 38019
  • Country: au
    • EEVblog
Re: Adding a shoutbox?
« Reply #2 on: June 21, 2011, 12:34:07 am »
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.
 

Alex

  • Guest
Re: Adding a shoutbox?
« Reply #3 on: June 21, 2011, 12:56:24 am »
Cheeers!
 

Offline Joshua

  • Regular Contributor
  • *
  • Posts: 194
  • Country: us
Re: Adding a shoutbox?
« Reply #4 on: June 21, 2011, 04:29:22 am »
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.
 

Offline insurgent

  • Regular Contributor
  • *
  • Posts: 78
Re: Adding a shoutbox?
« Reply #5 on: June 21, 2011, 05:11:10 am »
Everyone should just lurk on IRC then we wouldn't need a lame shoutbox on the web page ;)
 

Offline ndictu

  • Regular Contributor
  • *
  • Posts: 211
  • Country: sk
Re: Adding a shoutbox?
« Reply #6 on: June 21, 2011, 10:48:23 am »
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.

It 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.
 

Offline FreeThinker

  • Frequent Contributor
  • **
  • Posts: 791
  • Country: england
  • Truth through Thought
Re: Adding a shoutbox?
« Reply #7 on: June 21, 2011, 11:45:16 am »
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..... REVIEW BEFORE you send. ;D There is no delete function.
Machines were mice and Men were lions once upon a time, but now that it's the opposite it's twice upon a time.
MOONDOG
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 38019
  • Country: au
    • EEVblog
Re: Adding a shoutbox?
« Reply #8 on: June 21, 2011, 12:22:52 pm »
I can delete chat posts  ;D
But 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.
 

Offline ndictu

  • Regular Contributor
  • *
  • Posts: 211
  • Country: sk
Re: Adding a shoutbox?
« Reply #9 on: June 21, 2011, 12:25:06 pm »
I can delete chat posts  ;D
But 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.

BTW, 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.
 

Offline Frangible

  • Regular Contributor
  • *
  • Posts: 109
  • Country: us
  • Contraptioneer
Re: Adding a shoutbox?
« Reply #10 on: June 21, 2011, 03:25:24 pm »
Everyone should just lurk on IRC then we wouldn't need a lame shoutbox on the web page ;)
Lots 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.
 

Offline FreeThinker

  • Frequent Contributor
  • **
  • Posts: 791
  • Country: england
  • Truth through Thought
Re: Adding a shoutbox?
« Reply #11 on: June 21, 2011, 04:34:09 pm »
I can delete chat posts  ;D
But 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.
Oh 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.
Machines were mice and Men were lions once upon a time, but now that it's the opposite it's twice upon a time.
MOONDOG
 

Offline ndictu

  • Regular Contributor
  • *
  • Posts: 211
  • Country: sk
Re: Adding a shoutbox?
« Reply #12 on: June 22, 2011, 01:50:13 pm »
BTW, 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.

So, 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: [Select]
$mess[] = array($NChatInfo['time'], $username, $subject);to:
Code: [Select]
$mess[] = array(time(), $username, $subject);
Next, to format it in viewing users timezone, in .../Nchat/NChatHandle.php, line 44, change:
Code: [Select]
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][0].'</span>]'.$mess[$i][1].': '.NChatParser($mess[$i][2]).'<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][0].'</span>]'.$mess[$i][1].': '.NChatParser($mess[$i][2]).'<br />';
}
}
to:
Code: [Select]
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][0], false).'</span>]'.$mess[$i][1].': '.NChatParser($mess[$i][2]).'<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][0], false).'</span>]'.$mess[$i][1].': '.NChatParser($mess[$i][2]).'<br />';
}
}
 

Offline ndictu

  • Regular Contributor
  • *
  • Posts: 211
  • Country: sk
Re: Adding a shoutbox?
« Reply #13 on: June 27, 2011, 05:39:50 pm »
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.
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 38019
  • Country: au
    • EEVblog
Re: Adding a shoutbox?
« Reply #14 on: June 28, 2011, 12:07:55 pm »
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.

Done.

Dave.
 

Offline FreeThinker

  • Frequent Contributor
  • **
  • Posts: 791
  • Country: england
  • Truth through Thought
Re: Adding a shoutbox?
« Reply #15 on: June 28, 2011, 07:50:24 pm »
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.  :)
Machines were mice and Men were lions once upon a time, but now that it's the opposite it's twice upon a time.
MOONDOG
 

Offline martysdomain

  • Contributor
  • Posts: 10
Re: Adding a shoutbox?
« Reply #16 on: June 28, 2011, 07:51:36 pm »
Everyone should just lurk on IRC then we wouldn't need a lame shoutbox on the web page ;)
Lots 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.

An 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.
 

Offline baljemmett

  • Supporter
  • ****
  • Posts: 665
  • Country: gb
Re: Adding a shoutbox?
« Reply #17 on: June 29, 2011, 12:00:52 am »
An IRC channel wouldn't be a bad idea at all.

Indeed -- although the channel we have on Afternet is a little quiet at times ;)
 

Offline martysdomain

  • Contributor
  • Posts: 10
Re: Adding a shoutbox?
« Reply #18 on: August 08, 2011, 04:24:09 pm »
An IRC channel wouldn't be a bad idea at all.

Indeed -- although the channel we have on Afternet is a little quiet at times ;)

Well done sir! Was that always there or just recently added?
 

Offline baljemmett

  • Supporter
  • ****
  • Posts: 665
  • Country: gb
Re: Adding a shoutbox?
« Reply #19 on: August 08, 2011, 07:30:26 pm »
Indeed -- although the channel we have on Afternet is a little quiet at times ;)

Well done sir! Was that always there or just recently added?

It's been there a few months -- since about March or thereabouts, I think.
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 38019
  • Country: au
    • EEVblog
Re: Adding a shoutbox?
« Reply #20 on: August 09, 2011, 02:47:40 am »
An IRC channel wouldn't be a bad idea at all.

Indeed -- although the channel we have on Afternet is a little quiet at times ;)

Yeah, I'm just not keen on IRC at all. Or chat rooms in general usually!

Dave.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf