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  <1 8910
Author
true_king View Drop Down
Groupie
Groupie
Avatar

Joined: 05 November 2007
Location: Hell
Status: Offline
Points: 97
Post Options Post Options   Thanks (0) Thanks(0)   Quote true_king Quote  Post ReplyReply Direct Link To This Post Posted: 11 December 2007 at 1:25pm
what i use in access database?
Back to Top
true_king View Drop Down
Groupie
Groupie
Avatar

Joined: 05 November 2007
Location: Hell
Status: Offline
Points: 97
Post Options Post Options   Thanks (0) Thanks(0)   Quote true_king Quote  Post ReplyReply Direct Link To This Post Posted: 11 December 2007 at 10:20pm
got this error on second post,

Microsoft JET Database Engine error '80004005'

The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship. Change the data in the field or fields that contain duplicate data, remove the index, or redefine the index to permit duplicate entries and try again.

/forums/addShout.asp, line 7


btw, while using black theme the button and shout textbox text colour is grayed. how to fix it?


Back to Top
true_king View Drop Down
Groupie
Groupie
Avatar

Joined: 05 November 2007
Location: Hell
Status: Offline
Points: 97
Post Options Post Options   Thanks (0) Thanks(0)   Quote true_king Quote  Post ReplyReply Direct Link To This Post Posted: 14 December 2007 at 4:10pm
for those, who need auto refresh or ajax mode for shoutbox,

i just update shoutbox.asp

Quote
<% @ Language=VBScript %>
<% Option Explicit %>
<!--#include file="common.asp" -->
<!--#include file="functions/functions_date_time_format.asp" -->
<link href="<% = strCSSfile %>default_style.css" rel="stylesheet" type="text/css" />

<!--LOOP SECTION FOR SHOUT BOX-->
<table class="basicTable" align="left" width="100%" border="0px" cellpadding="0" cellspacing="0" >
<%
Dim rsShout
set rsShout = server.CreateObject("ADODB.Recordset")
rsShout.Open "SELECT TOP 15 Shout_Time, Username, Shout_Msg, tblShouts.Author_ID FROM tblShouts INNER JOIN tblAuthor ON tblShouts.Author_ID = tblAuthor.Author_ID ORDER BY Shout_Time DESC", adoCon

while NOT rsShout.EOF
%>
<tr class="tableRow">
    <td valign="top"><strong>Posted <%=DateFormat(rsShout("Shout_Time"))%>&nbsp;at&nbsp;<%=TimeFormat(rsShout("Shout_Time"))%>&nbsp;by <a target="_parent" href="member_profile.asp?PF=<%=rsShout("Author_ID")%>"><%=rsShout("Username")%></a></strong></td>
</tr>
<tr class="tableRow">
    <td valign="top"><%=rsShout("Shout_Msg")%></td>
</tr>
<tr class="tableRow">
    <td valign="top"><hr></hr></td>
</tr>
<%
rsShout.MoveNext
wend
rsShout.close
set rsShout = nothing
%>
</table>
<!--END OF LOOP SECTION FOR SHOUT BOX-->

<script type="text/javascript">
function reFresh()
{
location.reload(true);
}
window.setInterval("reFresh()",5000);
</script>
  
  


it woked coolz.........

anyway frnds is there any way to use emotions also? not need graphical.... it will be good like [ : ) ] (without space)
Back to Top
 Post Reply Post Reply Page  <1 8910

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.