|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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! 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
wheeee!! thanks LK 
|
|
|
|
Joined: Feb 2001
Posts: 251
Member
|
Member
Joined: Feb 2001
Posts: 251 |
You the best LK 
|
|
|
|
Joined: Apr 2001
Posts: 214
Member
|
Member
Joined: Apr 2001
Posts: 214 |
Have it working at www.nakkc.org via SSI , working great so far...! thanks LK!
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
So far, Allen, Chris and Dave2 use iframe, Chuck uses javascript and raichu uses ssi... need more testers for JS...
|
|
|
|
Joined: Dec 2001
Posts: 699
Member
|
Member
Joined: Dec 2001
Posts: 699 |
Any differences between my version and this one?
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
quote: Originally posted by Dave2: Any differences between my version and this one? Where is your version?
|
|
|
|
Joined: Sep 2002
Posts: 9
Junior Member
|
Junior Member
Joined: Sep 2002
Posts: 9 |
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 
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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 
|
|
|
|
Joined: Apr 2001
Posts: 214
Member
|
Member
Joined: Apr 2001
Posts: 214 |
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
|
|
|
|
Joined: Sep 2002
Posts: 9
Junior Member
|
Junior Member
Joined: Sep 2002
Posts: 9 |
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
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
Yay, I've been looking forward to a final for this Thanks LK 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
how do I get rid of the horizontal scroll? 
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
hmm, it's not recognizing the limit of 10 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
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 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
It doesn't like the MD5 in 6.4 
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Fixed in my local copy, lemme know if you need it 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
yes please, we be broke now 
|
|
|
|
Joined: Mar 2002
Posts: 99
Member
|
Member
Joined: Mar 2002
Posts: 99 |
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?
|
|
|
|
Joined: Aug 2002
Posts: 65
Member
|
Member
Joined: Aug 2002
Posts: 65 |
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.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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..
|
|
|
|
Joined: Aug 2002
Posts: 65
Member
|
Member
Joined: Aug 2002
Posts: 65 |
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.
|
|
|
|
Joined: Dec 2000
Posts: 78
Member
|
Member
Joined: Dec 2000
Posts: 78 |
Hi guys, How do I change the time diplayed when posting a chat?
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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
|
|
|
|
Joined: Apr 2001
Posts: 96
Power User
|
Power User
Joined: Apr 2001
Posts: 96 |
EXCELLENT!!! THANK YOU!!BTW - you never included delshout.gif that I can see, so here it is: ![[Linked Image]](http://www.thegodfathertrilogy.net/ubb/delshout.gif)
|
|
|
|
Joined: Apr 2001
Posts: 96
Power User
|
Power User
Joined: Apr 2001
Posts: 96 |
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{{{
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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
|
|
|
|
Joined: Apr 2001
Posts: 96
Power User
|
Power User
Joined: Apr 2001
Posts: 96 |
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
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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 
|
|
|
|
Joined: Apr 2001
Posts: 96
Power User
|
Power User
Joined: Apr 2001
Posts: 96 |
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
|
|
|
|
Joined: Apr 2001
Posts: 96
Power User
|
Power User
Joined: Apr 2001
Posts: 96 |
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
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
I have never learnt how to deal with frames because I simply hate them 
|
|
|
|
Joined: Apr 2001
Posts: 96
Power User
|
Power User
Joined: Apr 2001
Posts: 96 |
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
|
|
|
|
Joined: Sep 2002
Posts: 9
Junior Member
|
Junior Member
Joined: Sep 2002
Posts: 9 |
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
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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? 
|
|
|
|
Joined: Sep 2002
Posts: 9
Junior Member
|
Junior Member
Joined: Sep 2002
Posts: 9 |
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
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
Never saw this released, nice work LK. May give this a test run now. 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
the very latest 6.4 beta is now telling me I have too many smilies if I have *any* in my 'shouts' 
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|