Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
#201889 12/27/2003 8:30 AM
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
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 smile

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" smile
To use, simply rename to "ubb_shoutbox.cgi", upload to your UBB CGI folder and CHMOD correctly. Should immediately work smile

Number of Downloads: [img]https://www.ubbdev.com/lk/num.php?s=ubb_shoutbox67.txt[/img]

Sponsored Links
#201890 12/27/2003 10:00 AM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
thanks smile


Do you believe in love at first sight,
or should I walk by again?
#201891 12/27/2003 1:49 PM
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 thumbsup


- Allen wavey
- What Drives You?
#201892 01/16/2004 6:41 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
LK, just one small fix. "Shoud added" smile

#201893 01/20/2004 8:58 AM
Joined: Aug 2003
Posts: 71
Member
Member
Offline
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 wink ?

Sponsored Links
#201894 01/20/2004 9:44 AM
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
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:
Code
sub StandardHTML {
add above: (untseted)
Code
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)

#201895 01/20/2004 9:45 AM
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Oh, and about the moderator thing, that's very easy: set "$allowmods" to "0" tipsy

#201896 01/20/2004 10:06 AM
Joined: Aug 2003
Posts: 71
Member
Member
Offline
Joined: Aug 2003
Posts: 71
aha, i`ll try them and let you know wink

#201897 01/20/2004 1:19 PM
Joined: Aug 2003
Posts: 71
Member
Member
Offline
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 shocked

#201898 02/07/2004 7:43 PM
Joined: Mar 2002
Posts: 17
Newbie
Newbie
Offline
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
Sponsored Links
#201899 02/08/2004 2:21 AM
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Mrs.B, I missed your post...
Try:
Code
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
Code
<iframe src="http://..."></iframe>

#201900 02/08/2004 12:49 PM
Joined: Mar 2002
Posts: 17
Newbie
Newbie
Offline
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
#201901 02/08/2004 12:56 PM
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
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

#201902 02/08/2004 1:35 PM
Joined: Mar 2002
Posts: 17
Newbie
Newbie
Offline
Joined: Mar 2002
Posts: 17
I don't have it set up anymore.


MK
#201903 02/10/2004 8:04 PM
Joined: Aug 2000
Posts: 14
Junior Member
Junior Member
Offline
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

#201904 03/23/2004 10:33 PM
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
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
#201905 03/23/2004 10:44 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Code
$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.

#201906 03/23/2004 11:54 PM
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
Oops! I guess it'd help if I looked at the guts of the code, eh? Thanks, Ian. smile


Sue
adwoff.com
#201907 04/26/2004 12:49 AM
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
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).
smash

#201908 05/24/2004 7:32 AM
Joined: Jan 2003
Posts: 118
Member
Member
Offline
Joined: Jan 2003
Posts: 118
I think my Shoutbox may be broken... frown

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? smile

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"
#201909 05/24/2004 8:06 AM
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.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#201910 05/24/2004 8:08 AM
Joined: Jan 2003
Posts: 118
Member
Member
Offline
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"
#201911 05/24/2004 8:14 AM
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Width settings? That's on the iframe tag itself

#201912 05/24/2004 8:20 AM
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)


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#201913 05/24/2004 11:10 AM
Joined: Nov 2001
Posts: 1,704
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
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?

#201914 05/24/2004 7:16 PM
Joined: Jan 2003
Posts: 118
Member
Member
Offline
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? smile

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"
#201915 05/29/2004 2:59 PM
Joined: Nov 2001
Posts: 70
Member
Member
Offline
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

#201916 05/29/2004 3:03 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2

#201917 07/09/2004 9:22 PM
Joined: Jul 2004
Posts: 1
Junior Member
Junior Member
Offline
Joined: Jul 2004
Posts: 1
does this work with css to???

#201918 07/09/2004 9:54 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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.

#201919 07/10/2004 5:06 AM
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
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.

#201920 07/19/2004 10:42 AM
Joined: Jul 2004
Posts: 132
Likes: 1
Journeyman
Journeyman
Offline
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...... frown help

#201921 07/19/2004 10:47 AM
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
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 smile

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:".

#201922 07/19/2004 3:02 PM
Joined: Jul 2004
Posts: 132
Likes: 1
Journeyman
Journeyman
Offline
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.

#201923 07/19/2004 3:09 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
I believe it's called shoutbox.cgi in the Members directory

#201924 07/19/2004 3:14 PM
Joined: Jul 2004
Posts: 132
Likes: 1
Journeyman
Journeyman
Offline
Joined: Jul 2004
Posts: 132
Likes: 1
Ah yes, that's it.
Cheers Ian smile

#201925 07/20/2004 9:38 AM
Joined: Jul 2004
Posts: 132
Likes: 1
Journeyman
Journeyman
Offline
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.

#201926 07/26/2004 8:00 AM
Joined: Jul 2004
Posts: 132
Likes: 1
Journeyman
Journeyman
Offline
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.

???

#201927 07/26/2004 8:03 AM
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
You got UBB 6.7?

#201928 07/26/2004 10:50 AM
Joined: Jul 2004
Posts: 132
Likes: 1
Journeyman
Journeyman
Offline
Joined: Jul 2004
Posts: 132
Likes: 1
Hi LKK
Yes I have 6.7.1

Page 1 of 2 1 2

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)