Author |
Topic |
atracht
Starting Member
30 Posts |
Posted - 23 January 2003 : 20:19:26
|
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!< |
|
|
Steve D.
Average Member
USA
640 Posts |
Posted - 23 January 2003 : 23:09:00
|
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 |
|
|
atracht
Starting Member
30 Posts |
Posted - 24 January 2003 : 06:57:55
|
Under the small canender I want to list only today's events. How would I do that?
Thanks!< |
|
|
shaft
Starting Member
United Kingdom
42 Posts |
Posted - 24 January 2003 : 09:33:46
|
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 !!!!!< |
|
|
red1
Junior Member
355 Posts |
Posted - 24 January 2003 : 10:48:58
|
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 |
|
|
Steve D.
Average Member
USA
640 Posts |
Posted - 24 January 2003 : 10:52:59
|
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 |
|
|
shaft
Starting Member
United Kingdom
42 Posts |
Posted - 24 January 2003 : 12:16:59
|
nah red that did not work. Any thing else i can do to help you figure it out let me know< |
|
|
red1
Junior Member
355 Posts |
|
shaft
Starting Member
United Kingdom
42 Posts |
Posted - 24 January 2003 : 15:25:38
|
no the the new cal_constants_portal.asp < |
|
|
red1
Junior Member
355 Posts |
Posted - 24 January 2003 : 15:40:08
|
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 |
|
|
Mountainman
Starting Member
Denmark
9 Posts |
Posted - 29 January 2003 : 04:10:01
|
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.< |
|
|
red1
Junior Member
355 Posts |
Posted - 31 January 2003 : 23:51:36
|
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 |
|
|
Mountainman
Starting Member
Denmark
9 Posts |
Posted - 03 February 2003 : 02:33:26
|
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< |
|
|
red1
Junior Member
355 Posts |
Posted - 03 February 2003 : 13:17:35
|
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 |
|
|
leblanc9425
New Member
USA
92 Posts |
Posted - 04 February 2003 : 07:22:55
|
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 |
|
|
Topic |
|