Author |
Topic |
Caspoory
Starting Member
United Kingdom
18 Posts |
Posted - 07 March 2002 : 11:28:04
|
Dear All,
I have been using Snitz Forum for about 2-3 weeks! I have implemented the forum in two sites with different mods.
For both I looked around for the UK Date format, but didn't find a complete mod or complete instructions. So I though of doing it, document it, and then POST IT HERE!
Please feel free to use it and test it. I have implemented this twice and it worked like a charm.
I don't think I need to explain more. But if you have UK date format in your forum and the Events calendar is not displaying the date properly, then you are in the right place.
However, if you have not installed the events calendar yet, then you need to do so before coming here. I.e. Do read the rest, you HAVE to have the Alan's Events Calendar Mod installed first.
The following text is included in the readme.txt file in the downloadable zip.
UK Date format Mod for Snitz Events Calendar
- Based on the Events Calendar Mod by Alan Le aka Aznknight
This has been tested on Snitz Forum 3.3 on SQL 7.0 & Access. It has also been tested with the Event Icon Mod installed.
Please do not replace your files with the included files, if you do so please back up your files first.
Description: ============ This mod allow you to use UK date format on the calendar events. If your forum is setup to use UK format and the Events calendar is not behaving properly with dates and when editing events, then you are in the right place. It also fixes the bugs when editing events as well.
This Mod has not been tested on US date format.
Instructions: =============
1. Install the original Events Calendar Mod by Alan, and you can also install Azaniah's Event Icons Mod prior to installing this mod.
3. Edit the following files
- events_inc.asp - 2 changes (1 change of strToDate to chkDate in each) - event_functions.asp - 6 changes (PAY ATTENTION to each comment instructions') - pop_event.asp - 1 change (3 changes of strToDate to chkDate in it!)
IMPORTANT NOTE: Please do not replace your files with these files, and if you do so please back up your files first.
ALL Changes are marked with:
'#### Events UK Date format mod '#### Specific instructions with each comment
Download Mod: http://www.ipsuk.com/swap/events_uk_date_format.zip
A.Mosa : IPS Studio :: iNCiA
Edited by - caspoory on 07 March 2002 16:20:59 |
|
Caspoory
Starting Member
United Kingdom
18 Posts |
Posted - 07 March 2002 : 11:32:43
|
Can anyone tell me why the links are not working in my posts?
Is it disabled in this forum
A.Mosa : IPS Studio :: iNCiA |
|
|
Classicmotorcycling
Development Team Leader
Australia
2084 Posts |
Posted - 08 March 2002 : 01:14:15
|
Caspoory,
I have put this mod on, and it works great. Just had to make some minor changes to suit me, but about time someone was clever enough to do it (I know I am not). Good work..
By the way, I have had no issues with your links in your posts...
Regards,
Webmaster @ Classic Motorycling Australia Classic Motorcycling Australia |
|
|
Caspoory
Starting Member
United Kingdom
18 Posts |
Posted - 08 March 2002 : 04:16:13
|
quote:
Caspoory,
I have put this mod on, and it works great. Just had to make some minor changes to suit me, but about time someone was clever enough to do it (I know I am not). Good work..
By the way, I have had no issues with your links in your posts...
Regards,
Webmaster @ Classic Motorycling Australia Classic Motorcycling Australia
Thanks,
Yes about the links, I edited the message and deleted the url tags (forum tags) from the download link and that solved it all!!!!! Still have the tags in the signature though
A.Mosa : IPS Studio :: iNCiA |
|
|
XavierSlater
Junior Member
United Kingdom
137 Posts |
Posted - 16 April 2002 : 13:10:23
|
Have implemented this MOD, and now it wont save new events to the database. I have looked at the database, it will save them to the DB but not display them.
I am puzzled.
Edited by - XavierSlater on 16 April 2002 13:20:44 |
|
|
hellind
Junior Member
Singapore
123 Posts |
Posted - 16 April 2002 : 13:58:29
|
Something Else regarding Events Calender
In the events calender, a user is able to delete events added by another user. Is this standard? How do I implement where the user can only modify/delete his own added events?
Help Appreciated.
|
|
|
Andy Tate
Starting Member
1 Posts |
Posted - 17 April 2002 : 19:45:27
|
Hours of Fun!
I too have installed the UK Date Mod. New events do not show up.
The three files in the download give instructions for altering the code, but the code already appears to have the modifications made.
I grow tired. Please put me out of my misery.
To Infinity and Beyond!!! Or maybe just to the bottom of the street. |
|
|
bengriffiths
New Member
United Kingdom
51 Posts |
Posted - 18 April 2002 : 15:47:11
|
its adding them in format YYYYDDMM when it should be YYYYMMDD...
will look at this now.....
ok, heres the problem, in EVENTS_FUNCTIONS.ASP right at the top, change:
function UKDateToStr(dtDateTime) UKDateToStr = year(dtDateTime) & doublenum(Day(dtdateTime)) & doublenum(Month(dtdateTime)) & doublenum(Hour(dtdateTime)) & doublenum(Minute(dtdateTime)) & doublenum(Second(dtdateTime)) & "" end function
to:
function UKDateToStr(dtDateTime) UKDateToStr = year(dtDateTime) & doublenum(Month(dtdateTime)) & doublenum(Day(dtdateTime)) & doublenum(Hour(dtdateTime)) & doublenum(Minute(dtdateTime)) & doublenum(Second(dtdateTime)) & "" end function
(Note the day month switch...) Now it appears somewhere else also, but I don't think its used.
ben http://www.fiatforum.com
Edited by - bengriffiths on 18 April 2002 15:59:14 |
|
|
yamba
Starting Member
1 Posts |
Posted - 22 April 2002 : 12:17:41
|
Where can I download the standard verion of the mod? I couldn't find it anywhere. Please help!!!
Thanks
|
|
|
macho
Junior Member
Denmark
150 Posts |
|
Ra1ney
Junior Member
United Kingdom
113 Posts |
Posted - 06 May 2002 : 15:27:37
|
Worked like a charm!!! Thank you bengriffiths
quote:
its adding them in format YYYYDDMM when it should be YYYYMMDD...
will look at this now.....
ok, heres the problem, in EVENTS_FUNCTIONS.ASP right at the top, change:
function UKDateToStr(dtDateTime) UKDateToStr = year(dtDateTime) & doublenum(Day(dtdateTime)) & doublenum(Month(dtdateTime)) & doublenum(Hour(dtdateTime)) & doublenum(Minute(dtdateTime)) & doublenum(Second(dtdateTime)) & "" end function
to:
function UKDateToStr(dtDateTime) UKDateToStr = year(dtDateTime) & doublenum(Month(dtdateTime)) & doublenum(Day(dtdateTime)) & doublenum(Hour(dtdateTime)) & doublenum(Minute(dtdateTime)) & doublenum(Second(dtdateTime)) & "" end function
(Note the day month switch...) Now it appears somewhere else also, but I don't think its used.
ben http://www.fiatforum.com
Edited by - bengriffiths on 18 April 2002 15:59:14
|
|
|
stwilson
Junior Member
USA
385 Posts |
Posted - 10 June 2002 : 01:06:28
|
I recently moved my host to a UK host and am having problems with my calendar now. I applied this fix but still no go. Take a look.
What would cause this?
STW |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 10 June 2002 : 06:23:12
|
That's definitely a problem with dates. I've dealed with that situation in another Snitz user forum.
One thing you should do is change your StrToDate function, in inc_functions.asp, by this one: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=27320#129371
Also you'll need to navigate through the code and change just about every date handling instruction, since day and month are always switched. If you want I can send you the files I have, after correcting the problems in the other user's forum (I don't used the calendar myself...). Beware that I cannot offer further help on this. This was a one time thing and I'm not a specialist in the mod, altough I managed to fix it.
------------------------------------------------- Installation Guide | Do's and Dont's | MODs |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 10 June 2002 : 07:03:42
|
you should be able to download my forum, and use the events* files from that, they are designed to work on a uk server. You will need to apply the strTodate fix mentioned by ruirib, but you should be able to do a straight swap of the eventfiles from my download
|
|
|
blackinwhite
Average Member
Turkey
657 Posts |
Posted - 10 June 2002 : 08:11:12
|
from my experience, I can say that HuwR's code works without any problem with non-US dates.
|
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 10 June 2002 : 17:14:22
|
I would hope so, since I don't use US dates
|
|
|
Topic |
|