Now I want to preface this by saying I did NOT write the base version of this calendar. I set it up - it worked, so I went about hacking, rehacking, and deleting, and rewriting many pieces of this thing to get it to work the way I wanted. <br /> <br />[:red] PLEASE DO NOT CREATE A USER NAME [/] - it is not needed to play with this test version of the calendar. I have this calendar open to anyone wanting to screw with it...you can add and delete items. The stylesheet is the base sheet for my board... <br /> <br />http://www.bladekeep.com/forum/ubbthreads.php <br /> <br />That URL goes to a TEST copy - it is not the live version I am running (that is locked away to members) <br /> <br />Features: <br /> <br />- This is standalone from ubbthreads, and requires only ONE change in your ubbt_inc.php (a link to the calendar) <br />- Should be installed in the ubb directory (ie /ubb/calendar/FILES) <br />- The version I am running is locked down to members. You input the NAME of the board you want associated with the calendar (mine is "members") and anyone who has read access to that board has access to read the calendar. Otherwise they get the unauthorized page... <br />- The way it is hard-coded, only Administrators and Moderators have access to WRITE to the calendar. <br /> <br />Other Features: <br /> <br />- I took out the Event "end time" - as it got in my way...but it is there to use. <br />- The event data all writes to a SEPARATE table in your setup (my table is named ssb_events) - but this table does reside in your UBBTHREADS database (you need to create it). <br />- Calendar does read the stylesheet the forum member has selected, and uses it. Requires you to add one or two styles into your stylesheet. <br />_________________________________________________ <br /> <br />I didn't know if anyone would care...figured I would toss this out here. Max Fisch's calendar is much cooler if you ask me...the only downside is that you cannot upgrade UBBTHREADS and keep your calendar intact. <br /> <br />With this little calendar, I can upgrade my UBBThreads and the calendar is not touched...nor does the calendar encroach on any UBBTheads files. The ONLY UBB file I changed was the ubbt_inc.php - and that was to include a link in the HEADER of each page...(as you can see on the test calendar). <br /> <br />Anyone has any questions or comments let me know...will answer what I can.
#214957 - 04/09/0204:09 PMRe: Another Calendar hack - version 1.1
[Re: Intel -*RW*-]
AllenAyres
I type Like navaho
Registered: 03/10/00
Posts: 25434
Loc: Texas
Nice work Medar, thanks for sharing []/forum/images/icons/smile.gif[/] <br /> <br />I cannot think of questions as of yet, but I am sure others will be along shortly []/forum/images/icons/smile.gif[/]
#214959 - 04/10/0209:58 AMRe: Another Calendar hack - version 1.1
[Re: Pajarito]
XanthViper
Journeyman
Registered: 04/27/00
Posts: 116
Loc: San Diego, CA
Yes this is the bomb! Considering that I agree with you on Max's calendar and it's use, it is deeply tied in to UB²T, which is a downfall considering the new release coming out. Looks like I will be downloading this, installing, and removing my old calendar I had set up. Thanks! []/forum/images/icons/grin.gif[/]
_________________________
i run sdstreetracing.com and streetracing.com
#214960 - 04/10/0212:21 PMRe: Another Calendar hack - version 1.1
[Re: Intel -*RW*-]
WrĊith
Enthusiast
Registered: 01/31/02
Posts: 310
Loc: California, USA
That actually looks really good. You seem to have addressed the main concern that I had with Max's hack which was the extensive modification to the UBBThreads files. I was really reluctant to install the hack because of the pending new release. By making it a separate add-in, I'm much more comfortable adding it to my board. []/forum/images/icons/smile.gif[/] <br /> <br />Now, if we can just get Dave to tie his IIP into it. []/forum/images/icons/smile.gif[/] <br /> <br />Any idea on when we can actually download the files?
#214961 - 04/11/0208:35 AMRe: Another Calendar hack - version 1.1
[Re: Intel -*RW*-]
bmh
Power User
Registered: 10/23/00
Posts: 77
Loc: Australia- Melbourne
Cool Medar , <br />just asking about the attachment ?? are u going to attach this hack here or just to give as idea about what u have []/forum/images/icons/grin.gif[/] <br /> <br />hope i can get copy of that file ... it will be kind of u ... <br /> <br />thanks alot for great works <br />BMH
GREAT JOB <br /> <br />Comments: <br /> <br />1/ Bug: Me as a non member and without write access: I could delete an entry with "delete" in the popup window. I believe this to be an error. <br /> <br />2/ Suggestion: Is it possible to have a birthday entry field in the user profiles that is automatically inserted in the calendar? <br /> <br /> <br />PS: Whow, do you mind me using your leaves background for my own board from within some stylesheet? <br /> []/forum/images/icons/rolleyes.gif[/]
Edited by caymuc (04/12/0203:22 AM)
_________________________
Carl Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')
OK, finally finished a quick and convoluted README - and linked the download to my signature here. <br /> <br />Caymuc: <br /> <br />1. You are correct, I really dumbed down the test version...anyone could get in there and do anything. Normally (and with the downloadable version), only Moderators or Administrators can WRITE. Read access depends on what board you tie the calendar into... <br /> <br />2. Birthday entries...not at this time. Reason being? This is completely separate from UBBTHREADS (it creates one table for the calendar data)...and therefore does not read profile data. It might be hacked to do so...it's an interesting thought! <br /> <br />This thing is very basic - I am not a php programmer...I just have the talent to be able to read something and figure out how to change it. Hence this addon, heh! So anyone that has any improvements or ideas, I would love to incorporate them. <br /> <br />Leaves? Use em!
Hi, <br /> <br />I prefer this calender layout but I could not get your hack working. During the query an error is detected. (It is the error on line 60 of classes.php). <br /> <br />Maybe the problem is that there is a search for "type" but a "type"field has not been installed by the install.php previopusly... Just guessing. <br /> <br />I also found code that uses $user[U_Status] inbstead of $user['U_Status'] - but I don't know whether that is an error. I just noticed that Scream had changed that in his scripts. <br /> <br />Anyway, I am wondering whether anybody got that script working. <br /> <br />
_________________________
Carl Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')
Sorry Carl - I fixed the install script to include the TYPE field and properties. You might want to try it again if you are still interested. <br /> <br />In terms of line 60 - it is reading the config.php on that line and looking for db_type = 1 (which means this is a MySQL database). If it does not find that...it could error. Let me know if that is still occurring.
Thanks fo the update... TYPE is in now. <br /> <br />But the error still occurs. <br /> <br />I think that the error means, the Database check was positive (MySQL) but the $select string produced an error. <br /> <br />I wonder why it works with your calender, not mine... <br /> <br />(see the error on our forum, follow the link below. <br />To see what error it is, I gave them numers. This one is No 3 []/forum/images/icons/wink.gif[/] ) <br /> <br />Greetings from Berlin
_________________________
Carl Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')
OK...version 6.0 and the new authentication threw me for a small loop until I figured it out, but I "think" this should now work.<br /><br />Items I removed but are fairly easy to hack out:<br />1. Calendar not tied to a specific board KEYWORD. This was causing confusion and a few redundant queries. Which means the calendar is publically viewable (most people wanted it that way)<br />2. TYPE field has been removed...it is pretty easy to add/remove fields, and this is a field I had added for my personal use. Most did not need it.<br /><br />I linked this little calendar add-on in my signature...please give me a shout if you download and install it, would love to hear any issues, or that you have it working <img src="/forum/images/icons/tongue.gif" alt="" />
It allows you to name the table anything you would like (I named mine ssb_calendar)...you could essentially stick with the UBB Theme and name your table w3t_calendar.<br /><br />Need to name it before running install.php though!
Probably needed, yap. Will do so. <br /> <br />Just did, heh...have not tried the config.php file with the comments added in, but it should work. Just slashed // the comments out. <br /> <br />On another note...I never thought about tying in the basic configs to main.inc.php and ubbt.inc.php - but I suppose this is possible. Will probably do this in the next week or so.
#214977 - 05/02/0210:01 PMRe: Another Calendar hack - version 1.1
[Re: Intel -*RW*-]
AllenAyres
I type Like navaho
Registered: 03/10/00
Posts: 25434
Loc: Texas
Looking good Medar <img src="/forum/images/icons/smile.gif" alt="" /><br /><br />Tying the basic config into the main and ubbt .inc's should save you some support questions too <img src="/forum/images/icons/smile.gif" alt="" />