Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Shoutbox Mod
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Shoutbox Mod

 Post Reply Post Reply Page  123 10>
Author
shemzilla View Drop Down
Newbie
Newbie


Joined: 19 June 2007
Location: South Africa
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote shemzilla Quote  Post ReplyReply Direct Link To This Post Topic: Shoutbox Mod
    Posted: 02 August 2007 at 1:00pm
here's a simple shoutbox mod...

Bugs Fixed:
1. html characters removed, also limited to 300 chars per shout
2. member profile link fixed

Just dload the zip again and replace BOTH files

Add files to main forum folder:
http://bikecrazy.jghinternet.co.za/Shoutbox.zip

Add this to default.asp:
add it to where ever you'd like it to show

<!-- SHOUTBOX -->
<table cellspacing="1" cellpadding="3" class="tableBorder" align="center">

    <tr class="tableLedger">
        <td>Shoutbox</td>
    </tr>
    <tr class="tableRow">
        <td class="tableRow"><iFrame ID="IFrame1" src="shoutBox.asp" style="width:100%;" SCROLLING="auto" frameborder="0"></iFrame></td>
    </tr>
    <tr class="tableRow">
    <%If lngLoggedInUserID = 2 Then%>
        <td><b>Please login to use the shoutbox</b></td>
    <%Else%>
        <td>
            <form name="frmAddShout" action="addShout.asp" method="post">
            <input type="text" id="txtShout" name="txtShout" class="text" style="width:350px;" />&nbsp;<input type="submit" value="Shout!" class="smText"/>
            </form>
        </td>
    <%End If%>
    </tr>

</table>
<!-- SHOUTBOX END -->


Add this table to your db:

CREATE TABLE [dbo].[tblShouts](
    [Shout_ID] [int] IDENTITY(1,1) NOT NULL,
    [Author_ID] [int] NULL,
    [Shout_Msg] [varchar](500) NULL,
    [Shout_Time] [datetime] NULL CONSTRAINT [DF_tblShouts_Shout_Time]  DEFAULT (getdate())
) ON [PRIMARY]

GO


there ya go Wink

look, i've quickly run through this i think that's everything, shout if you have any problems.

this is very straight forward though, so make sure you uploaded the files and added the table before saying it doesn't work ;), it works 100% on my site
Shem


Edited by shemzilla - 03 August 2007 at 7:53am
Back to Top
iSec View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 February 2005
Status: Offline
Points: 1140
Post Options Post Options   Thanks (0) Thanks(0)   Quote iSec Quote  Post ReplyReply Direct Link To This Post Posted: 02 August 2007 at 4:02pm

I do not want to modify the database, can we create an independent database?

"When it gets dark enough, you can see the stars"
-Charles A. Beard
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 02 August 2007 at 8:14pm
based on the PM you sent me, using WWF database would be the best idea in my opinion.

just name them with a prefix like "SBMod_" to avoid future problems
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
javi712 View Drop Down
Senior Member
Senior Member


Joined: 22 May 2003
Location: United States
Status: Offline
Points: 488
Post Options Post Options   Thanks (0) Thanks(0)   Quote javi712 Quote  Post ReplyReply Direct Link To This Post Posted: 02 August 2007 at 8:29pm
Thanks for the mod Shem!
Back to Top
iSec View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 February 2005
Status: Offline
Points: 1140
Post Options Post Options   Thanks (0) Thanks(0)   Quote iSec Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2007 at 6:07am

Shemzilla, you have done a very neat mod. Thank you.

Scotty thanks for the advise... I took it and I guess i can delete that one table whenever I want, especially that I have complete control over my server.

There was one bug though: when someone clicks the username it takes them to the main homepage of the website, for example: www.domain-name.com/member_profile.asp?PF=1
 
it should have the forum directory after the domain name.


Edited by Info_Tech - 03 August 2007 at 6:10am
"When it gets dark enough, you can see the stars"
-Charles A. Beard
Back to Top
iSec View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 February 2005
Status: Offline
Points: 1140
Post Options Post Options   Thanks (0) Thanks(0)   Quote iSec Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2007 at 6:30am

Security issue:

This mod allows for the excution of HTML... this is a huge security issue; can it be limited to allow only Forum BBCodes?
"When it gets dark enough, you can see the stars"
-Charles A. Beard
Back to Top
shemzilla View Drop Down
Newbie
Newbie


Joined: 19 June 2007
Location: South Africa
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote shemzilla Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2007 at 6:57am
@Info_Tech

ooops thanks for pointing that out, i'll add some validation;)

Shem
Back to Top
shemzilla View Drop Down
Newbie
Newbie


Joined: 19 June 2007
Location: South Africa
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote shemzilla Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2007 at 6:59am
about the pointing of member_control_panel.asp
i'll fix that up too;)

Shem
Back to Top
 Post Reply Post Reply Page  123 10>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.