|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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]
|
|
|
|
Joined: Oct 2000
Posts: 2,667
Veteran
|
Veteran
Joined: Oct 2000
Posts: 2,667 |
thanks 
Do you believe in love at first sight, or should I walk by again?
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
thanks LK 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
LK, just one small fix. "Shoud added" 
|
|
|
|
Joined: Aug 2003
Posts: 71
Member
|
Member
Joined: Aug 2003
Posts: 71 |
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  ?
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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)
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Oh, and about the moderator thing, that's very easy: set "$allowmods" to "0" 
|
|
|
|
Joined: Aug 2003
Posts: 71
Member
|
Member
Joined: Aug 2003
Posts: 71 |
aha, i`ll try them and let you know 
|
|
|
|
Joined: Aug 2003
Posts: 71
Member
|
Member
Joined: Aug 2003
Posts: 71 |
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 
|
|
|
|
Joined: Mar 2002
Posts: 17
Newbie
|
Newbie
Joined: Mar 2002
Posts: 17 |
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?
MK
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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>
|
|
|
|
Joined: Mar 2002
Posts: 17
Newbie
|
Newbie
Joined: Mar 2002
Posts: 17 |
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.
MK
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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
|
|
|
|
Joined: Mar 2002
Posts: 17
Newbie
|
Newbie
Joined: Mar 2002
Posts: 17 |
I don't have it set up anymore.
MK
|
|
|
|
Joined: Aug 2000
Posts: 14
Junior Member
|
Junior Member
Joined: Aug 2000
Posts: 14 |
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
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
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.
Sue adwoff.com
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
$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.
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
Oops! I guess it'd help if I looked at the guts of the code, eh? Thanks, Ian. 
Sue adwoff.com
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
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). 
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
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...
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
all the settings are in the file itself.
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
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.
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Width settings? That's on the iframe tag itself
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Use an IFRAME, an include is telling it to reload the page (the page being the one shoutbox links to)
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
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?
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
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...
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Nov 2001
Posts: 70
Member
|
Member
Joined: Nov 2001
Posts: 70 |
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
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
|
|
|
|
Joined: Jul 2004
Posts: 1
Junior Member
|
Junior Member
Joined: Jul 2004
Posts: 1 |
does this work with css to???
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
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.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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.
|
|
|
|
Joined: Jul 2004
Posts: 132 Likes: 1
Journeyman
|
Journeyman
Joined: Jul 2004
Posts: 132 Likes: 1 |
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...... 
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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:".
|
|
|
|
Joined: Jul 2004
Posts: 132 Likes: 1
Journeyman
|
Journeyman
Joined: Jul 2004
Posts: 132 Likes: 1 |
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.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
I believe it's called shoutbox.cgi in the Members directory
|
|
|
|
Joined: Jul 2004
Posts: 132 Likes: 1
Journeyman
|
Journeyman
Joined: Jul 2004
Posts: 132 Likes: 1 |
Ah yes, that's it. Cheers Ian 
|
|
|
|
Joined: Jul 2004
Posts: 132 Likes: 1
Journeyman
|
Journeyman
Joined: Jul 2004
Posts: 132 Likes: 1 |
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.
|
|
|
|
Joined: Jul 2004
Posts: 132 Likes: 1
Journeyman
|
Journeyman
Joined: Jul 2004
Posts: 132 Likes: 1 |
('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.
???
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
|
|
|
|
Joined: Jul 2004
Posts: 132 Likes: 1
Journeyman
|
Journeyman
Joined: Jul 2004
Posts: 132 Likes: 1 |
|
|
|
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
|
|
|
|