Here is my attached instructions. Anyone is welcome to improve upon them. I will not be able to since I am changing a lot in the way the calendar diplays things for my own custom set now.
NOTICE: The time does not seem to wrok properly for the 12:00 hour and selecting am. It will display pm for the link in the calendar. Could this be from the time zone thing implemented?
Maybe this would be a good opportunity to try a conversion to military time??
And while I am thinkin about it. Is there a way to take that date and time of the event posted in teh calendar to display in the actual thread post? I confuse myself sometime if I read something and forgot what day it was listed under in the calendar part.
dont' know if this has been discussed or not, but I think it would be a good idea to add a blank spot in the time selection table. Honestly, I have no idea what time I was born, as well as with holidays and stuff. Just a thought.
I agree that we need to enhace the calendar and it is already on my list of things to do, since Dave_L is quite busy to continue supporting this modification.
The first thing I was working on was to allow for a null time, which will make this an all-day-event (like your birthday or other related events). I think I have something good set up on my machine at home but haven't been able to post anything since I had problems with my isp.
The next thing on my list will be to create an edit screen which will allow you to edit the events and also allow for deletion of the events when the parent post is deleted.
I will keep you posted on the progress and once I have this finished then I can take up on requests
I posted a code change that will delete the event when the related post is deleted a while back in one of the earlier version threads. I'll have to search for it. It's pretty simple though.
Is the event timestamp more than one field? I forget but I don't think it is. I thought Dave_L mentioned something about condensing the time/date fields into a single timestamp. If that's the case then the null value wouldn't work. I guess it's a matter of choice though.
I recall the post of Dave_L regarding the merging of the two fields. At the moment there are two fields one for the date and one for the time, however I don't remember if the time is used. The null value on the time that I was thinking could in effect set the time to be 00:00:00 but also set a new field "AllDayEvent" to yes. this way we can cater for events that will occur at midnight but also get rid of the time if we have an all-day event.
There are also some other fields there for recurrance etc. Those need additional consideration in the future.
I had implemented most of the changes I had talked about, including getting rid of the extra time column, and replacing it with a flag indicating whether the time-of-day should be displayed, or only the date.
One problem with these changes is that they would not be downward-compatible with the current version of this hack, so an "altertable" would be needed.
I had started to add editing capability. It involved changes to a bunch of files (several scripts and several templates). Keeping all of these files up to date when doing version upgrades would have been a big headache.
And then there was the birthdate modification to this hack.
These problems, combined with the fact that I was getting behind on other work, are why I had to abandon work on this hack.
Nikko, if you want, I could give you the changed files, although the changes are incomplete, and they're not fully tested or documented.
I'm wondering if it would be better to make the calendar a separate add-on, rather than a hacked forum.
I wouldn't mind having a look at the implementation although come to think of it your suggestion concerning an addon is far better for future releases of the threads software. Even with the best comments in the code we will have problems.
If you want we can discuss it a bit in private and then come up with a better design. I have already implemented a calendar solution (needs tidying up though and documenting) which could in effect be modified to work as an addon.
Damn! Why does the day have to have only 24 hours and I have to sleep 5 of them
My opinion on the Calendar at this stage is that it would be best served to separate it from inclusion to UBB.Threads...for a few reasons.
1. Easier to install 2. Does not get touched with subsequent UBB.threads upgrades 3. Adds to front page much the same way the "WHO'S ONLINE" hack does...an addition to the template.
I might try messing with the 6.2 a bit, see if I can happily separate it.
I thought more on this and looked at some detail in the code, and it should be fairly easy (as a quick, not a perma thing) to separate out.
1. Copy the w3t_Posts table and name it w3t_EventData 2. DELETE FROM w3t_EventData WHERE B_Board not like 'calendar' (change this to keep only your calendar posts) 3. Copy the modified postlist.php and rename it eventlist.php 4. In the ubbthreads.tmpl write an "IF" statement that says if $Calendar='Y', then the <a href="{$config['phpurl']}/postlist.php?Cat=$Cat&Board={$forum[$c][$f]['Keyword']}"> url should point to eventlist.php instead of postlist.
This might be easier to install once this has had a few iterations with all of you...as we would have 4 separate php pages and a few tmpl pages...and the only UBBThreads page we would have to modify would be the ubbthreads.tmpl. Adding the w3t_Events would stay the same, and we would add a w3t_EventData in a fresh install.
I know I am missing something (passing $Calendar to ubbthreads is first in my head)...but I am sure this would be easy to figure out, and we could then modify this calendar add-on MUCH easier than trying to re-hack it every upgrade.
Actually you can still comment, etc on the above setup. I changed my test board tonight just to see how it would work.
But on the flip side...on my live board I copied postlist.php to eventlist.php - and I copied showflat.php to showevent.php. So I separated the PHP pages, made 2 new templates for them, and voila...I can customize the Events pages AND/OR upgrade UBBThreads - and they stay separate.
hmmm... might be best to start a new thread with the most current code in the first post - even I am a bit lost about which version to use, lots of changes on many pages
[]AllenAyres said: hmmm... might be best to start a new thread with the most current code in the first post - even I am a bit lost about which version to use, lots of changes on many pages [/]
I agree, I really need a Calendar for our forum. We have the calendar hack for our UBB Classic which we are about to migrate over to Threads. Our users love the calendar and couldn't live without it for too long.
I am really confused as to the status of this calendar, who's presently "leading" development of it and which is the most recent download.
A new thread with updated info in the first post would be great.
ExcelsiorDDZ I did not post it that I remember. Oh well, all I konw is that it works and I have not been touching it. See it at www.theddz.com in the gaming calendar section.
Just an FYI. There will be a calendar system in 6.4. It won't be this particular version, rather a standalone system. I won't say much more than that at this time because it's still under development.
ExcelsiorDDZ the first post on page 9 has the attached file that has the updated instructions you posted and yes it does work on your site as well as mine
[]AllenAyres said: hmmm... might be best to start a new thread with the most current code in the first post - even I am a bit lost about which version to use, lots of changes on many pages <img src="/threads/php/images/graemlins/tongue.gif" alt="" /> [/]
Hi,
can someone please paste a link here to a working calendar for 6.2.3
There are so many comments and differents ways described here that I am confused and don't know what to use.
Allens idea to make this a little bit clearer again is welcome
Download the original file in the first post. That should mostly work. I think that download includes the changes found in a later upload as when I reviewed them, I didnt have to make any changes.
If your dates are messed up - then apply my fix above.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.