I would love to see this happen myself. And I have quite a few good ideas for him. Having a calendar in the forums is so much more convenient than an external program doing it.
I have been working on porting this myself (and making quite a mess I must say ).
I think what needs to happen is to create new templates for any "calendar" forums, and load those templates from newpost, addpost, etc.. The templates would be something like addpost_moderated.calendar.tmpl, newpost.calendar.tmpl, etc. They would be basically the same as their counterparts, but they would contain all of the modified HTML that the calendar mod incorporates.
Then inside of the newpost.php, addpost.php, etc you would have some logic that says if $Calendar == Y then load the proper template.
We would also love to see a Calendar add-on for ubb.threads 6.x
One of our client sites currently running on ubb.classic 6.2 has the Calendar hack developed over at ubbdev.com ... our users love it, and we would like to see a similar implementation once we migrate to threads.
Not sure if anyone is currently working on this or not, but I have been taking a stab at it.
I think I am fairly close, but I am stuck on one piece of code... It is the part in postlist.php that actually displays the calendar.
Now - I can insert this code directly into postlist.php just like on 5.5.1, however this causes the calendar to be displayed before the tool and navbar. So I assume that most of this code needs to appear in a new template file. I have already created a new template file for the "Hidden Calendar" view, and it works fine. However the "show calendar" view is causing me a real headache since I cant just paste the old code into a template in the proper place (it prints some ugly PHP errors).
I have attached the code. I think I am just having trouble figuring out how to accomplish what this code does from using both postlist.php and a template file.
Any pointers would be much appreciated. Also, If anyone else is currently working on this, perhaps we could work together. Shoot me an ICQ (2910712) or e-mail me.
I don't know if you want to edit your code out in the post above - because your first attachment was fine - all you need do is view source to get the code - something I didn't realise until the other day
Editing the message, will also return this thread to a decent width
Sorry for the long delay... I'm working on this, and making good progress.
I've got it working at this point, but I cut a few corners... instead of developing individual templates for the calendar, I just embedded the whole thing in the files. Less flexible, but easier to manage.
I also have replaced newpost.php and addpost.php with newevent.php and addevent.php , in order to avoid slowing down the regular posts with unnecessary code, and avoiding a million IF statements.
But I did cut out some minor features - more on this later.
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.