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.zipAdd 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;" /> <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

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