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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Calendar Mod puts text in the border
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

mtercek
New Member

56 Posts

Posted - 09 August 2005 :  15:27:35  Show Profile
When I post an event and then click on that event the text is displayed in the right border instead of the main cell.

Difficult to explain but if I could just show someone savy I know they could tell me what I need to do.

I can't post a print screen to this forum. Would someone allow me to email you a screen shot of my problem? It would then be very clear what I mean.

Please let me know if you are willing to help. I have to demo this soon and I need to get the bug out.

This is an intranet so I can't just send a link to the BB.

thanks,

Marilyn

StephenD
Senior Member

Australia
1044 Posts

Posted - 09 August 2005 :  19:26:19  Show Profile  Send StephenD a Yahoo! Message
Which Calendar Mod do you have installed .. non-recurring or recurring? I've got the non-recurring one and here is an extract from my sub GetFirst() @lines 886 in my topic.asp:
	' End of Code added for Full Moderation
	Response.Write	"                      <hr noshade size=""" & strFooterFontSize & """></td>" & vbNewLine & _
			"                    </tr>" & vbNewLine & _
			"                    <tr>" & vbNewLine & _
			"                      <td valign=""top"" height=""100%""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """><span class=""spnMessageText"" id=""msg"">"
	if isevent="1" then 
		Response.Write	"<DIV style=""float:left"">" & vbnewline
		DrawMonth dateHolder, 1, 0, 1
		Response.Write	"</DIV>" & vbnewline & _
				"<B>" & ChkString(Topic_Subject,"title") & "<BR />" & vbnewline & _
				FormatDateTime(dateHolder, vbLongDate) & "</B><BR /><BR />" & vbnewline
	end if
	if Request.QueryString("SearchTerms") <> "" then
		Response.Write	SearchHiLite(formatStr(Topic_Message))
	else
		Response.Write	formatStr(Topic_Message)
	end if
	Response.Write	"</span id=""msg""></font></td>" & vbNewLine

which controls the positioning of the calendar box. Hope this helps.
Go to Top of Page

mtercek
New Member

56 Posts

Posted - 10 August 2005 :  09:13:07  Show Profile
Mine is reoccuring. Thanks very much for responding.

The calendar positions correctly it's just the content gets placed in a border.

Edited by - mtercek on 10 August 2005 09:16:50
Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 10 August 2005 :  09:44:55  Show Profile  Send StephenD a Yahoo! Message
Is your code any different to what I have above?
Go to Top of Page

mtercek
New Member

56 Posts

Posted - 10 August 2005 :  10:13:57  Show Profile
Yes, here is the section from my topic.asp:

' End of Code added for Full Moderation
Response.Write " <hr></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr>" & vbNewLine
' " <td valign=""top"" height=""100%""><span class=""textID"" id=""msg"">"
If IsEvent = "1" Then
%> <!-- #include file="cal_topic.asp" --> <%
End If
'if Request.QueryString("SearchTerms") <> "" then
'Response.Write SearchHiLite(formatStr(Topic_Message))
'else
'Response.Write formatStr(Topic_Message)
'end if
' Response.Write "</span id=""msg""></td>" & vbNewLine & _


See anything? I know my problem has to be with a td or tr.

thanks!
Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 10 August 2005 :  10:18:24  Show Profile  Send StephenD a Yahoo! Message
What does the code in your cal_topic.asp look like.
Go to Top of Page

mtercek
New Member

56 Posts

Posted - 10 August 2005 :  10:26:56  Show Profile
Here's all the code from cal_topic:


<LINK rel="stylesheet" href="cal_style.asp" type="text/css">
<%
Response.Write "<TABLE border=""0"" cellspacing="""" cellpadding=""2""><TR><TD> vAlign=""top"">" & vbnewline

DrawMonthTopic(Topic_ID)

Response.Write "</TD> <TD> vAlign=""top"">" & vbnewline

Response.Write " <FONT size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """><B>" & Topic_Subject & "</B></FONT>" & vbnewline

Response.Write "<FONT size=""" & strFooterFontSize & """ color=""" & strForumFontColor & """>" & vbnewline

strSql = "SELECT EVENT_DATE FROM " & strTablePrefix & "CAL_EVENTS " & _
"WHERE TOPIC_ID = " & Topic_ID & " " & _
"GROUP BY EVENT_DATE " & _
"ORDER BY EVENT_DATE Asc"

set rs = Server.CreateObject("ADODB.Recordset")
rs.open StrSql, My_conn

If rs.EOF then

Response.Write "No Dates. "

Else Do while not rs.EOF
Event_Date = StrToDate(rs("EVENT_DATE"))

If CurrentMonth = Month(Event_Date) and CurrentYear = Year(Event_Date) then
blnNewMonth = FALSE
Else
blnNewMonth = TRUE
CurrentMonth = Month(Event_Date)
CurrentYear = Year(Event_Date)
End If

If blnNewMonth Then
Response.Write vbNewLine & " <BR/>" & Year(Event_Date) & " " & MonthName(Month(Event_Date)) & " "
End If

If not blnNewMonth then Response.Write ", "
Response.Write Day(Event_Date)


rs.MoveNext

Loop End If

rs.close
set rs = nothing

Response.Write "</FONT></TR></TABLE><BR/>" & vbNewLine
%>


Sorry to post so many lines but I'm not sure which we need to look at.

thanks again.
Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 10 August 2005 :  10:32:47  Show Profile  Send StephenD a Yahoo! Message
What happens if you uncomment these lines:
If IsEvent = "1" Then 
%> <!-- #include file="cal_topic.asp" --> <% 
End If
'if Request.QueryString("SearchTerms") <> "" then
'Response.Write SearchHiLite(formatStr(Topic_Message))
'else
'Response.Write formatStr(Topic_Message)
'end if
' Response.Write "</span id=""msg""></td>" & vbNewLine & _

Go to Top of Page

mtercek
New Member

56 Posts

Posted - 10 August 2005 :  11:38:05  Show Profile
I get this error message now when clicking on the event:

Microsoft VBScript compilation error '800a03ea'

Syntax error

/forum/topic.asp, line 1046

'################################################
Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 10 August 2005 :  12:20:19  Show Profile  Send StephenD a Yahoo! Message
You might have to remove the & _ from the last line in red above if the line of '##### starts directly after it?
Go to Top of Page

mtercek
New Member

56 Posts

Posted - 10 August 2005 :  17:40:53  Show Profile
Yes, removing the & _ did fix the syntax error. I still have the problem of placing the text into the border.

thanks, anything else we can try?
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.39 seconds. Powered By: Snitz Forums 2000 Version 3.4.07