UBB.Dev
Posted By: paulf Calendar Hack? - 05/06/2002 7:36 PM
Has anyone tried porting Max Fisch's wonderful calendar add-on to 6.0?
Posted By: ExcelsiorDDZ Re: Calendar Hack? - 05/06/2002 10:07 PM
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.
Posted By: paulf Re: Calendar Hack? - 05/07/2002 1:13 AM
If anyone accomplishes this, please post the diff output!
Posted By: paulf Re: Calendar Hack? - 05/08/2002 7:53 PM
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.

Am I on the right track here?
Posted By: JustDave Re: Calendar Hack? - 05/08/2002 8:06 PM
Sounds like you are
Posted By: AllenAyres Re: Calendar Hack? - 05/10/2002 4:58 AM
Sounds like it to me as well
Posted By: AllenAyres Re: Calendar Hack? - 06/06/2002 10:03 PM
*bump*

any news on this one now? it's time
Posted By: paulf Re: Calendar Hack? - 06/07/2002 9:13 PM
I had a somewhat working version of this with 6.0.br2.

I communicated with Max though, and he said he was planning on updating the patch himself once v6 was final.
Posted By: JustDave Re: Calendar Hack? - 06/07/2002 9:16 PM
That's good news

Many will be glad to see this back.
Posted By: RTM_dup1 Re: Calendar Hack? - 06/08/2002 4:17 PM
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.

Rah rah rah

Rob
Posted By: msula Re: Calendar Hack? - 06/11/2002 12:44 AM
I really need a calendar... so I'm patiently awaiting
Posted By: paulf Re: Calendar Hack? - 06/14/2002 10:04 PM
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.

Thanks!
[][email protected][/]

Attached File
49969-calendar.txt  (192 downloads)
Posted By: paulf Re: Calendar Hack? - 06/14/2002 10:06 PM
Yuck... attaching that file really blew the heck out of the text. I will just paste this as inline text. Sorry for the long post:

Posted By: Ian_W Re: Calendar Hack? - 06/14/2002 10:16 PM
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

Regards,

Ian
Posted By: paulf Re: Calendar Hack? - 06/14/2002 10:33 PM
heh. k. done. Sorry about that.
Posted By: paulf Re: Calendar Hack? - 06/18/2002 6:46 PM
Has anyone made any further progress on converting the calendar code into templates for v6?
Posted By: armyocs Re: Calendar Hack? - 06/21/2002 10:04 PM
I would definately like this too, anyone manage it?

Much appreciated,

-Jason
Posted By: omegatron Re: Calendar Hack? - 07/05/2002 5:00 AM
I would like to see someone convert Max Fisch's Calendar Hack as well. I have been waiting patiently as well
Posted By: msula Re: Calendar Hack? - 07/05/2002 5:12 AM
I am also still waiting
Posted By: Max Fisch working on it - 07/06/2002 8:02 AM
Hi guys,

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.

Give me a few days, the ETA is July 16th.

Regards,
Max


Posted By: sadgit Re: working on it - 07/07/2002 6:43 PM
Godd Stuff Max, thanks for the update
Posted By: AllenAyres Re: working on it - 07/07/2002 9:52 PM
yes, thanks for the update
Posted By: paulf Re: working on it - 07/09/2002 11:43 PM
wahoo! Thanks Max!
Posted By: RTM_dup1 Re: working on it - 07/10/2002 2:20 AM
posted by Max Fisch:
Sorry for the long delay... I'm working on this, and making good progress.
(snip)
Give me a few days, the ETA is July 16th.



Great stuff Max , thank you very much for the update.

RTM
Posted By: Max Fisch New version released in beta - 07/13/2002 6:55 PM
Here it is!
Beta Calendar v3
Posted By: Max Fisch Re: working on it - 07/13/2002 6:56 PM
You'll be pleased to see that I didn't post the entire scripts this time around
Posted By: AllenAyres Re: working on it - 07/14/2002 7:24 AM
heheh.. thanks for the work Max, I plan to give it a shot tomorrow night if possible
© UBB.Developers