My second standalone "addon"
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
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!
wheeee!! thanks LK
You the best LK
Have it working at
www.nakkc.org via SSI , working great so far...! thanks LK!
So far, Allen, Chris and Dave2 use iframe, Chuck uses javascript and raichu uses ssi... need more testers for JS...
Any differences between my version and this one?
quote:
Originally posted by Dave2:
Any differences between my version and this one?
Where is your version?
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"
Marc
Dave2, I don't think there is anything major, but you should use Beyond Compare.
Welcome auto
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
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
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
Yay, I've been looking forward to a final for this
Thanks LK
how do I get rid of the horizontal scroll?
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.
hmm, it's not recognizing the limit of 10
the horizontal scroll bar was due to an extra-long name
I have the shouts limited to 3 right now, no change in number shown tho
It doesn't like the MD5 in 6.4
Fixed in my local copy, lemme know if you need it
yes please, we be broke now
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?
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.
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..
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.
Hi guys,
How do I change the time diplayed when posting a chat?
MembersPath/shoutbox.cgi.
For example:
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
EXCELLENT!!! THANK YOU!!BTW - you never included delshout.gif that I can see, so here it is:
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{{{
Copy the following to your frame:
<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
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!
JG
Good job, I like how it looks!!!
You can edit ubb_shoutbox.cgi: (TWICE)
print "Location: $in{refer}nn";
Replace $in{refer} with
http://www.thegodfathertrilogy.net/shoutbox2.html
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!
Now you have another hack - }}}ShoutChat{{{
JG
Okay, one
last question
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
I have never learnt how to deal with frames because I simply hate them
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
)
P.S. On another forum someone suggested
parent.content.location.reload(true) -- It's not perfect, but I'm getting closer!
As for frames - off topic, sorry - I think they're okay if done
properly JG
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
4auto: (taken from popit.js)
'if(b==2){px=event.screenX-ofx-1;py=event.screenY-ofy-1;top.window.moveTo(px,py);}n'+
Why did you add it?
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?
LK,
Is that still on there?
I thought I removed the chromeless windows since it won't work properly in IE 6...Thanks for noticing, I'll fix that.
Marc
Never saw this released, nice work LK. May give this a test run now.
the very latest 6.4 beta is now telling me I have too many smilies if I have *any* in my 'shouts'
Dontcha worry, becha happy
The 6.4 version will fix it, and if you get on ICQ I can also send it to you before it's out
Hi all,
whow can I add smilies in the posts at the shoutbox...???
Thanks
d-talk
: ), : (, : p, : D, ; ), : o...
Thanks LK!!!
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?
LK
How do I get rid of the Delete box and ref?
thanks in advance
ubb_shoutbox.cgi (of course), search for del.gif and remove its line.
Is there a way to add the date or Day of the week that the post was made in the shoutbox?
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:code:
00000001||/me is testing /me||09-01-2002||03:12 AM||192.168.0.242
[/qb]
it's NUMBER||DATA||mm-dd-yyyy||hh:mm aa||ip
LK
How do I reduce the Refresh rate, say 20-30 sec? Is it posible?
Thanks
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.
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
/jg
Now that's some nice editing of the Shoutbox, jgeoff, and very clear instructions... Nice work
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
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
Anyone know how to have the doctype but not the horizontal scrollbar in IE?
/me damns IE
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
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.
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?
Thanks for any help
Rainner
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.
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
INSTALL: upload file, chmod 755
UNINSTALL: delete file
the shoutbox is easily the easiest mod to install
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.
the cgi directory, and it should be named ubb_shoutbox.cgi