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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 MOD: New Events Calendar for 3.4.03 beta
 New Topic  Reply to Topic
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 32

atracht
Starting Member

30 Posts

Posted - 23 January 2003 :  20:19:26  Show Profile  Reply with Quote
How would you edit cal_default.asp so that it only shows the small calender and not the current, recent, or past event text and links?

I want to include it in a side bar and have only the small calender in cal_default.asp show.

Thanks!<
Go to Top of Page

Steve D.
Average Member

USA
640 Posts

Posted - 23 January 2003 :  23:09:00  Show Profile  Visit Steve D.'s Homepage  Send Steve D. a Yahoo! Message  Reply with Quote
all you would do is add two includes to to the page where you are want to show the calendar.

<!--#INCLUDE FILE="cal_style.asp"-->
<!--#INCLUDE FILE="cal_functions.asp"-->

then where you want the calendar to appear in the page add this...

<% DrawMonth Date,0,0,1 %>

that should do it<

Swing Dancing Video Clips - It's All Swing! Forum
Go to Top of Page

atracht
Starting Member

30 Posts

Posted - 24 January 2003 :  06:57:55  Show Profile  Reply with Quote
Under the small canender I want to list only today's events. How would I do that?

Thanks!<
Go to Top of Page

shaft
Starting Member

United Kingdom
42 Posts

Posted - 24 January 2003 :  09:33:46  Show Profile  Send shaft an ICQ Message  Send shaft a Yahoo! Message  Reply with Quote
red now i am having a new problem. I don't know what happend I was working then it was not hmm. here is my error


Microsoft VBScript runtime error '800a0005'
Invalid procedure call or argument: 'WeekDayName'

/st/forum/cal_functions_portal.asp, line 29


cal_functions_portal.asp is the new cal_functions file i made with the new links that you told me to change.

I also just installed the SmileManager Plus for Snitz 3.4

what you think is wrong? did i mess you when i changed the links or is it the new mod? More important help me FIX !!!!!<
Go to Top of Page

red1
Junior Member

355 Posts

Posted - 24 January 2003 :  10:48:58  Show Profile  Reply with Quote
on line 29, can you try replacing this function:
WeekDayName(dayofWeek mod 7 + 1,1)

with this:
WeekDayName(cInt(dayofWeek mod 7 + 1),true)


<

My Mods:
New Events Calendar
New Non-database Active Users

Edited by - red1 on 24 January 2003 10:53:59
Go to Top of Page

Steve D.
Average Member

USA
640 Posts

Posted - 24 January 2003 :  10:52:59  Show Profile  Visit Steve D.'s Homepage  Send Steve D. a Yahoo! Message  Reply with Quote
quote:
Originally posted by atracht

Under the small canender I want to list only today's events. How would I do that?

If you go to cal_default.asp and copy lines 36-58 that will write out the events for just today.<

Swing Dancing Video Clips - It's All Swing! Forum
Go to Top of Page

shaft
Starting Member

United Kingdom
42 Posts

Posted - 24 January 2003 :  12:16:59  Show Profile  Send shaft an ICQ Message  Send shaft a Yahoo! Message  Reply with Quote
nah red that did not work. Any thing else i can do to help you figure it out let me know<
Go to Top of Page

red1
Junior Member

355 Posts

Posted - 24 January 2003 :  14:06:47  Show Profile  Reply with Quote
Did you include cal_constants.asp in your portal page?<

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

shaft
Starting Member

United Kingdom
42 Posts

Posted - 24 January 2003 :  15:25:38  Show Profile  Send shaft an ICQ Message  Send shaft a Yahoo! Message  Reply with Quote
no the the new cal_constants_portal.asp
<
Go to Top of Page

red1
Junior Member

355 Posts

Posted - 24 January 2003 :  15:40:08  Show Profile  Reply with Quote
The error happens because the value in the variable isn't set correctly. You can try adding this before the line that causes the error:

On error resume next
Response.Write "The value of dayofWeek is " & dayofWeek & "<br>"

If the value isn't a number from 1 to 7 then the error occurs


Edit: I'm looking at your calendar here:
http://www.shaft.pimpjuice.co.uk/st/forum/cal.asp
and I can see that you forgot to put <!-- #include file="cal_constants.asp" --> in config.asp<

My Mods:
New Events Calendar
New Non-database Active Users

Edited by - red1 on 24 January 2003 15:51:49
Go to Top of Page

Mountainman
Starting Member

Denmark
9 Posts

Posted - 29 January 2003 :  04:10:01  Show Profile  Visit Mountainman's Homepage  Reply with Quote
I am using private forums. I've set up a testforum, copied all the forum files, set up a new database without private forums and it works there.

It must be something related to the private forums.<
Go to Top of Page

red1
Junior Member

355 Posts

Posted - 31 January 2003 :  23:51:36  Show Profile  Reply with Quote
Mountainman can you try this please:
Find these lines in inc_func_secure.asp (lines 165-168):

	if rsStatus.EOF or rsStatus.BOF then
		rsStatus.close
		set rsStatus = nothing
		Response.Redirect("default.asp")
	else

Comment out the Response.Redirect("default.asp") line by placing a single apostrophe in front of it, like so:
		Response.Redirect("default.asp")


Let me know if it works.<

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

Mountainman
Starting Member

Denmark
9 Posts

Posted - 03 February 2003 :  02:33:26  Show Profile  Visit Mountainman's Homepage  Reply with Quote
Tried it. Then is gives the error:

Microsoft VBScript runtime error '800a01a8'

Object required: 'rsStatus'

/forum/inc_func_secure.asp, line 338


Line 338 says:

rsStatus.close

The lines around line 338 (line 331 - 344) says:

chkForumAccess = true
end select
else
chkForumAccess = true
end if
end if

rsStatus.close
set rsStatus = nothing
end function


sub doLoginForm()
Response.Write " <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """ color=""" & strHiLiteFontColor & """>There Was A Problem</font></p>" & vbNewLine & _


So this put me in a much worse position...

Mountainman<
Go to Top of Page

red1
Junior Member

355 Posts

Posted - 03 February 2003 :  13:17:35  Show Profile  Reply with Quote
How about replacing Response.Redirect("default.asp") with Response.End ? Sorry about this, I'm lost too, becase it's really not supposed to behave like that.<

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

leblanc9425
New Member

USA
92 Posts

Posted - 04 February 2003 :  07:22:55  Show Profile  Visit leblanc9425's Homepage  Reply with Quote
I have a very similiar question like Steve D. How do I display the small calendar, small upcoming events, small recent events (like what you would see on the right hand side of the "daily" view of cal.asp) in a page NOT in the Snitz directory?

What I am trying to do is put this on my homepage but I'm having some problems. I put this is my homepage:

<!--#INCLUDE virtual="/snitz/config.asp"-->
<!--#INCLUDE virtual="/snitz/cal_style.asp"-->
<!--#INCLUDE virtual="/snitz/cal_functions.asp"-->

and then put this where I wanted the calendar:
<% DrawMonth Date,0,0,1 %>

It draws the calendar BUT, the calendar is completely black and if I click on it, it thinks it is in the snitz directory not my root so errors out.

Any help would be greatly appreciated.

quote:
Originally posted by Steve D.

all you would do is add two includes to to the page where you are want to show the calendar.

<!--#INCLUDE FILE="cal_style.asp"-->
<!--#INCLUDE FILE="cal_functions.asp"-->

then where you want the calendar to appear in the page add this...

<% DrawMonth Date,0,0,1 %>

that should do it

<

www.Slug-Lines.com
Snitz Version 3.4.07

Edited by - leblanc9425 on 04 February 2003 07:25:31
Go to Top of Page
Page: of 32 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07