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
 Events calendar install?
 New Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

Carefree
Advanced Member

Philippines
4222 Posts

Posted - 11 May 2013 :  12:26:07  Show Profile
You can modify the admin_mod_dbsetup.asp file to not check for forum_admin just to install this mod. It's not safe to leave it like that, though.

To do this, look for these lines (appx 53-70), and comment them out or delete them:


if MemberID <> intAdminMemberID then
	Err_Msg = "<li>Only the Forum Admin can access this page</li>"

	Response.Write	"<table align=""center"" width=""50%"" height=""50%"">" & vbNewLine & _
			"  <tr>" & vbNewLine & _
			"    <td>" & vbNewLine & _
			"    <p align=""center""><font face=""Verdana, Arial, Helvetica"" size=""3"" color=""#FF0000"">There has been a problem!</font></p>" & vbNewLine & _
			"      <table align=""center"" border=""0"">" & vbNewLine & _
			"        <tr>" & vbNewLine & _
			"          <td><font face=""Verdana, Arial, Helvetica"" size=""2"" color=""#FF0000""><ul>" & Err_Msg & "</ul></font></td>" & vbNewLine & _
			"        </tr>" & vbNewLine & _
			"      </table>" & vbNewLine & _
			"    <p align=""center"" valign=""middle""><font face=""Verdana, Arial, Helvetica"" size=""2""><a href=""JavaScript:history.go(-1)"">Go Back To Admin Section</a></font></p>" & vbNewLine & _
			"    </td>" & vbNewLine & _
			"  </tr>" & vbNewLine & _
			"</table>" & vbNewLine
	Response.End
end if
Go to Top of Page

Zenfor
Junior Member

372 Posts

Posted - 11 May 2013 :  21:19:43  Show Profile
Thanks, will try when I get a chance.
Go to Top of Page

Zenfor
Junior Member

372 Posts

Posted - 11 May 2013 :  21:45:33  Show Profile
With that change, I was able to run the Mod setup and I still have problems, appreciate any help. This is getting very frustrating, sorry.

This is the result:

New Events Calendar Mod (Recurring Dates) for Snitz 3.4.05

Dropping Column...
ALTER TABLE FORUM_TOPICS DROP COLUMN T_ISEVENT
ALTER TABLE FORUM_TOPICS DROP COLUMN T_ISEVENT
-2147217900 | There is no field named 'T_ISEVENT' in table 'FORUM_TOPICS'.

Dropping Column...
ALTER TABLE FORUM_A_TOPICS DROP COLUMN T_ISEVENT
ALTER TABLE FORUM_A_TOPICS DROP COLUMN T_ISEVENT
-2147217900 | There is no field named 'T_ISEVENT' in table 'FORUM_A_TOPICS'.

Adding Column F_ALLOWEVENTS...
ALTER TABLE FORUM_FORUM ADD COLUMN F_ALLOWEVENTS int NULL DEFAULT 1
Column added successfully
UPDATE FORUM_FORUM SET F_ALLOWEVENTS=1
Populating Current Records with new Default value
Table(s) updated

Creating table(s)...
CREATE TABLE FORUM_CAL_EVENTS( TOPIC_ID int NOT NULL , EVENT_DATE varchar(50) NOT NULL )
Table created successfully

If there were errors please post a question in the MOD Implementation Forum at
Snitz Forums
=======================================

This is what I still get when I run the forum:

May 2013
Microsoft VBScript runtime error '800a0005'

Invalid procedure call or argument: 'WeekDayName'

/forum_new/cal_functions.asp, line 45
Go to Top of Page

Carefree
Advanced Member

Philippines
4222 Posts

Posted - 12 May 2013 :  00:40:58  Show Profile
Let's do a quick test, shall we?

Above line 44 (For i = 1 to 7), insert these two lines, then try the forum again. It'll print out two lines and stop. Report the results here, then you can delete those two lines.


Response.Write dayofWeek & "=dayofweek<br />" & intCalFirstDayofWeek & "=intCalFirstDayofWeek<br />"
Response.End
Go to Top of Page

Zenfor
Junior Member

372 Posts

Posted - 12 May 2013 :  18:56:46  Show Profile
quote:
Originally posted by Carefree

Let's do a quick test, shall we?

Above line 44 (For i = 1 to 7), insert these two lines, then try the forum again. It'll print out two lines and stop. Report the results here, then you can delete those two lines.


Response.Write dayofWeek & "=dayofweek<br />" & intCalFirstDayofWeek & "=intCalFirstDayofWeek<br />"
Response.End




May 2013
-1=dayofweek
=intCalFirstDayofWeek

Thank you!
Go to Top of Page

Carefree
Advanced Member

Philippines
4222 Posts

Posted - 13 May 2013 :  04:53:09  Show Profile
Ok the issue seems to lie in "cal_config.asp". Look at line 65 and see what it is set to. The default value = 1 (first day of week = Sunday). Your value seems to equal 0. You may not have loaded "cal_config.asp", it should be called as an included file within "config.asp".

Edited by - Carefree on 13 May 2013 04:55:07
Go to Top of Page

Zenfor
Junior Member

372 Posts

Posted - 13 May 2013 :  06:55:03  Show Profile
quote:
Originally posted by Carefree

Ok the issue seems to lie in "cal_config.asp". Look at line 65 and see what it is set to. The default value = 1 (first day of week = Sunday). Your value seems to equal 0. You may not have loaded "cal_config.asp", it should be called as an included file within "config.asp".


IT'S WORKING!!

I will do more testing on it today, thank you all for your help.
Go to Top of Page

Carefree
Advanced Member

Philippines
4222 Posts

Posted - 13 May 2013 :  12:35:22  Show Profile
You're welcome again.
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07