Author |
Topic  |
Aznknight
Senior Member
   
USA
1373 Posts |
Posted - 12 January 2001 : 02:07:51
|
quote:
Richard... Find 2 small problems with the Calendar.. First it's setup like yours blue/black.
when you add a event the "Day" turns white as is the background so you can't see the "Date"
Also when you add a event then mouse over it the event link turns white and blends in with the white background.
Is there anyway to just change those on the Calendar?
BTW... AWESOME JOB on the Calendar!!
Thanks Rick
Hey Rick they way the dates with events or without events are handled by the styles on the top of the page. Look and feel especially the colors and hover stuff are changed up their.
Richard customized it for his site so styles might look different on yours. |
 |
|
Aznknight
Senior Member
   
USA
1373 Posts |
Posted - 12 January 2001 : 02:11:20
|
quote:
Can someone help me with this one?
I try to add a new event on SR4 with SQL Server:
Microsoft OLE DB Provider for ODBC Drivers error '80040e57'
[Microsoft][ODBC SQL Server Driver][SQL Server]String or binary data would be truncated.
/forum/events.asp, line 526
===== Here's line 526 and the Previous 5 lines:
If sUpdateMode = "edit" Then sSQL = "UPDATE FORUM_EVENTS SET Start_Date = '" & cDate(Request.Form("START_DATE")) & "', End_Date = '" & enddate & "', Event_Title = '" & fixquote(Request.Form("EVENT_TITLE")) & "', Event_Details = '" & fixquote(Request.Form("EVENT_Details")) & "', date_added = '" & now() & "' WHERE Event_ID=" & Request.Form("Event_ID") my_Conn.Execute sSQL Else sSQL = "INSERT INTO FORUM_EVENTS (Start_Date, End_Date, Event_Title, Event_Details, Date_Added, Added_by) Values ('" & cDate(Request.Form("START_DATE")) & "', '" & enddate & "',' " & fixquote(Request.Form("EVENT_TITLE")) & "', '" & fixquote(Request.Form("EVENT_Details")) & "', '" & now() & "', '" & memberid & "')" my_Conn.Execute sSQL
« Nokturnal.Net » Seize The Night
Crazy, You can try this.
Delete your database and run the sql server dbsetup that tim (tteal) put up on the first page of this mod post.
I think error is because date fields in access are handled differently on sql server. |
 |
|
rick7165
Senior Member
   
USA
1094 Posts |
Posted - 12 January 2001 : 03:08:30
|
Aznknight...
I'm using Richard's Custom Forum. And the colors are just like his.
quote:
quote:
Richard... Find 2 small problems with the Calendar.. First it's setup like yours blue/black.
when you add a event the "Day" turns white as is the background so you can't see the "Date"
Also when you add a event then mouse over it the event link turns white and blends in with the white background.
Is there anyway to just change those on the Calendar?
BTW... AWESOME JOB on the Calendar!!
Thanks Rick
Hey Rick they way the dates with events or without events are handled by the styles on the top of the page. Look and feel especially the colors and hover stuff are changed up their.
Richard customized it for his site so styles might look different on yours.
|
 |
|
CrAzY
New Member

USA
50 Posts |
Posted - 12 January 2001 : 03:52:57
|
AznKnight:
I've already tried setup my SQL table using tteal's eventstable_setup.asp on the first page.
I guess I'll wait until someone comes up with a functioning code for SQL .. thanks tho
« Nokturnal.Net » Seize The Night
|
 |
|
tteal
Junior Member
 
USA
438 Posts |
|
tteal
Junior Member
 
USA
438 Posts |
Posted - 12 January 2001 : 09:25:00
|
quote:
Can anyone help i'm comming up with this error on the events.asp page:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14' [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '#'.
/board/events.asp, line 625
which deals with this part of the code: "ORDER BY Start_Date" 'Response.Write sSQL 'Open the RecordSet with a static cursor. This cursor provides bi-directional navigation 'Rs.Open sSQL, my_Conn, adOpenStatic, adLockReadOnly, adCmdText dim rs set rs = server.CreateObject("adodb.recordset") rs.Open ssql, my_Conn <--- This line of code is 625
to view the error go to Click here to view events.asp
Edited by - need300z on 11 January 2001 23:14:32
Need300z, See my message prior to this one. I have changed the code to work with SQL Server... you have to change the instances where it's calling out date functions from # to the ' character and it will work. Also the "DELETE * FROM" needs to be changed to "DELETE FROM"
Cheers.
Cheers, Tim
http://www.free-guestbook.com |
 |
|
need300z
Starting Member
14 Posts |
Posted - 12 January 2001 : 12:35:14
|
tteal, that did the trick now i'm getting a black box color for the day that has some event in it and also seems like the text is only allowing 10 characters to be displayed in the box. Have a look and any help would be greatly appreciated http://www.equinebargains.com/board/events.asp
|
 |
|
CrAzY
New Member

USA
50 Posts |
Posted - 12 January 2001 : 13:22:42
|
Tteal,
I've downloaded both your events.txt and eventstable.txt, and the calendar looks good, although I'm still getting errors when I attempt to add an event.
This is my current message:
ADODB.Field error '800a0bcd'
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/Forum/events.asp, line 496
Here's line 496:
memberid = rs("Member_ID")
I'm totally stumped on where else to go with this.
« Nokturnal.Net » Seize The Night
|
 |
|
tteal
Junior Member
 
USA
438 Posts |
Posted - 12 January 2001 : 13:31:53
|
Crazy, Do you have any events in the calendar? If not, that's why you're getting the error. Try inserting one manually via the Enterprise Manager. Then you won't get that error. If you cannot, you can do something like this:
if memberid = "" then Response.redirect "register.asp" Response.end end if
The problem I think is that you're not getting the cookie and it's not necessarily the "recordset". It's just grabbing the username and associating it with an "ID". If the user doesn't have cookies on, they can't see it :( Also, if the user isn't registered, they shouldn't be able to see the calendar either.
What version are you using?
Cheers, Tim
http://www.free-guestbook.com |
 |
|
RichardKinser
Snitz Forums Admin
    
USA
16655 Posts |
Posted - 12 January 2001 : 14:14:06
|
I think I've got the colors working together with my color scheme now.
rick, if you want the one I use it's the same events.txt file as I have a link for above. |
 |
|
SuTech
Starting Member
USA
23 Posts |
Posted - 12 January 2001 : 15:45:59
|
I agree with need300z, there needs to be a few mor characters allowed in the calendar view. Where in the code can it be modified to change the fonts size smaller and show more text?
|
 |
|
Matthew
New Member

USA
91 Posts |
Posted - 12 January 2001 : 16:14:17
|
Great mod. Just a couple questions. Has anyone fixed the problem with when 2 ppl post a event on the same day it always shows the poster as the first person who posted? I tried Hoppers fix but it didn't work. On the main calender when you add a event and it shows up on the day which part allows me to change the link color?
Matt If everything seems to be going your way, you have obviously overlooked something. |
 |
|
Aznknight
Senior Member
   
USA
1373 Posts |
Posted - 12 January 2001 : 16:52:15
|
quote:
I agree with need300z, there needs to be a few mor characters allowed in the calendar view. Where in the code can it be modified to change the fonts size smaller and show more text?
Sutech and all,
The numbers of characters to be displayed can be changed here. Sorry for making it only 9. I was planning to make it a setable number for the admin but didn't get around to doing the configurable admin stuff.
Here's where to change this (around line 1148):
'------------------------------------------------------------------------- ' This routine prints the individual table divisions for days of the month '------------------------------------------------------------------------- Sub Write_TD2(sValue, sClass, dDate) dim rsEvents, sETitle set rsevents = server.CreateObject("adodb.recordset") Response.Write " <TD HEIGHT='80' WIDTH='14%' ALIGN='left' VALIGN='top' CLASS='" & sClass & "'> " & sValue sSQL = "SELECT event_id, start_date, end_date, event_title FROM FORUM_EVENTS " & _ "WHERE Start_Date <= #" & dDate & "# AND End_date >= #" & dDate & "# ORDER BY Event_ID " rsEvents.Open sSQL, my_Conn do while not(rsevents.EOF) sETitle = rsEvents("event_title") if len(sETitle) > 8 then sETitle = mid(sETitle,1,9) end if Response.Write "<br><A HREF=events.asp?date="& Server.URLEncode(dToday) & ">" & sETitle & "</a>" rsEvents.MoveNext loop Response.Write "</TD>" & vbCrLf rsEvents.Close set rsevents = nothing End Sub
Changed the 9 to however many characters to want to be displayed. 15 looks pretty good.
Change the 8 to one less then what you changed above.
Cheers
- Alan alan@calvsa.net www.calvsa.net
Edited by - aznknight on 12 January 2001 17:03:47 |
 |
|
Aznknight
Senior Member
   
USA
1373 Posts |
Posted - 12 January 2001 : 16:53:39
|
quote:
Great mod. Just a couple questions. Has anyone fixed the problem with when 2 ppl post a event on the same day it always shows the poster as the first person who posted? I tried Hoppers fix but it didn't work. On the main calender when you add a event and it shows up on the day which part allows me to change the link color?
Matt If everything seems to be going your way, you have obviously overlooked something.
I haven't been able to confirm this bug. Doesn't seem to happen on my demo site or maybe I just can't reproduce it. |
 |
|
RichardKinser
Snitz Forums Admin
    
USA
16655 Posts |
Posted - 12 January 2001 : 17:11:35
|
I had already changed the 8 to a 10 and the 9 to an 11 so if someone is using the events.txt that I posted a link to, the #'s may be different then what Alan mentioned. |
 |
|
Topic  |
|