Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 MOD: Shout Box V2.0 (Updated 17th May 2006)
 New Topic  Reply to Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 5

rasure
Junior Member

289 Posts

Posted - 15 May 2006 :  18:59:24  Show Profile  Visit rasure's Homepage  Reply with Quote
First of all I am not the original author or the brains behind
this mod, I have just re-written it to be more easy to install and
more compatible with the latest version of snitz.


The original authors topic is Here


This has been tested on a clean install of Snitz Forum Version 3.4.05
with access database. The instructions included in the zip file are
based on a clean install, although it should be easy enough to
install on an already moded forum.

Shout Box Mod Files
dbs_shoutbox.asp
inc_shoutbox.asp
shoutbox_entries.asp
shoutboxok1.gif

Files To Be Modified
admin_config_features.asp
config.asp
default.asp

You can download the Shout Box V2.0 Mod Here

You can see a demo Here

You`ll need to log in to use the shoutbox...

Username: Test
Password: testuser


Mod Updated: 16th May 2006

*Increased text limit to 200 characters.
*Now includes a character counter.
*Text input and submit button only visible when logged into the forum.

If you have already installed this mod all you need to do is
simply upload and replace inc_shoutbox.asp



Mod Updated: 17th May 2006

*Format Text Buttons Added
*Fixed Some HTML Code

If you have already installed this mod all you need to do is
simply upload and replace inc_shoutbox.asp
<

Psychic & Spiritual Development Resources

Edited by - rasure on 25 May 2006 18:24:10

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 15 May 2006 :  19:30:54  Show Profile  Visit MarkJH's Homepage  Reply with Quote
Looking very good. Does it produce a log file? Would be handy for admins.

Also, I notice it cuts the end off of long sentences. Is that deliberate?<

Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
Go to Top of Page

rasure
Junior Member

289 Posts

Posted - 15 May 2006 :  19:45:33  Show Profile  Visit rasure's Homepage  Reply with Quote
Well as the original mod, it can be altered to to allow as many characters as you want within reason I think, but its currently set at 100 characters, its determined by the limit of the text box characters.

To change simply open inc_shoutbox.asp and find
name=""Message"" maxLength=""100""

and replace the part in red to how many characters you want to allow.

I think a log file would be handy for busier forums.<

Psychic & Spiritual Development Resources
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 15 May 2006 :  22:39:18  Show Profile  Visit Etymon's Homepage  Reply with Quote
Rasure ... Nice job!

In the Links Manager MOD there is a script for counting the number of characters you are typing. Would you mind adding that to your MOD? This will help people figure just about when they have to end their shout!

One more thing, I tried to post a shout while not logged in, and it wouldn't go, which is fine if only members can shout. Would you mind hiding the entry form to be visible to members only (If shouting is only allowed for members that is.)?

Otherwise, thank you for helping us out with this one. Very nice!

Cheers,

Etymon
<

Edited by - Etymon on 15 May 2006 22:41:38
Go to Top of Page

rasure
Junior Member

289 Posts

Posted - 16 May 2006 :  08:20:21  Show Profile  Visit rasure's Homepage  Reply with Quote
Just to remind people though I didn't author the original mod, I've just re- written it for ease of use and compatibility with snitz and cut down on the use of files and called it version2. The basic functionality as it stands as a Shout Box still lies with the original author, I just don't want to take credit for something that's not originally my work.

Yes I could add the character counter if people want it and I wasn't sure whether people wanted the Shout Box to show only if members are logged in? because as it stands stand it shows whether you are logged in or not but wont actually work until you log in. I suppose I could add a message stating that you need to logged in to use it or like you suggested hide the input box if not logged in<

Psychic & Spiritual Development Resources

Edited by - rasure on 16 May 2006 08:21:19
Go to Top of Page

JBaldwin
Junior Member

USA
137 Posts

Posted - 16 May 2006 :  15:57:05  Show Profile  Reply with Quote
I needed to make a few adjustments to the code (inc_shoutbox.asp) near the end of the file. It seems some extra </tr></table> tags were in there that were screwing up the whole layout of the forum. Once I deleted them, moved the </form> tag to the appropriate spot; all seems ok now. Nice addition to the forum. Works as a good replacement for that Alert Messenger Mod that I couldnt get working....I'm using it as an announcements mod for my forum, I adjusted the M_LEV level so that only Admin and Moderators can post an announcement, and I also adjusted the Auto-Refresh rates so that it doesnt "click click click click click click click click click click click click" every 30 seconds...man that was annoying. Much better (for my needs anyway) now. Thanks SO MUCH for doing this. It has been what I was looking for! GRACIAS!<

AbsolutelyFreerolls.com - Poker Freeroll Listings, Poker Forum and Poker News


Go to Top of Page

rasure
Junior Member

289 Posts

Posted - 16 May 2006 :  16:27:15  Show Profile  Visit rasure's Homepage  Reply with Quote
Yep I just notice the table tags etc were out of place, I have fixed it I think now.

The only problem I'm having with at the moment is the character count no resetting when a user sends text using the enter key, rather than using the OK button.

Thinking of also adding a few basic format options for the text.<

Psychic & Spiritual Development Resources
Go to Top of Page

JBaldwin
Junior Member

USA
137 Posts

Posted - 16 May 2006 :  17:25:06  Show Profile  Reply with Quote
how can we stop the auto-refresh from happening? I'm not really using it as a shout box and I'm really the only one that will be posting in it. There for, I won;t need it auto-refreshing at all. How can I stop this from happening?<

AbsolutelyFreerolls.com - Poker Freeroll Listings, Poker Forum and Poker News


Go to Top of Page

rasure
Junior Member

289 Posts

Posted - 16 May 2006 :  17:59:43  Show Profile  Visit rasure's Homepage  Reply with Quote
To stop the refresh open shoutbox_entries.asp

Find and replace this code...
"</script>" & vbNewline & _
               "<meta http-equiv=""Refresh"" content=""60; URL=shoutbox_entries.asp"">"

With this code...
"</script>"
<

Psychic & Spiritual Development Resources

Edited by - rasure on 16 May 2006 22:02:21
Go to Top of Page

Mr Pink
Junior Member

United Kingdom
387 Posts

Posted - 17 May 2006 :  14:37:34  Show Profile  Visit Mr Pink's Homepage  Send Mr Pink an AOL message  Reply with Quote
Fantastic! Thank you Rasure, this is just what I was looking for. The installation instructions were very easy to follow and I had the shoutbox working in minutes.

If I had one question (which I have) How do I change the colour inside the shoutbox as mine is white?<

Martin
Leyland Forum Leyland Lancashire UK
Go to Top of Page

rasure
Junior Member

289 Posts

Posted - 17 May 2006 :  14:57:48  Show Profile  Visit rasure's Homepage  Reply with Quote
Well to be completely compliant with snitz you can change this code in shoutbox_entries.asp near the top...
"<body>" & vbNewline

to this code...
"<body background=""" & strPageBGImageURL & """ bgColor=""" & strPageBGColor & """> & vbNewline

Alternativly replace the same code to the one below and change #008080 to suit your needs...
"<body bgcolor=""#008080""> & vbNewline
<

Psychic & Spiritual Development Resources

Edited by - rasure on 17 May 2006 15:15:25
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 17 May 2006 :  22:31:21  Show Profile  Visit Etymon's Homepage  Reply with Quote
quote:
Originally posted by rasure

Yep I just notice the table tags etc were out of place, I have fixed it I think now.

The only problem I'm having with at the moment is the character count no resetting when a user sends text using the enter key, rather than using the OK button.

Thinking of also adding a few basic format options for the text.



Is it possible to build a function using onSubmit (trying to remember if there is such) to clear the character counter. I'm just thinking off the top of my head while saying this.

I'll take a look at it when I get the chance.

Etymon
<
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 17 May 2006 :  22:37:32  Show Profile  Visit Etymon's Homepage  Reply with Quote
I'm not sure if this fits your MOD or not, but here is a thought.

Q266 How can I clear the form field values after the user has submitted the form for client side processing? [Source: http://www.irt.org]

<
Go to Top of Page

rasure
Junior Member

289 Posts

Posted - 18 May 2006 :  07:06:04  Show Profile  Visit rasure's Homepage  Reply with Quote
The character counter does reset when users hits the ok button, but not when using the enter key, what I have done on my site (see pic) is changed the text input to a text area so it solves that problem as hitting enter creates a new line rather than submitting the data, but thanks for the link



I shall maybe add this to the official mod if people want it, and also limit the text area characters so if someone was to paste a large amount of data in it wont give an error when submitting as I believe the database fields will only allow so much.<

Psychic & Spiritual Development Resources

Edited by - rasure on 18 May 2006 08:03:55
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 19 May 2006 :  01:43:48  Show Profile  Visit Etymon's Homepage  Reply with Quote
Thanks for the update on what you did!

Sure! Count me in for wanting your MOD.

By the way, I sent you an email the other day. Did you get it?

Cheers,

Etymon
<
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 20 May 2006 :  09:11:30  Show Profile  Visit richfed's Homepage  Reply with Quote
quote:
Originally posted by rasure

Well to be completely compliant with snitz you can change this code in shoutbox_entries.asp near the top...
"<body>" & vbNewline

to this code...
"<body background=""" & strPageBGImageURL & """ bgColor=""" & strPageBGColor & """> & vbNewline

Alternativly replace the same code to the one below and change #008080 to suit your needs...
"<body bgcolor=""#008080""> & vbNewline




When I replace that line with either of those two options, I get this error in the shout box entries field:

Microsoft VBScript compilation error '800a0409'

Unterminated string constant

<
Go to Top of Page
Page: of 5 Previous Topic Topic Next Topic  
Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07