Modification Name: Shoutbox
Author(s): LK
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 Requirements: UBB.classic 6.7.0 Beta Release 1.0 Download Link: https://www.ubbdev.com/lk/download/ubb_shoutbox67.txt Credits: JustDave, Allen, Chris, Dave2, Chuck
Instructions / Other Info: My second standalone "addon"
To use, simply rename to "ubb_shoutbox.cgi", upload to your UBB CGI folder and CHMOD correctly. Should immediately work
Number of Downloads: [img]
https://www.ubbdev.com/lk/num.php?s=ubb_shoutbox67.txt[/img]
thanks
thanks LK
LK, just one small fix. "Shoud added"
LK, is there an option to prevent the members from adding notes - in case they got the URL of the shout box (mine is hidden in a private forum)?
by the way, any moderator can delete any note, so what shall we do to cut their hands from doing this
?
Do you mean you want to have a shoutbox for only some users? nice idea.. try to set "$viewunreg" to 0, then find:
add above: (untseted)
if ($user_number ne '00000001' && $user_number ne '00000002' && .....) { &StandardHTML("how did you get in... anyway get out!"); }
then replace 00000001 with the first member that you want to have access to the shoutbox's membernumber, replace 00000002 with the second number of the member you wish to have access to the shoutbox's membernumber, and instead of ...... add $user_number ne 'XXXXXXXX' for each other member (make sure they're separated by "&&" if you add more than one)
Oh, and about the moderator thing, that's very easy: set "$allowmods" to "0"
aha, i`ll try them and let you know
LK, Don't you think it would be easier if there is an option to let only moderators?
rather than adding their numbers like what you just gave me?
i can't imagine my self changing the numbers all the time once i have a new moderator
A little problem here with a shout box.
I have been trying to put the shout box in the left sidebar of my forum. I created a table for the left sidebar about 8 cells tall. The top 4 cells have links to other pages on my site. The fifth cell has a content island displaying "newest members" in HTML-JS format. In the sixth cell I put the shout box. When I add the shout box (using the frame script) the content island for newest member disappears. If I remove the shout box the content island is back. I figure I have to be doing something wrong. What do you think?
Mrs.B, I missed your post...
Try:
my @profile = &OpenProfile($user_number);
if ($profile ne 'Moderator' && $profile ne 'Administrator') { &StandardHTML("get out"); }
Valkyrie.. I have no idea, are you sure you're also closing the iframe?
notice that it has to be
<iframe src="http://..."></iframe>
Yes I am sure because the shout box appears but the content island does not. I have try it about 8 times on my board and test board.
I need a URL to the page where you see this problem... If it's a registered users-only UBB I need a test login/password
I don't have it set up anymore.
Hello, I just recently upgraded to 6.6 and I just put on the shoutbox. Awesome!!! However, and sorry if I missed it somewhere else but everyone is shown as 'unregistered' I am logged in and it says that I'm logged in at the top. Has anyone ever heard of this before. Also, is there a faster auto refresh?
thank you
I kinda like/see the value of the shoutbox, but I'm not so sure I want to allow "unregistered" people to "shout." Is there an easy way to make it so that only registered users can play with it?
Thanks.
$unregpost = 1; # allow unregistered users to post? (0 = no, 1 = yes)
$viewunreg = 1; # allow unregistered users to view? (0 = no, 1 = yes)
first is to shout, second it to even see the contents.
Oops! I guess it'd help if I looked at the guts of the code, eh? Thanks, Ian.
Instead of using vars_misc.cgi is there a way in which I can set the character string limit independently? Currently, while URLs are fine whenever someone posts long text without breaks inside the Shoutbox it causes a horizontal scrollbar (I'm using iframe).
I think my Shoutbox may be broken...
When I submit a shout, it doesn't take me back to the main page. It just sits there as if I went to ubb_shoutbox.cgi by itself except its framed in the UBB style. I'm sure it's gotta be something easy for some, but for me, I'm clueless... Help please?
Also if anyone can direct me to where the width settings are as well as how I can set a number of messages before I get that fancy scroll bar like ubbdev has I would be most appreciative! Thanks in advance...
all the settings are in the file itself.
Right I looked through the file and I didn't see any place where it says "width", and I see the place to set how many messages before old one's get overwritten, maybe I just haven't put in enough messages yet...
However, any ideas on the bigger issue of it not taking me back to the forum home when a shout is posted? Test it out for yourself... Unregistered users are allowed to shout.
Width settings? That's on the iframe tag itself
Use an IFRAME, an include is telling it to reload the page (the page being the one shoutbox links to)
And are you sure it's not working because you're using the iframe version of the shoutbox for a JS include on the page, right?
OK... Pardon my ignorance on this stuff, I have no idea what I'm doing. I just follow directions and sometimes I don't even do that well. I wasn't sure how to use the iframe stuff, so rather than break it, I stuck with what I knew.
So I fixed how I was calling it, which was via Jscript, and now I am using the iframe as suggested. This is great as it gives me everything I was asking for. Now I just have one more question...
When I called it from Jscript, it just loaded the shoutbox and nothing else. Now, by calling it via iframe, it also loads the header. How can I get my header out of my footer?
Also if anyone has any idea how to center the menu and shoutbox I would again be most appreciative...
LK, I have board version 6.6.1 - which shoutbox version should I install and where do I get it if not this one?
Thanks
does this work with css to???
no it doesn't. those of us who use css have had to modify it ourselves. I'd give you mine, but I've edited it too much.
It's very simple to modify it to work with CSS... Do a search for "$vars_style", every time you found it it means there is something unCSS'd. But you have to know what to replace everything to.
Where is the text (file?) for this wicked mod stored?
Been looking through the code and even grep'd for phrases - but I can't find it....
I'm.. just... not.... very..... clever......
You mean the instructions to modify the UBB code? (if you mean the ubb_shoutbox.cgi file, it's on
http://mods.lkworld.com/ubb_shoutbox67.txt )
The thing which makes this mod wicked is that you don't have to modify anything, just plug'n'play
In the beginning of the ubb_shoutbox file, you'll see instructions in how to add it to a site, right after "You can call it the following ways:".
Hi LK thanks for the answer.
I'm sorry that I didn't make myself very clear.
I actually meant the 'shouts' themselves.
Cheers,
d.
I believe it's called shoutbox.cgi in the Members directory
Ah yes, that's it.
Cheers Ian
Hi
I've had some feedback that my page (using shoutbox) is causing 'debug' problems.
So far, that's all I know (I've asked for more info - but not yet received responses).
However, I've noticed using Internet Explorer (v 6.0) that when the page finishes loading, I get...
DONE - but with errors on page.
Double clicking on this alert gives multiple reports of
'tfrm' is undefined.
Anyone experienced this previously?
Thanks for any feedback.
d.
('tfrm' is undefined.)
Nobody encountered this previously?
I know that removing the iframe that calls the shoutbox, removes the problem, so it has to be ubb_shoutbox.
???
I visited your "homepage" yahoo.com and couldn't find any shoutbox
Can you give me the URL of your site?
Ho ho ho
Link on its way.
Thanks.
a test account would be nice also, as your shoutbox requires us to be logged in
Replied
You got a nice site btw
Hi again,
Unregistered users now allowed.
Damn mouse batteries failed in the middle of this post.....
thanks again guys
H.
odd, please post the contents of your vars_time.cgi file
Hi Ian, here it is...
%vars_time = (
TimeZone => q~GMT~,
TimeZoneOffset => q~0~,
DateFormat => "EuroX",
TimeFormat => "AMPM"
);
1;
Thanks again,
d.
Fixed, I just had to submit the Date & Time settings..
Just a question, why do you use AMPM on GMT/EuroX? I thought that AMPM is only used in the USA...
Originally posted by LK:
Fixed, I just had to submit the Date & Time settings..
Just a question, why do you use AMPM on GMT/EuroX? I thought that AMPM is only used in the USA...
haha, AMPM isn't even used in the entire US
Perhaps I'm not understanding this properly...?
I was under the impression that the am/pm settings were simply a choice of how the time was displayed?
Either way, I owe you one
PM on its way....
Thanks to all.
d.
Heres a question:
Is there a way to output the shoutbox to another file called shoutbox_archive. This way you can trace back to a month if you wanted to see a shout, or even a few weeks if need be.
Im sure it would have to do with this section:
if ($#file > $shouts - 1) {
my $i = 0;
foreach($#file - ($shouts-1)..$#file) {
$file[$i] = $file[$_];
$i++;
}
$#file = $shouts - 1;
}
&WriteFileAsArray("$vars_config{MembersPath}/shoutbox.cgi", @file);
Nice idea...
Try that:
First create a copy of shoutbox.cgi as shoutbox_archive.cgi in your Members folder. Make sure its CHMOD is 777.
Then after the code you posted, add:
&AppendFileAsString("$vars_config{MembersPath}/shoutbox_archive.cgi", "n$file[$#file]");
Untested, but should work.
Oh it works, flawlessly!
Thanks LK, this will come in handy for me
I will probably get flamed for asking this newbie question but what is:
# Upload to cgi, chmod 755 and use!
I realize I need to rename the file and upload it. But upload it where? Just to the ubb/cgi folder?
Thanks.
You ever think of writing a book LK? You da man!
Forgot to ask. I love the shoutbox on the main page. I want that style. Is that in a frame? How do I get my board to do frames?
Thanks again.
Joe,
You won't get flamed as long as you hate the Spurs
Upload the file to your cgi-bin folder, the one with ultimatebb.cgi and cp.cgi.
Then if your host is on UNIX chmod the file to 755 (if you don't know how to do that, google "chmod").
About the second question, what do you mean? If you mean the ubbdev.com style, it is indeed an iframe. ubb_shoutbox.cgi has the directions on how to use it as an iframe.
I just added it, but it doesn't appear. What am I doing wrong this time Ian?
http://hogwartsbynight.com/ubb/ultimatebb.php I guess my question is, how do you insert the script to appear on the left of your board as such --->
As in, I am horrible at knowing where to put the iframe so it will appear on the left side.
Ah..ok I worked on the sidebar all day and I got that working and how I want it in my test forum, but now its saying that the cgi file I uploaded. and moded to 755 can not be found.
Hello!
Here's one for you.
I have the shoutbox running as an Iframe.
Put in a few style tags to the ubb_shoutbox.cgi file which work fine.
However, I am trying to add a gradient background, it gives strange results.
In the 'body_extra' area I added both the style and body style tags.
Both times, it does create a gradient but it is a blue gradient (which I don't want) regardless of what I change the color to.
For the time being I just set a background color.
The webpage is:
http://www.technicalblog.org/tech/ultimatebb.cgi The code I added for the gradient looks like this:
'body_extra' => 'body style="filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr='#555555', startColorstr='#444444', gradientType='0');"' # body tag extra code - IFRAME ONLY
Any ideas???
Thanks in advance.
Oh, BTW, Version 6.7.2
Try:
'body_extra' => qq~ style="filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr='#555555', startColorstr='#444444', gradientType='0');"~ # body tag extra code - IFRAME ONLY
That did it!
Thanks, you are the code breaker, awesome.
I suppose that type of cide could be applied to the Forum Summary .pl pages as well?
Thanks again!