Hi all, here's the beta Calendar upgrade, the old version was on this thread
Please note that this is a beta... the calendar is working fine for me, but I had to play around with the installation instructions a lot, and there is a chance for error.
Hold on to your old files, backup your database, etc etc... you may want to hold off from installing this in a production installation until some other users give us some feedback.
Max
[PS - oops, I forgot to clarify, at the end of the installation instructions, that you should also upload your new showthreaded.php ]
To really clean up this whole installation of the calendar one could attach the new files created to save time and then we simply would have to do a few basic steps to install this thing. Templates could also be made. I have updated the instructions a bit for those who want a simpler install and attach the neccesary files that are created which take alot of the work. Great work Max looks great.
Agreed Omega, but Infopop has objections to posting complete modified scripts. That's what I did when I released V2, and Allen was kind enough to change it to a "differential" version.
Ah so things are different that UBB for UBBThreads???
When one downloads a hack at UBBDEV.com the file contains the new files which are not normally a infopop file. I did not include modified UBBThreads files. I just included in the above post a modified install file and addevent.php and newevent.php. These are not infopop files. I figured from the rules I have read this is allowed. It is done in the UBB forum all the time. Oh well if I am mistaken my bad. Download any hack over at UBBDEV and the non infopop files are included in the distribution. I just thought this would save people time hacking as I installed your hack and it works good. It took along time creating addevent.php and newevent.php hense my post above.
Allen: If I am mistaken on the rules simply remove my attachment. The three files included in the attachment are an updated install and the two files created which are addevent.php and newevent.php
Well based on your thinking then remove the attachment. Because any modified file even hacked and discombobulated contains still IP work. Weird the rules must have changed in the last 6 months or rather stricter in enforcement . Oh well my bad.
Hey Max, just a question or two. My users have been dying without a calendar, so I really want to get it running. But knowing it is still in the working stages, how easy is it going to be to upgrade to newer versions/fixes you come out with?
I just wonder because it is a very in-depth hack, and just wondering what it will take to make any changes, or if your updated instructions for the new releases will specifically address upgrade issues?
It shouldn't be too hard to upgrade once you install it: I don't anticipate any database changes, and if you look at it, the only file that's changing from the standard code is postlist.php (the rest of the files are new). So re-installing an upgraded version shouldn't be particularly hard.
Hey max, or anyone? I installed the hack, everything works great, except my posts for new events don't show up in the calendar itself, only below it as a post What could be the problem?
I had the same problem -- not showing up in the calendar, but in the list. Before I had a chance to really pour over it and see what I missed, omegatron posted the attachment above, I used that to check what I'd missed, and there was a whole section I missed in addevent I believe. I really wish I could tell you what it was, but I don't think I have a copy of what I had before I fixed it. I'll look though, I have Beyond Compare set to automatically backup things I change. Heaven knows I don't ever remember.
I used omega's attachment and uploaded the two add*.php files and it works fine now I followed those instructions perfectly I thought and went very slow. Hmm... but anyway, its working
I thought I followed them pretty closely too. There is either an error in the original instructions, or something that's confusing and caused me to put it in the wrong spot.
I'm just wondering if any existing hacks had originally edited the files that were used to create those two new ones.. don't see anything missing yet, but I can't remember half the hacks I installed
Oh yay! I just got tingles, I'm so happy. haha j/k
But for real, thanks. It is growing fast, but threads is keeping up just fine. A few issues to work out with my header and everything will almost be set. Oh, and IIP 5.0 will be nice too
Max, or Dave, any thought on making this work for a pal box Basically, just a box that contained a mini-calendar with numbers, but the days that had something planned those boxes are a different color and when clicked on take you to the associated event?
Pappy, see the notes in the instructions starting on line 14. When you delete a post, it does get deleted from the main w3t_Posts table as usual, but not from the new "Events" table. The idea is that unless you're deleting hundreds of events, I judged that the tradeoff between modifying an additional script and just leaving a few "dead" entries in the Events database wasn't worth it.
Having said that, see the "Additional note" in the instructions starting on line 30 - if you really want to delete entries in the Events database, you could adapt/update from this old thread
This prints the starting point for today's cell. It shows up in "darktable" colors, and other days show up in "lighttable" colors. You can either modify these in the stylesheet you use, or you can modify the above lines to your liking. The $d prints today's day of the month, so you could replace it with <font=red>$d.</font> or something like that.
One suggestion though. It would be nice to post an event one time with a beginning and end date one time instead of having to post it all say 3 days. An example lets say would be a 3 day convention. If one wants to post this it would have to be posted 3 times on every day instead of one post which would then fill the corresponding days correctly on the calendar.
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.