php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#214956 - 04/09/02 03:29 PM Another Calendar hack - version 1.1
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
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.

Top
#214957 - 04/09/02 04:09 PM Re: Another Calendar hack - version 1.1 [Re: Intel -*RW*-]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
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[/]
_________________________
- Allen wavey
- What Drives You?

Top
#214958 - 04/10/02 03:51 AM Re: Another Calendar hack - version 1.1 [Re: SurfMinister]
luke01 Offline
User

Registered: 05/22/01
Posts: 44
looks great so far, will come up with some questions later on <br />great job man! <br />luke01
_________________________

Top
#214959 - 04/10/02 09:58 AM Re: Another Calendar hack - version 1.1 [Re: Pajarito]
XanthViper Offline
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

Top
#214960 - 04/10/02 12:21 PM Re: Another Calendar hack - version 1.1 [Re: Intel -*RW*-]
WrĊith Offline
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?

Top
#214961 - 04/11/02 08:35 AM Re: Another Calendar hack - version 1.1 [Re: Intel -*RW*-]
bmh Offline
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

Top
#214962 - 04/11/02 09:54 AM Re: Another Calendar hack - version 1.1 [Re: kog]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
Working on a simple README and will drop the files in as soon as I am done.

Top
#214963 - 04/12/02 03:22 AM Re: Another Calendar hack - version 1.1 [Re: Intel -*RW*-]
caymuc Offline
Enthusiast

Registered: 01/17/01
Posts: 449
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/02 03:22 AM)
_________________________
Carl
Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')

Top
#214964 - 04/15/02 01:49 PM Re: Another Calendar hack - version 1.1 [Re: rodrigo1]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
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!

Top
#214965 - 04/21/02 11:22 AM Re: Another Calendar hack - version 1.1 [Re: Intel -*RW*-]
caymuc Offline
Enthusiast

Registered: 01/17/01
Posts: 449
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')

Top
#214966 - 04/21/02 11:47 AM Re: Another Calendar hack - version 1.1 [Re: rodrigo1]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
Let me check that out...I modified the thing quite a bit... []/forum/images/icons/blush.gif[/]

Top
#214967 - 04/21/02 11:57 AM Re: Another Calendar hack - version 1.1 [Re: rodrigo1]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
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.

Top
#214968 - 04/21/02 12:17 PM Re: Another Calendar hack - version 1.1 [Re: Intel -*RW*-]
caymuc Offline
Enthusiast

Registered: 01/17/01
Posts: 449
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')

Top
#214969 - 04/21/02 05:21 PM Re: Another Calendar hack - version 1.1 [Re: rodrigo1]
MrFrog Offline
User

Registered: 10/03/00
Posts: 37
I still get the error as well.

Top
#214970 - 04/21/02 08:16 PM Re: Another Calendar hack - version 1.1 [Re: rodrigo1]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
Hmm...not sure. My version is now disabled due to Version 6...so I am working on a fix for that.

Top
#214971 - 04/22/02 05:06 AM Re: Another Calendar hack - version 1.1 [Re: Intel -*RW*-]
caymuc Offline
Enthusiast

Registered: 01/17/01
Posts: 449
Cool. Thank you, <br />I think you hack is a great concept and <br />I would love to be able to use it.
_________________________
Carl
Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')

Top
#214972 - 05/02/02 03:07 PM Re: Another Calendar hack - version 1.1 [Re: rodrigo1]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
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="" />

Top
#214973 - 05/02/02 03:29 PM Re: Another Calendar hack - version 1.1 [Re: Intel -*RW*-]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Nice work.<br /><br />Just downloaded this to take a look, but hgave one question...<br /><br />What is the $config['db_table'] ??<br /><br />Ian
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#214974 - 05/02/02 03:39 PM Re: Another Calendar hack - version 1.1 [Re: Gorlum]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
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!

Top
#214975 - 05/02/02 03:45 PM Re: Another Calendar hack - version 1.1 [Re: Intel -*RW*-]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Thanks.<br /><br />Can I suggest a few comment tags in the config.php file to assist others.<br /><br />Ian
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
Page 1 of 2 1 2 >


Who's Online
0 registered (), 25 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
nick1, Begbie, cenk, MATTO, DougMMcts
13362 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks