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: Snitz Events Calendar Version 2 sr 1
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 12

Marino
Starting Member

Canary Islands
42 Posts

Posted - 20 April 2001 :  08:19:41  Show Profile  Send Marino an ICQ Message
The first link is a good one. Most of posts aren't concerned to bugs or problems with the mod, but suggestions/modifications done to the mod to customize it for your site.

Anyway, if you get any trouble installing it, as you can see, you have a lot of support in these forums

Marino
Go to Top of Page

chuban
Starting Member

1 Posts

Posted - 22 April 2001 :  14:58:08  Show Profile
quote:

quote:

sorry for my bad english,

i want to use this mod in Germany
what must i do to change Monday in Montag
etc.

with greetings

Koobi



Firstly, if your server is running non-US date format, ie day/month/year instead of month/day/year this mod will not work for you at this point.

Okay now for help with translating parts of this mod. I hope to make this easier in the next internationalized release .

To get the month translated, fine all monthName functions and changed it to monthName2 in events_function.asp. Then add this to the bottom of it.

function monthName2(intMonth)
if (intMonth = 1) then monthName2 = "Enero"
if (intMonth = 2) then monthName2 = "Febrero"
if (intMonth = 3) then monthName2 = "Marzo"
if (intMonth = 4) then monthName2 = "Abril"
if (intMonth = 5) then monthName2 = "Mayo"
if (intMonth = 6) then monthName2 = "Junio"
if (intMonth = 7) then monthName2 = "Julio"
if (intMonth = 8) then monthName2 = "Agosto"
if (intMonth = 9) then monthName2 = "Septiembre"
if (intMonth = 10) then monthName2 = "Octubre"
if (intMonth = 11) then monthName2 = "Noviembre"
if (intMonth = 12) then monthName2 = "Diciembre"
end function


To change the days in the month view change this part. line 572-578 of events_functions.asp:

<td HEIGHT="20" WIDTH="14%" ALIGN="center" VALIGN="middle"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strDefaultFontColor %>">Mon</td>


- Alan
www.iamviet.com
www.calvsa.net
Snitz Resource



sorry, I am very new to asp. I did read your post carefully, but couldn't find where to paste the code in events_functions.asp

can you please give an example

Go to Top of Page

Aznknight
Senior Member

USA
1373 Posts

Posted - 22 April 2001 :  15:41:48  Show Profile  Send Aznknight an AOL message  Send Aznknight an ICQ Message
I wrote that you should "add to the bottom" of the events_functions.asp page if you wanted to do the translated monthnames.

- Alan
www.iamviet.com
www.calvsa.net
Snitz Resource
Go to Top of Page

fivealarm
Starting Member

USA
2 Posts

Posted - 22 April 2001 :  16:38:28  Show Profile  Visit fivealarm's Homepage
I was wondering how hard it would be to add a category option to the events page. There is already a FORUM_CATEGORY table in the database (I think?). By adding a category field in the FORUM_EVENTS table where the ID would be posted I could list a calendar for a particular category... it may at the same time be on a forum of the same category. Would this be hard? I already broke the forum trying to implement this... three hours down the drain :)

Here is what I made mine to look like...



Thanks


Edited by - fivealarm on 22 April 2001 16:53:25

Edited by - fivealarm on 21 June 2001 16:26:39
Go to Top of Page

Aznknight
Senior Member

USA
1373 Posts

Posted - 22 April 2001 :  17:15:34  Show Profile  Send Aznknight an AOL message  Send Aznknight an ICQ Message
It is a good idea, especially for busy events calendar.

If you want to do this, then you would also need to consider how to display the categories.

- Alan
www.iamviet.com
www.calvsa.net
Snitz Resource
Go to Top of Page

snicker
Starting Member

9 Posts

Posted - 23 April 2001 :  03:59:27  Show Profile
I am getting the following error with events_inc.asp

Events Microsoft VBScript runtime error '800a000d'

Type mismatch: 'DateToStr'

/events_inc.asp, line 174



Go to Top of Page

Morpheus73
Average Member

Denmark
597 Posts

Posted - 23 April 2001 :  04:15:51  Show Profile
quote:

It is a good idea, especially for busy events calendar.

If you want to do this, then you would also need to consider how to display the categories.

- Alan
www.iamviet.com
www.calvsa.net
Snitz Resource



Please, please do if you are able. - but maybe someone should make the group users mod first - once and for all. is this possible?

Go to Top of Page

bjlt
Senior Member

1144 Posts

Posted - 24 April 2001 :  12:36:43  Show Profile
a big problem:
on my installation, if you open the day but not a specific event, every body can edit/delet events. I left the default member add events permission.


question: can (private) events be deleted from database automatically after a setted days?

set recurring events?

prohibiting adding events for past days?

show private in diferent color?


Go to Top of Page

Aznknight
Senior Member

USA
1373 Posts

Posted - 24 April 2001 :  13:09:12  Show Profile  Send Aznknight an AOL message  Send Aznknight an ICQ Message
this was fixed earlier already. pretty simple uncomment of one line.

quote:

I didn't relize this but any member can delete another member's public event.

Here's the fix for it:

Around line 829 in events_functions.asp there are these two lines:

<%'If (mlev >= intAllowed) and (lcase(lcase(rs(strDBNTSQLNAME))) = lcase(Request.Cookies(strUniqueID & "User")("Name"))) or mlev >=3 Then%>
<%If mlev >= intAllowed or lcase(strDBNTUSerName) = lcase(rs(strDBNTSQLNAME)) Then%>


Now uncomment the first line and comment the second line, like this:

<%If (mlev >= intAllowed) and (lcase(lcase(rs(strDBNTSQLNAME))) = lcase(Request.Cookies(strUniqueID & "User")("Name"))) or mlev >=3 Then%>
<%'If mlev >= intAllowed or lcase(strDBNTUSerName) = lcase(rs(strDBNTSQLNAME)) Then%>


This will be fix in the zip as well.



- Alan
www.iamviet.com
www.calvsa.net
Snitz Resource
Go to Top of Page

Aznknight
Senior Member

USA
1373 Posts

Posted - 24 April 2001 :  13:11:55  Show Profile  Send Aznknight an AOL message  Send Aznknight an ICQ Message
quote:

question: can (private) events be deleted from database automatically after a setted days?

set recurring events?

prohibiting adding events for past days?

show private in diferent color?



All of these are great feature requests for next version of snitz celendar.

- Alan
www.iamviet.com
www.calvsa.net
Snitz Resource
Go to Top of Page

bjlt
Senior Member

1144 Posts

Posted - 24 April 2001 :  13:34:08  Show Profile
quote:

this was fixed earlier already. pretty simple uncomment of one line.

quote:

I didn't relize this but any member can delete another member's public event.

Here's the fix for it:

Around line 829 in events_functions.asp there are these two lines:

<%'If (mlev >= intAllowed) and (lcase(lcase(rs(strDBNTSQLNAME))) = lcase(Request.Cookies(strUniqueID & "User")("Name"))) or mlev >=3 Then%>
<%If mlev >= intAllowed or lcase(strDBNTUSerName) = lcase(rs(strDBNTSQLNAME)) Then%>


Now uncomment the first line and comment the second line, like this:

<%If (mlev >= intAllowed) and (lcase(lcase(rs(strDBNTSQLNAME))) = lcase(Request.Cookies(strUniqueID & "User")("Name"))) or mlev >=3 Then%>
<%'If mlev >= intAllowed or lcase(strDBNTUSerName) = lcase(rs(strDBNTSQLNAME)) Then%>


This will be fix in the zip as well.





sorry I didn't notice it. btw, have you updated the zip? I think I've downoaded it again.

Then I got this

Microsoft VBScript compilation error '800a040e'

'loop' without 'do'

/events_functions.asp, line 869

Loop

Go to Top of Page

Aznknight
Senior Member

USA
1373 Posts

Posted - 24 April 2001 :  14:11:04  Show Profile  Send Aznknight an AOL message  Send Aznknight an ICQ Message
No i haven't updated the zip since that fix.

have you uploaded it to your host.

I just took a look at the events_functions.asp page from the zip and there's a loop on line 861 not 869 and it has matching do properly.

- Alan
www.iamviet.com
www.calvsa.net
Snitz Resource
Go to Top of Page

bjlt
Senior Member

1144 Posts

Posted - 24 April 2001 :  14:46:38  Show Profile
uploaded here
http://www.yourchances.com/events_functions.txt

Go to Top of Page

Aznknight
Senior Member

USA
1373 Posts

Posted - 24 April 2001 :  15:10:18  Show Profile  Send Aznknight an AOL message  Send Aznknight an ICQ Message
looking at your file, i see that you've made some changes to it from the one on the zip. That's why the line numbers are different.

Also you're getting that error because you didn't comment the second if statement (the one in red).

quote:

Now uncomment the first line and comment the second line, like this:

<%If (mlev >= intAllowed) and (lcase(lcase(rs(strDBNTSQLNAME))) = lcase(Request.Cookies(strUniqueID & "User")("Name"))) or mlev >=3 Then%>
<%'If mlev >= intAllowed or lcase(strDBNTUSerName) = lcase(rs(strDBNTSQLNAME)) Then%>




- Alan
www.iamviet.com
www.calvsa.net
Snitz Resource
Go to Top of Page

Morpheus73
Average Member

Denmark
597 Posts

Posted - 24 April 2001 :  16:20:15  Show Profile
Has the option to split days into hours been discussed yet? - imean a feature either to post time of event or maybe even split the day up into a scheme with different hours set?

mph73


Morpheus73
Go to Top of Page
Page: of 12 Previous Topic Topic Next Topic  
Previous Page | Next Page
 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.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07