Cyricx
10-03-2003, 10:00 PM
Okay, I'm fairly new to coding period, never done any before this :)
So the reason I'm putting this in the beta hack is I may have a line or two added in that isn't needed or there just may be a better way to do one of the modifications, as I basically stumbled and bumbled along til I found something that worked ;)
I've wanted to know how to do this for a long time but could never find where anyone had a "how to", so here is my meager attempt at one. :)
What does this hack do? -
This hack allows you to add a field for Meeting Place or Time or your heart's delight (I used Game) to the calendar. The instructions are written in such a way that you can do just one of the three modifications, or you can do all three. I doubted that very many would do all three so I have listed the modifications seperately in the file. If there are a few that want all three, I'll do up some quick instructions on how to do all 3 modifications at once. :)
Here is an exerpt from the install file -
These are the three modifications I will be detailing. The Instructions are
written in such a way that you can install only one of these, or you may
install all 3.
-1- Adding Time, AMPM, and Timezone fields to your calendar. This is an
integer field, and 2 short text entries.
-2- Adding the "Meeting Place" field to your calendar. This is a long text
(up to 254 characters) entry.
-3- Adding the "Game" field to your calendar. This is a short text entry.
You may use the "Find" feature of your favorite text editor and search for
-1- or -2- or -3- to skip directly to the one you wish to install.
Queries to run: 1 per modification (up to three)
Files to Edit: 1 (/forums/calendar.php)
Templates to Edit: 2 (calendar_enterevent, calendar_daybits)
Each modification has 10 steps to do in the calendar.php. The 9th step is ONLY put in if you have Session's Calendar / Thread Integration Hack located here -
https://vborg.vbsupport.ru/showthread.php?s=&threadid=52968
I'm workin to try to figure out how to do the time in such a way that members will see the time of the event according to their timezone. Once I can figure that out (may be a few months ;) ) or if anyone knows how and would like to point the way (which I'd be most grateful for), I'll create a new version of this hack for that. :) In the meantime, the -3- mod, was my bandaid to tide us over. :)
If these instructions are easy enough for everyone to follow and I don't have any unnessecary code then I'll get this moved to the full releases, but would prefer to double check with those more experienced first. :)
Anyway, let me know what you think, if you have any problems I'll try my best to assist.
A live demo can be scene at http://www.guardiansoffire.com (http://www.guardiansoffire.com/)
Day Info - http://www.guardiansoffire.com/forums/calendar.php?s=&action=getinfo&eventid=498
Thread created by Session's hack - http://www.guardiansoffire.com/forums/showthread.php?s=&threadid=7897
Thanks to Asterix, there are some screenshots in the replies below. :)
So the reason I'm putting this in the beta hack is I may have a line or two added in that isn't needed or there just may be a better way to do one of the modifications, as I basically stumbled and bumbled along til I found something that worked ;)
I've wanted to know how to do this for a long time but could never find where anyone had a "how to", so here is my meager attempt at one. :)
What does this hack do? -
This hack allows you to add a field for Meeting Place or Time or your heart's delight (I used Game) to the calendar. The instructions are written in such a way that you can do just one of the three modifications, or you can do all three. I doubted that very many would do all three so I have listed the modifications seperately in the file. If there are a few that want all three, I'll do up some quick instructions on how to do all 3 modifications at once. :)
Here is an exerpt from the install file -
These are the three modifications I will be detailing. The Instructions are
written in such a way that you can install only one of these, or you may
install all 3.
-1- Adding Time, AMPM, and Timezone fields to your calendar. This is an
integer field, and 2 short text entries.
-2- Adding the "Meeting Place" field to your calendar. This is a long text
(up to 254 characters) entry.
-3- Adding the "Game" field to your calendar. This is a short text entry.
You may use the "Find" feature of your favorite text editor and search for
-1- or -2- or -3- to skip directly to the one you wish to install.
Queries to run: 1 per modification (up to three)
Files to Edit: 1 (/forums/calendar.php)
Templates to Edit: 2 (calendar_enterevent, calendar_daybits)
Each modification has 10 steps to do in the calendar.php. The 9th step is ONLY put in if you have Session's Calendar / Thread Integration Hack located here -
https://vborg.vbsupport.ru/showthread.php?s=&threadid=52968
I'm workin to try to figure out how to do the time in such a way that members will see the time of the event according to their timezone. Once I can figure that out (may be a few months ;) ) or if anyone knows how and would like to point the way (which I'd be most grateful for), I'll create a new version of this hack for that. :) In the meantime, the -3- mod, was my bandaid to tide us over. :)
If these instructions are easy enough for everyone to follow and I don't have any unnessecary code then I'll get this moved to the full releases, but would prefer to double check with those more experienced first. :)
Anyway, let me know what you think, if you have any problems I'll try my best to assist.
A live demo can be scene at http://www.guardiansoffire.com (http://www.guardiansoffire.com/)
Day Info - http://www.guardiansoffire.com/forums/calendar.php?s=&action=getinfo&eventid=498
Thread created by Session's hack - http://www.guardiansoffire.com/forums/showthread.php?s=&threadid=7897
Thanks to Asterix, there are some screenshots in the replies below. :)