Previous Thread
Next Thread
Print Thread
Rating: 5
Page 3 of 4 1 2 3 4
Joined: Aug 1999
Posts: 184
Member
Member
Offline
Joined: Aug 1999
Posts: 184
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.

Attachments
67560-excelcalendar62instructs.txt (0 Bytes, 115 downloads)


Silly ricer.. Wings are for airplanes!
Sponsored Links
Joined: Aug 1999
Posts: 184
Member
Member
Offline
Joined: Aug 1999
Posts: 184
Now I just need to get the actual post display the date and time of the event instead of JUST the calendar. Anyone already do this?


Silly ricer.. Wings are for airplanes!
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
is it a 'members only' forum at your site? I'd love to see what you've done with it so far


- Allen wavey
- What Drives You?
Joined: Aug 1999
Posts: 184
Member
Member
Offline
Joined: Aug 1999
Posts: 184
Sign up and I will toss you access. It just a template change more or less to accomodate the reason the calendar is there.

www.theddz.com


Silly ricer.. Wings are for airplanes!
Joined: Aug 1999
Posts: 184
Member
Member
Offline
Joined: Aug 1999
Posts: 184
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.


Silly ricer.. Wings are for airplanes!
Sponsored Links
Daine #229558 02/11/2003 1:55 AM
Joined: Apr 2002
Posts: 610
Code Monkey
Code Monkey
Joined: Apr 2002
Posts: 610
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.

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
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


Nikos
Hal_dup2 #229560 02/11/2003 10:02 AM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
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.

sjsaunders #229561 02/11/2003 10:13 AM
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
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.


Nikos
Hal_dup2 #229562 02/11/2003 10:19 AM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Sounds good.

I believe Dave intended on stripping those other fields out for the time being and then add them back as needed.

Sponsored Links
sjsaunders #229563 02/11/2003 10:47 AM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
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.

joeuser #229564 02/11/2003 11:55 AM
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Dave (L)

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


Nikos
Hal_dup2 #229565 02/11/2003 2:31 PM
Joined: Mar 2000
Posts: 528
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 528
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.

joeuser #229566 02/11/2003 3:11 PM
Joined: Mar 2000
Posts: 528
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 528
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.

Thoughts?

Joined: Aug 1999
Posts: 184
Member
Member
Offline
Joined: Aug 1999
Posts: 184
Seperating it would also remove the ability for visitors to comment on anything put there I think.

Personally I have come to like the ability to reply to a post.


Silly ricer.. Wings are for airplanes!
Franky #229568 02/12/2003 2:32 AM
Joined: Mar 2000
Posts: 528
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 528
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.

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
do i dare install this.... with the warning ?

Kelly #229570 03/24/2003 4:46 AM
Joined: Aug 2002
Posts: 218
Member
Member
Offline
Joined: Aug 2002
Posts: 218
Any news about this? Has anyone now a working calendar and a 100% documentation?

edr #229571 03/24/2003 5:37 AM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
This works on 6.2.3

edr #229572 03/24/2003 5:38 AM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
This works on 6.2.3 you just need to sift through and find any updates you mightr like. Try Nikos's version.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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


- Allen wavey
- What Drives You?
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Please

Joined: Jun 2002
Posts: 15
Newbie
Newbie
Offline
Joined: Jun 2002
Posts: 15
[]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.

Rob

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Try downloading and installing the one posted by EzcelsiorDD on page 9

Joined: Aug 1999
Posts: 184
Member
Member
Offline
Joined: Aug 1999
Posts: 184
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.


Silly ricer.. Wings are for airplanes!
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
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.


UBB.threads Developer
Sally #229579 04/13/2003 1:33 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369


Good work.


Daine #229580 04/13/2003 1:34 PM
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Dunno what it is, but that dancing banana just freaks me out!


UBB.threads Developer
Sally #229581 04/13/2003 3:24 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
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

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
I only have 6 pages.....

gailg #229583 04/13/2003 5:30 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
6 pages there are 11 pages to this thread. LOL

You have your thread view set to a higher number. Okay lets try this one Michael it should be the 81st post.

I do beleive top of page 5 if you have yours set to 20 posts per page. I have mine set to 10.

Sally #229584 04/16/2003 1:45 PM
Joined: Oct 1999
Posts: 282
Enthusiast
Enthusiast
Offline
Joined: Oct 1999
Posts: 282
This is too much! Two great news on one day.

Subforums and calendar. I still can't believe it

Sally #229585 04/16/2003 2:45 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
[]Scream said:
Dunno what it is, but that dancing banana just freaks me out! [/]

He's my favorite


- Allen wavey
- What Drives You?
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I won't tell you what my users say about the little bananna man.

Sally #229587 04/16/2003 10:34 PM
Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
Awesome, any time frame for 6.4? mid summer maybe?

Sally #229588 04/17/2003 9:49 PM
Joined: Jun 2002
Posts: 15
Newbie
Newbie
Offline
Joined: Jun 2002
Posts: 15
[]Scream said:
There will be a calendar system in 6.4.[/]

Great news! Looking forward to all the details as well as 6.4b

Rob

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
I had to make one mod for it to print hte time properly:

$tm += ($user['U_TimeOffset']*3600);
$h = strtolower(strftime ("%I", $tm));
$m = strtolower(strftime ("%M", $tm));
$mer = strtolower(strftime ("%p", $tm));

in postlist_event (in two places). The convert_time was returning -1.

Joined: Aug 2002
Posts: 218
Member
Member
Offline
Joined: Aug 2002
Posts: 218
[]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

edr #229591 05/14/2003 9:09 AM
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
http://www.viperalley.com

I have it working under Calendar of Events...

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.

Shouldnt take more than an hour.

gailg #229592 05/15/2003 9:01 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Would converting/importing the events here to the new calendar in 6.4 be relatively painless?


- Allen wavey
- What Drives You?
Page 3 of 4 1 2 3 4

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)