UBB.Dev
Posted By: LK [6.3.x] [beta] Shoutbox - 09/12/2002 10:52 PM
My second standalone "addon" smile

Name: UBB Shoutbox

Originally by: JustDave (for UBB.threads)

Description: This addon lets your users chat with each other, or leave a comment about your site, in a Shoutbox. It can be used in 3 different ways: iframe, ssi and javascript. Please refer to the script file for more information. NO FILES MODIFIED smile

Demo: https://ubbdev.com

Link: CGI File

Requirements: UBBâ„¢ 6.3.0 Beta Release 1.0

Thanks to the alpha testers - Allen, Chris, Dave2 and Chuck! smile
Posted By: AllenAyres Re: [6.3.x] [beta] Shoutbox - 09/12/2002 10:57 PM
wheeee!! laugh

thanks LK smile
Posted By: maurice Re: [6.3.x] [beta] Shoutbox - 09/12/2002 11:54 PM
You the best LK thumbsup
Posted By: Raichu Babai Re: [6.3.x] [beta] Shoutbox - 09/13/2002 10:34 PM
Have it working at www.nakkc.org via SSI , working great so far...! thanks LK!
Posted By: LK Re: [6.3.x] [beta] Shoutbox - 09/14/2002 12:04 AM
So far, Allen, Chris and Dave2 use iframe, Chuck uses javascript and raichu uses ssi... need more testers for JS...
Posted By: Dave2 Re: [6.3.x] [beta] Shoutbox - 09/14/2002 12:09 AM
Any differences between my version and this one?
Posted By: RandyM Re: [6.3.x] [beta] Shoutbox - 09/14/2002 2:17 AM
Quote
quote:
Originally posted by Dave2:
Any differences between my version and this one?
Where is your version?
Posted By: Custom4auto.com Re: [6.3.x] [beta] Shoutbox - 09/14/2002 4:18 AM
Hey LK,

I just installed it on my board, made it integrate with the summary layout. I love this mod, very cool, thanks.

Check it out, Ford Escort Online , still fine tuning it, but looks good so far.

Lemme know if it's ok to modify it like I did, don't wanna infringe any "copyrights" smile

Marc thumbsup
Posted By: LK Re: [6.3.x] [beta] Shoutbox - 09/14/2002 6:18 AM
Dave2, I don't think there is anything major, but you should use Beyond Compare.

Welcome auto smile I suggest you to use IFRAME if you have a problem with the size but want to show more messages. Then the users can scroll down the little iframe, and it won't affect the rest of the board. Check UBBDev's code @ www.ubbdev.com or Dave's code @ http://www.aagames.co.uk/cgi-bin/ultimatebb.cgi to see how you can use tag.

BTW, nice site smile
Posted By: Raichu Babai Re: [6.3.x] [beta] Shoutbox - 09/14/2002 6:39 AM
Im using ssi on the news site, and the JS version on the board to test...

Would be nice, like in the latest news, different post layouts. Like on the messageboard instead of the acron of the whole time stamp, to have an option to make it show on the wall.
Its a great utility to shout for my users to get online to raid, and a datestamp there would be great
Posted By: Custom4auto.com Re: [6.3.x] [beta] Shoutbox - 09/14/2002 2:55 PM
Thanks LK,

I am using iframe, and in the iframe I'm using frames to have the submit button always visible. I just had to set the target in the bottom frame.

The reason I don't want it to scroll is that the new messages will always be outside the box and I want to show the latest messages first, I know there's the option in the script to go in 2 directions but it always shows the old messages first then. So I decided to set the max to 5 messages, I would like to set it higher though.

Or did I miss something and can it show new first?

Thanks,

Marc
Posted By: CTM Re: [6.3.x] [beta] Shoutbox - 09/14/2002 3:20 PM
Yay, I've been looking forward to a final for this smile

Thanks LK laugh
Posted By: AllenAyres Re: [6.3.x] [beta] Shoutbox - 09/17/2002 5:49 AM
http://www.stand318.com/ubbcgi/ultimatebb.cgi

laugh
Posted By: AllenAyres Re: [6.3.x] [beta] Shoutbox - 09/17/2002 6:15 AM
how do I get rid of the horizontal scroll? smile
Posted By: LK Re: [6.3.x] [beta] Shoutbox - 09/17/2002 6:26 AM
Maybe use JavaScript instead of iframe, and limit number of shouts to 10 or so... Then it won't get too big, but won't show a scrollbar.
Posted By: AllenAyres Re: [6.3.x] [beta] Shoutbox - 09/17/2002 7:04 AM
hmm, it's not recognizing the limit of 10 tipsy
Posted By: AllenAyres Re: [6.3.x] [beta] Shoutbox - 09/17/2002 7:57 AM
the horizontal scroll bar was due to an extra-long name smile I have the shouts limited to 3 right now, no change in number shown tho smile
Posted By: AllenAyres Re: [6.3.x] [beta] Shoutbox - 09/19/2002 7:04 PM
It doesn't like the MD5 in 6.4 smile
Posted By: LK Re: [6.3.x] [beta] Shoutbox - 09/19/2002 7:16 PM
Fixed in my local copy, lemme know if you need it wink
Posted By: AllenAyres Re: [6.3.x] [beta] Shoutbox - 09/19/2002 7:32 PM
yes please, we be broke now smile
Posted By: gost95 Re: [6.3.x] [beta] Shoutbox - 09/26/2002 3:17 AM
ok...i added the javascript version to my header underneath my side menu and above my login form so that it would sit to the left of my board along with everything else. besides tweaking in the table i made for it, it looks good.

*the only problem is that when i did the first shout, (which was just a test shout), the page would not refresh. it started to but after loading my top banner, nothing else on the page would load. it would just sit there and act like it was loading still, but would do that for like 10 minutes straight so i just gave up.

what might cause this?
Posted By: Shriveled Toe Re: [6.3.x] [beta] Shoutbox - 09/26/2002 3:56 AM
I did some research and finally found out that the stylesheet has to be imbedded in the file you are calling if you are using Iframes, so I got my buttons to look right finally.

I'm just wondering how the UBBDev screen got the scrollbar to default to the bottom instead of the top.
Posted By: LK Re: [6.3.x] [beta] Shoutbox - 09/26/2002 7:16 AM
Toe, it should do that, I've no idea why one of the sites doesn't go to the bottom and all others do.

gost, maybe it's your host or proxy..
Posted By: Shriveled Toe Re: [6.3.x] [beta] Shoutbox - 09/26/2002 4:04 PM
Oh great. So once again it's just because I'm retarded. I hate that!

I did noticed that if I submit a shout, the screen refreshes and the scroll box is on the bottom. It's just the very first time someone goes in.
Posted By: Ed Re: [6.3.x] [beta] Shoutbox - 09/30/2002 11:33 PM
Hi guys,
How do I change the time diplayed when posting a chat?
Posted By: LK Re: [6.3.x] [beta] Shoutbox - 10/01/2002 6:05 AM
MembersPath/shoutbox.cgi.

For example:
Code
00000001||/me is testing /me||09-01-2002||03:12 AM||192.168.0.242
it's NUMBER||DATA||mm-dd-yyyy||hh:mm aa||ip
Posted By: jgeoff Re: [6.3.x] [beta] Shoutbox - 10/05/2002 10:52 PM
EXCELLENT!!! THANK YOU!!

BTW - you never included delshout.gif that I can see, so here it is: [Linked Image]
Posted By: jgeoff Re: [6.3.x] [beta] Shoutbox - 10/06/2002 3:57 AM
Hmm - can you think of an easy way to do this?

I'd like the posts to refresh automatically, but I want the text box and buttons in a separate frame so they don't auto refresh while someone is trying to type. Cuz it's a pain needing to hit "refresh" just to see if anyone's replied. This could easily be a mini live chatroom then!

Thanks again,

JG

P.S. You can see what I have so far at the site below... look for }}}Shoutbox{{{
Posted By: LK Re: [6.3.x] [beta] Shoutbox - 10/07/2002 5:45 AM
Copy the following to your frame:
Code
<form name="shout" action="http://www.thegodfathertrilogy.net/cgi-bin/ubb_shoutbox.cgi" method="post">
<input type="hidden" name="d" value="send" />
<input type="hidden" name="refer" value="http://www.thegodfathertrilogy.net/cgi-bin/ubb_shoutbox.cgi?s=iframe" />
<input type="text" name="message" size="25" maxlength="200" value="" onclick="if(this.value == '') { this.value = ''; }" onblur="if(this.value == '') { this.value = ''; }" />


<input type="submit" name="submit" value="Shout" onclick="if(document.shout.message.value == '') { alert('Type a message...'); return false; }" />
<input type="reset" name="reset" value="Reset" />
</form>
Then remove
from ubb_shoutbox.cgi, and add the refresh thing... smile
Posted By: jgeoff Re: [6.3.x] [beta] Shoutbox - 10/07/2002 6:59 PM
Thanks LK!

It's almost there - I have the top frame autorefreshing with the posts, and the bottom frame with the textbox and buttons - and submitting sends to the top frame.

However - after submitting, the textbox and buttons are replaced with the shouts as well. Take a look...

I am using FRAMESET frames, if that makes a difference... I'm not very familiar w/ iframes - did you mean for me to use them instead?

Basically, I need to submit w/o having the bottom frame overwritten with the form results.

THANKS again! smile

JG
Posted By: LK Re: [6.3.x] [beta] Shoutbox - 10/07/2002 8:14 PM
Good job, I like how it looks!!!

You can edit ubb_shoutbox.cgi: (TWICE)
Code
	print "Location: $in{refer}nn";
Replace $in{refer} with http://www.thegodfathertrilogy.net/shoutbox2.html smile
Posted By: jgeoff Re: [6.3.x] [beta] Shoutbox - 10/07/2002 8:39 PM
AWESOME!! I'm glad it was that simple!

THANK YOU so much, LK! Just gotta play w/ different refresh rates to get it ideal - thanks again! laugh

Now you have another hack - }}}ShoutChat{{{ laugh

JG
Posted By: jgeoff Re: [6.3.x] [beta] Shoutbox - 10/07/2002 9:16 PM
Okay, one last question laugh

Is there something I can add that'll make the main frame refresh upon hitting the submit button rather than waiting for the meta refresh to see your post?

Thanks again!

JG
Posted By: LK Re: [6.3.x] [beta] Shoutbox - 10/07/2002 9:25 PM
I have never learnt how to deal with frames because I simply hate them wink
Posted By: jgeoff Re: [6.3.x] [beta] Shoutbox - 10/07/2002 9:32 PM
I'm thinking more along the lines of a simple javascript (onSubmit) to add to the form tag... I'll try to find something (and brush up on my JavaScript laugh )

P.S. On another forum someone suggested
parent.content.location.reload(true) -- It's not perfect, but I'm getting closer! smash

As for frames - off topic, sorry - I think they're okay if done properly laugh

JG
Posted By: Custom4auto.com Re: [6.3.x] [beta] Shoutbox - 10/08/2002 10:05 PM
Hey Jgeoff,

I have already implemented sort of a minichat on my site as soon as LK posted the Shoutbox...haven't been on the board here for a couple of days, else you could just grab the code if you wanted to.

Check it out here : http://www.custom4auto.com/cgi-bin/EscortBoard/ultimatebb.cgi

Just click on Open Chat,

Marc
Posted By: LK Re: [6.3.x] [beta] Shoutbox - 10/08/2002 10:19 PM
4auto: (taken from popit.js)
Code
		'if(b==2){px=event.screenX-ofx-1;py=event.screenY-ofy-1;top.window.moveTo(px,py);}n'+
Why did you add it? confused I personally think it's annoying that when I click on "Version 1.0 beta" it moves the window, and I can't see any benefit? confused
Posted By: Custom4auto.com Re: [6.3.x] [beta] Shoutbox - 10/08/2002 10:28 PM
LK,

Is that still on there? smile I thought I removed the chromeless windows since it won't work properly in IE 6...Thanks for noticing, I'll fix that.

Marc
Posted By: Lord Dexter Re: [6.3.x] [beta] Shoutbox - 10/09/2002 8:58 AM
Never saw this released, nice work LK. May give this a test run now. smile
Posted By: AllenAyres Re: [6.3.x] [beta] Shoutbox - 11/14/2002 9:25 AM
the very latest 6.4 beta is now telling me I have too many smilies if I have *any* in my 'shouts' tipsy
Posted By: LK Re: [6.3.x] [beta] Shoutbox - 11/14/2002 7:58 PM
Dontcha worry, becha happy smile The 6.4 version will fix it, and if you get on ICQ I can also send it to you before it's out tipsy
Posted By: d-talk Re: [6.3.x] [beta] Shoutbox - 11/15/2002 7:58 PM
Hi all,

whow can I add smilies in the posts at the shoutbox...???

Thanks
d-talk
Posted By: LK Re: [6.3.x] [beta] Shoutbox - 11/15/2002 8:09 PM
: ), : (, : p, : D, ; ), : o... wink
Posted By: d-talk Re: [6.3.x] [beta] Shoutbox - 11/16/2002 5:39 AM
Thanks LK!!! laugh
Posted By: havoq Re: [6.3.x] [beta] Shoutbox - 11/21/2002 3:04 AM
LK: is there anyway to add a login button underneath the shout button or something, so that when registered users wanna shout, they dont actually have to goto the board, login, then go back to the homepage where the shoutbox is?

Is this feasible?
Posted By: Felix 10 Re: [6.3.x] [beta] Shoutbox - 11/25/2002 8:05 PM
LK
How do I get rid of the Delete box and ref?

thanks in advance
Posted By: LK Re: [6.3.x] [beta] Shoutbox - 11/25/2002 8:18 PM
ubb_shoutbox.cgi (of course), search for del.gif and remove its line.
Posted By: Felix 10 Re: [6.3.x] [beta] Shoutbox - 11/25/2002 9:36 PM
Thank you.
Posted By: Toop Re: [6.3.x] [beta] Shoutbox - 11/27/2002 1:50 AM
Is there a way to add the date or Day of the week that the post was made in the shoutbox?
Posted By: Felix 10 Re: [6.3.x] [beta] Shoutbox - 11/27/2002 4:03 AM
Quote
quote:
Originally posted by Toop:
Is there a way to add the date or Day of the week that the post was made in the shoutbox?
I'm no pro at this but see this:

quote:
[qb]Originally posted by LK:
MembersPath/shoutbox.cgi.

For example:
Quote
code:
Code
00000001&#0124;&#0124;/me is testing /me&#0124;&#0124;09-01-2002&#0124;&#0124;03:12 AM&#0124;&#0124;192.168.0.242
[/qb]
it's NUMBER||DATA||mm-dd-yyyy||hh:mm aa||ip
Posted By: Felix 10 Re: [6.3.x] [beta] Shoutbox - 11/27/2002 6:00 AM
LK
How do I reduce the Refresh rate, say 20-30 sec? Is it posible?

Thanks
Posted By: Toop Re: [6.3.x] [beta] Shoutbox - 12/02/2002 10:47 PM
that just shows me how to edit the shout cgi file.. But is there a way to edit the ubb_shouldbox.cgi file so that the date or day of the week displays with the post in the box next to the forum (you know in the browser)?

For example so it would look like this:

04:35 AM, Monday oh, and yeah, nice site.
Posted By: jgeoff Re: [6.3.x] [beta] Shoutbox - 12/03/2002 9:39 PM
Okay, I've gotten some questions about how I modified LK's Shoutbox (with his help) to create "Chatbox" at TheGodfatherTrilogy.Net

So, here you go: chatbox_howto.txt

It should be self-explanatory. I don't monitor these boards much, so hopefully you don't have any questions laugh

/jg
Posted By: CTM Re: [6.3.x] [beta] Shoutbox - 12/03/2002 9:57 PM
Now that's some nice editing of the Shoutbox, jgeoff, and very clear instructions... Nice work laugh
Posted By: Custom4auto.com Re: [6.3.x] [beta] Shoutbox - 12/05/2002 4:51 AM
I love this mod, but there's just one thing I'm missing for the way I have it on the site,...I would love to be able to see a list of users that are currently in the chat,...is it possible?

Check here: http://forums.fordescortonline.com

Thanks,

Marc
Posted By: d-talk Re: [6.3.x] [beta] Shoutbox - 12/05/2002 8:52 PM
I'll get the following error message, what can I do?

Software error:
Undefined subroutine &main::FileExists called at /home/www/web3/html/cgi-bin/ubb_shoutbox.cgi line 155.
For help, please send mail to the webmaster ([no address given]), giving this error message and the time and date of the error.

thanks
d-talk
Posted By: Dave2 Re: [6.3.x] [beta] Shoutbox - 12/05/2002 11:08 PM
Anyone know how to have the doctype but not the horizontal scrollbar in IE? smirk

/me damns IE
Posted By: d-talk Re: [6.3.x] [beta] Shoutbox - 12/08/2002 12:22 PM
Hi LK,

the shoutbox-hack did not work with 6.4.0 Public Beta 1 i get this error:

Undefined subroutine &main::md5_hex called at /home/www/web3/html/cgi-bin/ubb_lib.cgi line 376.
For help, please send mail to the webmaster ([no address given]), giving this error message and the time and date of the error.

Can you help me/us.....

thanks
d-talk
Posted By: LK Re: [6.3.x] [beta] Shoutbox - 12/08/2002 2:08 PM
http://mods.lkworld.com/ubb_shoutbox64.txt smile
Posted By: Felix 10 Re: [6.3.x] [beta] Shoutbox - 08/27/2003 7:07 PM
LK

I need your expertize, again, please.

for some reason I lost the ability of deleting lines in the shoutbox and this apllies to everybody, member or Admin.
Strange, because I didnt touch anythings in neither my Iframes or CGI file. Can you think of something?

Thanks in advance

Felix

EDITED

It is a cookies problem. anybody has this problem enable Accept "Third Party Cookies". this will do.
Posted By: Rainner Re: [6.3.x] [beta] Shoutbox - 12/11/2003 7:55 AM
HI,

I tried this and its awsome, thank you!

I'm calling it with the Java in a sidebar.
I do have a slight problem. When I go to delete a message by selecting the delete hot spot I get

Error: No forum selected

so I use my back button and go back. Then if I go out of the forum and come back in, the message was deleted.

I couldn't find anything in this forum about this error so I thought I would ask.

Also anyone have that delshout.gif? laugh

Thanks for any help

Rainner
Posted By: Felix 10 Re: [6.3.x] [beta] Shoutbox - 01/24/2004 7:34 AM
Rainner, you can use any pic insead of that delshout. I replaced it with a nicer garbage bin, but if really need the original, I think I have it somewhere, let me know.
Posted By: IguanaJoe Re: [6.3.x] [beta] Shoutbox - 10/05/2004 3:55 AM
Hey guys,

There are some really good hacks on this board but I am nervous about messing with my code/script. I am really interested in this shoutbox. How hard is it to install and how hard is it to remove if I don't like it?

Thanks
Posted By: Ian Spence Re: [6.3.x] [beta] Shoutbox - 10/05/2004 5:34 AM
INSTALL: upload file, chmod 755
UNINSTALL: delete file

the shoutbox is easily the easiest mod to install
Posted By: IguanaJoe Re: [6.3.x] [beta] Shoutbox - 10/05/2004 5:44 PM
Thanks Ian. But when you say upload file, do you mean upload the file to your ubb directory in the root web? Or the cgi directory?

Sorry for being such a newbie.
Posted By: Ian Spence Re: [6.3.x] [beta] Shoutbox - 10/05/2004 5:47 PM
the cgi directory, and it should be named ubb_shoutbox.cgi
© UBB.Developers