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
 New Events Calendar Mod
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

robbbban
Starting Member

Sweden
7 Posts

Posted - 14 December 2004 :  08:59:40  Show Profile
I get this error message when i try to access the default.asp after doing everything exactly as it says in the readme file:

Expected 'End'
cal_functions.asp, line 523.

It's something like that.

This is how the code looks like in cal_functions.asp and i haven't modified anything:


'*****************************************************************
 Sub WriteUpcomingEvents
'*****************************************************************

strSql = "SELECT "
If strDBtype = "access" or strDBtype = "sqlserver" then strSql = strSql & "TOP " & intCalEventstoDisplay & " "
strSql = strSql &   "T.TOPIC_ID, " & _
                    "T.T_SUBJECT, " & _
                    "T.FORUM_ID, " & _
                    "T.T_STATUS, " & _
                    "E.EVENT_DATE, " & _
                    "C.CAT_MODERATION, " & _
                    "F.F_MODERATION " & _
    "FROM ((" & _ 
        strTablePrefix & "TOPICS AS T " & _
    "INNER JOIN " & _
        strTablePrefix & "CAL_EVENTS AS E ON E.TOPIC_ID = T.TOPIC_ID) " & _
    "INNER JOIN " & _
        strTablePrefix & "CATEGORY AS C ON C.CAT_ID = T.CAT_ID) " & _
    "INNER JOIN " & _
            strTablePrefix & "FORUM AS F ON F.FORUM_ID = T.FORUM_ID " & _
    "WHERE T.T_ISEVENT=1 " & _
    "AND   E.EVENT_DATE > '" & DateToStr(DateValue(strForumTimeAdjust)) & "' " & _
    "AND   T.FORUM_ID IN (" & arrRqCalForumID & ")" &  _
    "ORDER BY E.EVENT_DATE Asc"


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


If rs.EOF then
    Response.Write "<DIV class=""cal_listitem"">" & strCalNoUpcoming & "</DIV>" & vbnewline

Else Do Until rs.EOF
    Topic_ID = rs("TOPIC_ID")
    Topic_Subject = rs("T_SUBJECT")
    Forum_ID = rs("FORUM_ID")
    Topic_Status = rs("T_STATUS")
    Event_Date = StrToDate(rs("EVENT_DATE"))
    Cat_Moderation = rs("CAT_MODERATION")
    Forum_Moderation = rs("F_MODERATION")


    '*****************************************************************
    'Code for Topic Moderation and Private Forums
    If mLev = 4 then
        AdminAllowed = 1
        ForumChkSkipAllowed = 1
    ElseIf mLev = 3 then
        If chkForumModerator(Forum_ID, chkString(strDBNTUserName,"decode")) = "1" then
523            AdminAllowed = 1
524            ForumChkSkipAllowed = 1
525        Else
526            If lcase(strNoCookies) = "1" then
                AdminAllowed = 1
                ForumChkSkipAllowed = 0
            Else
                AdminAllowed = 0
                ForumChkSkipAllowed = 0
            End if
        End if
    ElseIf lcase(strNoCookies) = "1" then
        AdminAllowed = 1
        ForumChkSkipAllowed = 0
    Else   
        AdminAllowed = 0
        ForumChkSkipAllowed = 0
    End if

    If strPrivateForums = "1" and ForumChkSkipAllowed <> "1" then
        forumAccess = ChkForumAccess(Forum_ID, MemberID, false)
    Else
        forumAccess = true
    End if
    
    If strModeration > 0 and Cat_Moderation > 0 and Forum_Moderation > 0 and AdminAllowed = 0 then
            Moderation = "Y"
    Else
            Moderation = "N"
    End if
    '*****************************************************************


    If forumAccess and not(Moderation = "Y" and Topic_Status > 1 and Topic_Author <> MemberID) then
        Response.Write  "<DIV class=""cal_listitem"">" & MonthName(Month(Event_Date)) & " " & Day(Event_Date) & "</DIV>" & vbnewline & _
                "<DIV class=""cal_indented""><SPAN class=""spnMessageText""><a href=""topic.asp?TOPIC_ID=" & Topic_ID & """>" & Topic_Subject & "</a></SPAN></DIV>"
    End if

    rs.movenext

Loop End if

rs.close
set rs = nothing


End Sub 'WriteUpcomingEvents


Can somebody please help me?
//Robert - swe

red1
Junior Member

355 Posts

Posted - 16 December 2004 :  06:51:05  Show Profile
Hi.

The code you posted is fine. The error is coming from some other page referenced in default.asp. The mod was released for Snitz v3.4.03, so with 3.4.05 the line numbers in the readme are off. Maybe in a few days I'll update the mod.

My Mods:
New Events Calendar
New Non-database Active Users
Go to Top of Page

robbbban
Starting Member

Sweden
7 Posts

Posted - 17 December 2004 :  15:13:48  Show Profile
aha...ok, thanks for your reply. Then i look forward to your update =)
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.35 seconds. Powered By: Snitz Forums 2000 Version 3.4.07