php forum
php mysql forum
php mysql smarty
 
Page 1 of 7 1 2 3 4 5 6 7 >
Topic Options
#221042 - 07/13/02 11:47 AM Calendar v 3.0
Max Fisch Offline
Enthusiast

Registered: 05/11/99
Posts: 412
Loc: NYC
Hi all, here's the beta Calendar upgrade, the old version was on this thread <br /> <br />Please note that this is a beta... the calendar is working fine for me, but I had to play around with the installation instructions a lot, and there is a chance for error. <br /> <br />Hold on to your old files, backup your database, etc etc... you may want to hold off from installing this in a production installation until some other users give us some feedback. <br /> <br />Max <br /> <br />[PS - oops, I forgot to clarify, at the end of the installation instructions, that you should also upload your new showthreaded.php ]


Attachments
52455-instructions.txt (76 downloads)



Edited by Max Fisch (07/13/02 11:52 AM)

Top
#221043 - 07/13/02 12:04 PM Re: Calendar v 3.0 [Re: Maze_Brendan]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Thanks Max <img src="/forum/images/icons/laugh.gif" alt="" /> - is there a demo anywhere of this running?<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
#221044 - 07/13/02 01:58 PM Re: Calendar v 3.0 [Re: Maze_Brendan]
RTM_dup1 Offline
Newbie

Registered: 06/07/02
Posts: 19
Loc: Ethernet
<blockquote><font class="small">posted by Max Fisch:</font><hr /> Hi all, here's the beta Calendar upgrade<hr /></blockquote><br /><br />This is great, Max. Thank you for sharing your work. Is this Beta Calendar hack in use at your site, in the Events forum at The Hang?<br /><br />Thanks,<br /><br />Rob<br />

Top
#221045 - 07/13/02 03:51 PM Re: Calendar v 3.0 [Re: Michael_Moore]
Max Fisch Offline
Enthusiast

Registered: 05/11/99
Posts: 412
Loc: NYC
Yes it is.

Top
#221046 - 07/13/02 08:50 PM Re: Calendar v 3.0 [Re: Maze_Brendan]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
I want to see it in action, where is it?

Top
#221047 - 07/14/02 12:23 AM Re: Calendar v 3.0 [Re: Maze_Brendan]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
muchas gracias. will be installing here soon <img src="/forum/images/icons/laugh.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#221048 - 07/14/02 09:34 AM Re: Calendar v 3.0 [Re: SurfMinister]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Looks great! Thank you.

Top
#221049 - 07/14/02 06:49 PM Re: Calendar v 3.0 [Re: palmen]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
you got a demo link? <img src="/forum/images/icons/tongue.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#221050 - 07/15/02 05:05 PM Re: Calendar v 3.0 [Re: SurfMinister]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
To really clean up this whole installation of the calendar one could attach the new files created to save time and then we simply would have to do a few basic steps to install this thing. Templates could also be made. I have updated the instructions a bit for those who want a simpler install and attach the neccesary files that are created which take alot of the work. Great work Max looks great.<br />


Attachments
52556-calandar.zip (18 downloads)

_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#221051 - 07/15/02 05:46 PM Re: Calendar v 3.0 [Re: sf49rminer]
Max Fisch Offline
Enthusiast

Registered: 05/11/99
Posts: 412
Loc: NYC
Agreed Omega, but Infopop has objections to posting complete modified scripts. That's what I did when I released V2, and Allen was kind enough to change it to a "differential" version. <br /><br />Max<br />

Top
#221052 - 07/15/02 06:21 PM Re: Calendar v 3.0 [Re: Maze_Brendan]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Ah so things are different that UBB for UBBThreads??? <br /> <br />When one downloads a hack at UBBDEV.com the file contains the new files which are not normally a infopop file. I did not include modified UBBThreads files. I just included in the above post a modified install file and addevent.php and newevent.php. These are not infopop files. I figured from the rules I have read this is allowed. It is done in the UBB forum all the time. Oh well if I am mistaken my bad. Download any hack over at UBBDEV and the non infopop files are included in the distribution. I just thought this would save people time hacking as I installed your hack and it works good. It took along time creating addevent.php and newevent.php hense my post above. <br /> <br />Allen: If I am mistaken on the rules simply remove my attachment. The three files included in the attachment are an updated install and the two files created which are addevent.php and newevent.php
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#221053 - 07/15/02 07:31 PM Re: Calendar v 3.0 [Re: sf49rminer]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
This calendar works great for me, thanks Max <img src="/forum/images/icons/smile.gif" alt="" />

Top
#221054 - 07/15/02 11:05 PM Re: Calendar v 3.0 [Re: neuron]
Max Fisch Offline
Enthusiast

Registered: 05/11/99
Posts: 412
Loc: NYC
You're welcome, enjoy <img src="/forum/images/icons/smirk.gif" alt="" /> <br />Max

Top
#221055 - 07/16/02 01:09 AM Re: Calendar v 3.0 [Re: sf49rminer]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
I haven't yet looked at the files, but if they don't contain Infopop code, then they should be fine.<br /><br />We can share templates and language files, but no php files (with IP's code).<br /><br />Thanks for asking <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#221056 - 07/16/02 04:37 AM Re: Calendar v 3.0 [Re: SurfMinister]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Well based on your thinking then remove the attachment. Because any modified file even hacked and discombobulated contains still IP work. Weird the rules must have changed in the last 6 months or rather stricter in enforcement <img src="/forum/images/icons/wink.gif" alt="" />. Oh well my bad.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#221057 - 07/16/02 02:50 PM Re: Calendar v 3.0 [Re: Maze_Brendan]
Pappy Offline
Member

Registered: 11/17/00
Posts: 235
Loc: Germany (US Citizen)
Hi Max<br />I installed the Calendar update for 6.02 and it went in like a dream. Very Easy. Thanks a Million, My users apreciate it.

Top
#221058 - 07/16/02 06:02 PM Re: Calendar v 3.0 [Re: MercAqua]
Max Fisch Offline
Enthusiast

Registered: 05/11/99
Posts: 412
Loc: NYC
You're welcome, good to hear - sorry it took me so long.<br />Max

Top
#221059 - 07/16/02 06:46 PM Re: Calendar v 3.0 [Re: Maze_Brendan]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Hey Max, just a question or two. My users have been dying without a calendar, so I really want to get it running. But knowing it is still in the working stages, how easy is it going to be to upgrade to newer versions/fixes you come out with? <br /><br />I just wonder because it is a very in-depth hack, and just wondering what it will take to make any changes, or if your updated instructions for the new releases will specifically address upgrade issues?

Top
#221060 - 07/17/02 07:32 AM Re: Calendar v 3.0 [Re: palmen]
Max Fisch Offline
Enthusiast

Registered: 05/11/99
Posts: 412
Loc: NYC
Hello msula,<br /><br />It shouldn't be too hard to upgrade once you install it: I don't anticipate any database changes, and if you look at it, the only file that's changing from the standard code is postlist.php (the rest of the files are new). So re-installing an upgraded version shouldn't be particularly hard.<br /><br />Regards,<br />Max<br /><br /><br />

Top
#221061 - 07/17/02 10:44 AM Re: Calendar v 3.0 [Re: Maze_Brendan]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Thanks, sounds great then!

Top
#221062 - 07/17/02 10:48 AM Re: Calendar v 3.0 [Re: Maze_Brendan]
WrĹith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
Max:<br /><br />Can you provide a link to a demo so we can see how this works?

Top
#221063 - 07/17/02 03:21 PM almost working [Re: SDS]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Hey max, or anyone? I installed the hack, everything works great, except my posts for new events don't show up in the calendar itself, only below it as a post <img src="/forum/images/icons/frown.gif" alt="" /> What could be the problem?<br /><br />Check it out<br />http://www.michiganjeepers.com/forums/postlist.php?Cat=&Board=calendar<br /><br />Also, I know the arrow images don't work, that's fine for now <img src="/forum/images/icons/smile.gif" alt="" />

Top
#221064 - 07/17/02 05:44 PM Re: almost working [Re: palmen]
Lisa_P Offline
Enthusiast

Registered: 03/09/02
Posts: 329
Loc: Michigan, USA
I had the same problem -- not showing up in the calendar, but in the list. Before I had a chance to really pour over it and see what I missed, omegatron posted the attachment above, I used that to check what I'd missed, and there was a whole section I missed in addevent I believe. I really wish I could tell you what it was, but I don't think I have a copy of what I had before I fixed it. I'll look though, I have Beyond Compare set to automatically backup things I change. Heaven knows I don't ever remember. <img src="/forum/images/icons/grin.gif" alt="" /> <br /> <br />I have a working version here: <br />http://www.fishingfordeals.com/forums2/postlist.php?Cat=&Board=calendar <br /> <br />if anyone wants to try it. It's just an empty testboard, and you should be able to post anonymously.


Edited by Lisa_P (07/17/02 05:49 PM)
_________________________
[:"red"]Lisa[/]

Top
#221065 - 07/17/02 05:48 PM Re: almost working [Re: JacquiL]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
I get access denied with that link, and the calendar doesn't show up in the main index.
_________________________
/Gardener | Complete list of my mods

Top
#221066 - 07/17/02 05:57 PM Re: almost working [Re: c0bra]
Lisa_P Offline
Enthusiast

Registered: 03/09/02
Posts: 329
Loc: Michigan, USA
<img src="/forum/images/icons/blush.gif" alt="" /> I'm sorry, please try again. It should work now. <img src="/forum/images/icons/wink.gif" alt="" />
_________________________
[:"red"]Lisa[/]

Top
#221067 - 07/17/02 06:05 PM Re: almost working [Re: JacquiL]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
I used omega's attachment and uploaded the two add*.php files and it works fine now <img src="/forum/images/icons/confused.gif" alt="" /> I followed those instructions perfectly I thought and went very slow. Hmm... but anyway, its working <img src="/forum/images/icons/wink.gif" alt="" />

Top
#221068 - 07/17/02 06:09 PM Re: almost working [Re: palmen]
Lisa_P Offline
Enthusiast

Registered: 03/09/02
Posts: 329
Loc: Michigan, USA
<img src="/forum/images/icons/laugh.gif" alt="" /> I thought I followed them pretty closely too. There is either an error in the original instructions, or something that's confusing and caused me to put it in the wrong spot. <img src="/forum/images/icons/crazy.gif" alt="" />
_________________________
[:"red"]Lisa[/]

Top
#221069 - 07/17/02 06:19 PM Re: almost working [Re: JacquiL]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
I'm just wondering if any existing hacks had originally edited the files that were used to create those two new ones.. don't see anything missing yet, but I can't remember half the hacks I installed <img src="/forum/images/icons/laugh.gif" alt="" />

Top
#221070 - 07/17/02 07:15 PM Re: almost working [Re: palmen]
Max Fisch Offline
Enthusiast

Registered: 05/11/99
Posts: 412
Loc: NYC
If you figure it out, please let me know so I can edit the instructions.<br /><br />Regards,<br />Max

Top
#221071 - 07/17/02 10:11 PM Re: almost working [Re: palmen]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
looks very good on your site, and I must say, your whole site really has improved over the last few months <img src="/forum/images/icons/smile.gif" alt="" /> nice work.
_________________________
- Allen wavey
- What Drives You?

Top
#221072 - 07/17/02 10:21 PM Re: almost working [Re: Maze_Brendan]
Pappy Offline
Member

Registered: 11/17/00
Posts: 235
Loc: Germany (US Citizen)
Hi Max,<br />one problem I had is when I delete an event it does not delete from the main database? is there an updated editpost? or did I miss something?

Top
#221073 - 07/17/02 10:39 PM Re: almost working [Re: SurfMinister]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
<blockquote><font class="small">posted by AllenAyres:</font><hr /> looks very good on your site, and I must say, your whole site really has improved over the last few months <img src="/forum/images/icons/smile.gif" alt="" /> nice work. <hr /></blockquote><br /><br />Who's site were you commenting on? I was hoping mine, but I doubt it.. lol <br /><br />Just wondering <img src="/forum/images/icons/smile.gif" alt="" />

Top
#221074 - 07/17/02 11:09 PM Re: almost working [Re: palmen]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Yours, someone I know is outgrowing ubb, I pointed them to your site as an example of a good threads site <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#221075 - 07/17/02 11:18 PM Re: almost working [Re: SurfMinister]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Oh yay! I just got tingles, I'm so happy. haha j/k<br /><br />But for real, thanks. It is growing fast, but threads is keeping up just fine. A few issues to work out with my header and everything will almost be set. Oh, and IIP 5.0 will be nice too <img src="/forum/images/icons/wink.gif" alt="" />

Top
#221076 - 07/18/02 05:44 PM Re: Calendar v 3.0 [Re: Maze_Brendan]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Just one thought - how complicated would it be to display today's date in a different colour so that it stood out?<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
#221077 - 07/18/02 07:02 PM Re: Calendar v 3.0 [Re: Gorlum]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Max, or Dave, any thought on making this work for a pal box <img src="/forum/images/icons/wink.gif" alt="" /> Basically, just a box that contained a mini-calendar with numbers, but the days that had something planned those boxes are a different color and when clicked on take you to the associated event?

Top
#221078 - 07/18/02 07:14 PM Re: almost working [Re: MercAqua]
Max Fisch Offline
Enthusiast

Registered: 05/11/99
Posts: 412
Loc: NYC
Pappy,<br />see the notes in the instructions starting on line 14.<br />When you delete a post, it does get deleted from the main w3t_Posts table as usual, but not from the new "Events" table. The idea is that unless you're deleting hundreds of events, I judged that the tradeoff between modifying an additional script and just leaving a few "dead" entries in the Events database wasn't worth it.<br /><br />Having said that, see the "Additional note" in the instructions starting on line 30 - if you really want to delete entries in the Events database, you could adapt/update from this old thread <br /><br />Regards,<br />Max<br />

Top
#221079 - 07/18/02 07:20 PM pretty easy [Re: Gorlum]
Max Fisch Offline
Enthusiast

Registered: 05/11/99
Posts: 412
Loc: NYC
That's pretty easy... in postlist.php, find <br /><br /> if (($d == $thisDay) && ($mon == $thisMon)) {<br /> echo " class=\"darktable\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td>$d.</td>";<br /><br />This prints the starting point for today's cell. It shows up in "darktable" colors, and other days show up in "lighttable" colors. You can either modify these in the stylesheet you use, or you can modify the above lines to your liking. The $d prints today's day of the month, so you could replace it with <font=red>$d.</font> or something like that.<br /><br />Regards,<br />Max<br />

Top
#221080 - 07/18/02 07:23 PM Re: Calendar v 3.0 [Re: palmen]
Max Fisch Offline
Enthusiast

Registered: 05/11/99
Posts: 412
Loc: NYC
That would be pretty cool<br />Maybe Dave would consider building it... He could steal the formatting from the box on http://ubbdesign.com/ <img src="/forum/images/icons/smile.gif" alt="" /><br /><br />Max<br /><br />

Top
#221081 - 07/18/02 07:31 PM Re: Calendar v 3.0 [Re: Maze_Brendan]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
One suggestion though. It would be nice to post an event one time with a beginning and end date one time instead of having to post it all say 3 days. An example lets say would be a 3 day convention. If one wants to post this it would have to be posted 3 times on every day instead of one post which would then fill the corresponding days correctly on the calendar.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#221082 - 07/18/02 07:35 PM Re: Calendar v 3.0 [Re: sf49rminer]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
agreed.. since some events we have are weekend long events. Maybe have the starting day a full descript in the box, and in concurrent boxes it just says part of the event title and says "cont..." or something just to show it continues on.

Top
#221083 - 07/18/02 09:22 PM Re: Calendar v 3.0 [Re: Maze_Brendan]
Stefan_dup1 Offline
Power User

Registered: 02/12/02
Posts: 70
Max, <br /> <br />i'm just playing with this really nice hack ... any chance to get the displayed time in postlist.php changed to 24h - format? <br /> <br />Should be anwhere at <br /> <br />$h = strtolower(strftime ("%I", $tm)); <br /> <br />(I've removed the am/pm correction successfully before)


Edited by Stefan (07/18/02 09:23 PM)
_________________________
Gruß/Regards
Stefan
thinkfactory™

Top
#221084 - 07/19/02 11:31 AM Re: Calendar v 3.0 [Re: palmen]
paulf Offline
User

Registered: 04/03/02
Posts: 36
Loc: Phoenix, AZ
Dave had written a PAL box for this in his first release of IIP for ubbt 5.5. It displays any upcoming events for the next week. I still use this pal box on my 6.0.2 board. <br /> <br />Since the table structure for the events table has not changed, the old pal code works just fine. <br /> <br />It dosent display a "mini calendar" but it does list all current upcoming events.
_________________________
Paul Fries
Systems Administrator
CWIE LLC

Top
#221085 - 07/19/02 12:04 PM Re: almost working [Re: Maze_Brendan]
paulf Offline
User

Registered: 04/03/02
Posts: 36
Loc: Phoenix, AZ
Hiya Max.<br /><br />Just FYI. <br />That code that JustDave wrote to delete the data from w3t_Events works fine with v6.<br /><br />Also. I noticed in the w3t_Events table there are fields for recurring events, and Duration. Any plans to make use of these features in the future?<br /><br />Thanks!
_________________________
Paul Fries
Systems Administrator
CWIE LLC

Top
#221086 - 07/19/02 05:51 PM Re: Calendar v 3.0 [Re: MRLefferts]
Max Fisch Offline
Enthusiast

Registered: 05/11/99
Posts: 412
Loc: NYC
Sorry Stefan, over my head, maybe someone else can help.<br />Max

Top
#221087 - 07/24/02 01:24 AM Calendar v 3.0 - xhtml instructions [Re: Maze_Brendan]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Nice one <img src="/forum/images/icons/smile.gif" alt="" /> Testing here right now.. I redid the instructions to fix the xhtml in the code:<br /><br />http://www.threadsdev.com/mods/6/52455-instructions.txt<br /><br />It runs fine, if I find some more xhtml bugs, I'll update the file and post here <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#221088 - 07/24/02 02:00 AM Re: Calendar v 3.0 - xhtml instructions [Re: SurfMinister]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
File updated with lots of little fixes <img src="/forum/images/icons/smile.gif" alt="" /> The only thing not 100% xhtml is bordercolor and I am too sleepy to fix it right now <img src="/forum/images/icons/wink.gif" alt="" /> I think I transferred all the changes from our files here to the instructions, if you see something different, please let me know and I'll update it <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#221089 - 07/24/02 06:48 PM Re: Calendar v 3.0 - xhtml instructions [Re: SurfMinister]
paulf Offline
User

Registered: 04/03/02
Posts: 36
Loc: Phoenix, AZ
<blockquote><font class="small">posted by AllenAyres:</font><hr /> File updated with lots of little fixes <img src="/forum/images/icons/smile.gif" alt="" /> <hr /></blockquote><br /><br />Allan, all of your changes had to do with the xhtml compliency correct?
_________________________
Paul Fries
Systems Administrator
CWIE LLC

Top
#221090 - 07/24/02 10:02 PM Re: Calendar v 3.0 - xhtml instructions [Re: Lupar_Drake]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Yes, I didn't change anything else <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#221091 - 07/25/02 07:15 AM Re: Calendar v 3.0 - xhtml instructions [Re: SurfMinister]
casper_dup1 Offline
Member

Registered: 03/10/02
Posts: 175
Loc: Boston, MA
Suggestion:<br /><br />In UBB.classic's calendar it automatically adds an event for a registered users birthday.<br /><br />It would be great if we could get this calendar to do the same.<br />You could add an optional field inside the w3t_users table.
_________________________
http://www.unnecessaryroughness.com

Top
#221092 - 07/25/02 02:45 PM Re: Calendar v 3.0 - xhtml instructions [Re: zf98844]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
That might be good to co-ordinate with anything Rick might be working on regarding coppa, and the ubb.classic import script, as birthdays are already required there.
_________________________
- Allen wavey
- What Drives You?

Top
#221093 - 07/26/02 12:42 AM Re: Calendar v 3.0 - xhtml instructions [Re: SurfMinister]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
OK, it should be a bit easier to install now. I believe it is 100% xhtml compliant as well. <br /><br />http://www.threadsdev.com/mods/6/calendar.zip<br /><br />I included the template files pre-done and updated the instructions so that you are requiring the templates into the posting pages instead of adding the contents to the .php files. We are using these same files here.<br /><br />Next up will be pulling the text out to make a language file... I'll work on it this weekend or so unless someone else wants to jump in there <img src="/forum/images/icons/wink.gif" alt="" /><br /><br />Max feel free to do with this how you want, thank you for your work in getting it to v6 status <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#221094 - 07/29/02 04:10 PM Re: Calendar v 3.0 [Re: Maze_Brendan]
Billster2K Offline
Lurker

Registered: 04/23/02
Posts: 3
MAX,<br /><br />This is AWESOME <img src="/forum/images/icons/wink.gif" alt="" /><br /><br />I have one problem...?<br />I attempted your step nine(after I made sure everything else was working ok) and I CANNOT get the date and location to show up in the Subject line?<br /><br />Nothing is breaking, it's just not showing up?<br /><br />Any ideas, I have double checked the edits.<br /><br />Cheers, Bill<br />

Top
#221095 - 07/30/02 03:41 AM Re: Calendar v 3.0 [Re: Maze_Brendan]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Thanks Max,<br /><br />Was a piece of cake to install some 15 calendars on my forums, for the various clubs that I have. Now they can all have their own calendar, and not all have to share one.<br /><br />Thanks again.<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
#221096 - 07/30/02 10:23 AM Re: Calendar v 3.0 [Re: Maze_Brendan]
Billster2K Offline
Lurker

Registered: 04/23/02
Posts: 3
I would change the UPDATE to be using the "Keyword" instead of the "Title".<br /><br />I ran into problems with this because of multiple forums in different categories which have the same title!<br /><br />I know this is just in your instructions and I simply used the Keyword to avoid any problems...but just an FYI nonetheless.<br /><br />REALLY enjoying your work <img src="/forum/images/icons/grin.gif" alt="" /> <br /><br />Cheers, Bill

Top
#221097 - 08/02/02 08:24 AM Re: Calendar v 3.0 [Re: Lupar_Drake]
MattyJ Offline
Coder

Registered: 05/11/99
Posts: 788
Loc: Wisconsin
Just got this IIP integration working with IIP4.3 and .threads 6.0.2... <img src="/forum/images/icons/smile.gif" alt="" /> Wasn't hard at all, so if anyone needs the code, let me know and I can post it (with instructions) here.
_________________________
--------------------
Matt Reinfeldt
http://www.mattreinfeldt.com/

Top
#221098 - 08/02/02 08:33 PM Week starts Monday instead of Sunday [Re: mazmanr]
caymuc Offline
Enthusiast

Registered: 01/17/01
Posts: 449
For European users, i tried this in postlist.php:<br /><br /> // get what weekday the first is on<br /> $tempDate = getdate(mktime(0,0,0,$mon,1,$year));<br /> $firstwday= $tempDate["wday"]-1; //HACK: Monday starts week instead of Sunday: '-1' added<br /> if ($firstwday==-1) {$firstwday=6;} //HACK: Monday starts week instead of Sunday: first day should not be -1<br /><br /><br />And here: (update the header namings...)<br /> <tr class=\"tdheader\"><th>Montag</th><th>Dienstag</th><th>Mittwoch</th><th>Donnerstag</th><th>Freitag</th><th>Samstag</th><th>Sonntag</th></tr><br />
_________________________
Carl
Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')

Top
#221099 - 08/02/02 08:41 PM Translation [Re: rodrigo1]
caymuc Offline
Enthusiast

Registered: 01/17/01
Posts: 449
If you want to translate the calendar, <br />some code needs to be added after this: <br /> <br /> if ($action = "findDate") { <br /> $theDate = getdate(mktime(0,0,0,$mon,1,$year)); <br /> $month = $theDate["month"]; <br /> } <br /> <br />Add this: <br /> <br />//Hack im hack translation <br /> <br /> <br />switch($month) { <br /> case "January": <br /> $month2 = "Januar"; <br /> break; <br /> case "February": <br /> $month2 = "Februar"; <br /> break; <br /> case "March": <br /> $month2 = "M&auml;rz"; <br /> break; <br /> case "May": <br /> $month2 = "Mai"; <br /> break; <br /> case "June": <br /> $month2 = "Juni"; <br /> break; <br /> case "July": <br /> $month2 = "Juli"; <br /> break; <br /> case "October": <br /> $month2 = "Oktober"; <br /> break; <br /> case "December": <br /> $month2 = "Dezember"; <br /> break; <br /> default: <br /> $month2 = $month; <br />} <br />$month = $month2; <br />//Hack im hack ende <br /> <br />This is an example for German, you can change that after your needs for your language. Note that only Month names are changed in this example that are different in English than German. <br /> <br />


Edited by caymuc (08/02/02 08:44 PM)
_________________________
Carl
Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')

Top
#221100 - 08/02/02 08:52 PM Re: Calendar v 3.0 [Re: MRLefferts]
caymuc Offline
Enthusiast

Registered: 01/17/01
Posts: 449
> $h = strtolower(strftime ("%I", $tm)); <br /> <br />maybe: <br /> <br />$h = strtolower(strftime ("%H", $tm)); <br /> <br />But I am still working to catch all those time-things myself, for example in addevent.php, this format change needs to be done, i think: <br /> <br />$date_string = date("j. n. Y, G:i",mktime ($hour_convert,$min,0,$mon,$day,$year)); //HACK AMPM <br /> <br />


Edited by caymuc (08/02/02 09:08 PM)
_________________________
Carl
Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')

Top
#221101 - 08/02/02 09:21 PM What does that >>> and »»»mean? [Re: rodrigo1]
caymuc Offline
Enthusiast

Registered: 01/17/01
Posts: 449
What does that >>> and »»» mean?<br />I did not find out when what symbols are displayed.<br /><br /> if ($i > 0) {<br /> $events .= "<hr width=95% align=center><font color=red><b>&#8250;&#8250;&#8250;</b></font> $Evnt<br>";<br /> } <br /> else {<br /> $events .= "<font color=red><b>&raquo;&raquo;&raquo;</b></font> $Evnt<br>";<br /> } <br /><br /><br />By the way: those >>> needs to be changed to that &#8250;&#8250;&#8250; code, or the MAC displays messy gremlins.
_________________________
Carl
Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')

Top
#221102 - 08/03/02 03:58 AM Re: Calendar v 3.0 [Re: Maze_Brendan]
caymuc Offline
Enthusiast

Registered: 01/17/01
Posts: 449
Since I converted the Calendar somehow into German (not finished yet), I really start liking the idea of having one. <br /> <br />Thanks Max for your great work. <br /> <br />One thought: Do you think it is useful of having all the calendar entries also listed underneath? <br />The more entries the calendar has the more double information the page will have. I think I would prefer not showing the entries underneath but to have only the calendar displayed. - Other oppinions? <br />


Edited by caymuc (08/03/02 04:01 AM)
_________________________
Carl
Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')

Top
#221103 - 08/03/02 07:50 AM Re: Calendar v 3.0 [Re: rodrigo1]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
<blockquote><font class="small">posted by caymuc:</font><hr /> One thought: Do you think it is useful of having all the calendar entries also listed underneath?<br />The more entries the calendar has the more double information the page will have. I think I would prefer not showing the entries underneath but to have only the calendar displayed. - Other oppinions?<br /> <hr /></blockquote><br /><br />That is kind of my concern. After getting some use on my site I find people seeing a new post and they reply to it thinking today is the day of the event and such. I think it would be better t force users to just click the boxes and then be taken to the post info and replies.

Top
#221104 - 08/03/02 03:01 PM Re: Calendar v 3.0 [Re: rodrigo1]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Hey Caymuc, if you can share your German files, it would make it easier for me to finish the language file for the calendar <img src="/forum/images/icons/smile.gif" alt="" /><br /><br />Pretty please... <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#221105 - 08/05/02 03:47 AM Re: Calendar v 3.0 [Re: SurfMinister]
caymuc Offline
Enthusiast

Registered: 01/17/01
Posts: 449
Hi, send me your email address to info @ chrom.de<br />I would mail you the code, as it is right now.<br /><br />I prefer not to post my stuff online, it is translated but far from beeing finished. Also I changed this and that. So normal users would be rather confused than inspired by the hacks, but you will know what ro pick from it. <img src="/forum/images/icons/smile.gif" alt="" /><br /><br />Greetings
_________________________
Carl
Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')

Top
#221106 - 08/05/02 12:12 PM Re: Calendar v 3.0 [Re: Lupar_Drake]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
<blockquote><font class="small">posted by paulf:</font><hr /> It dosent display a "mini calendar" but it does list all current upcoming events. <hr /></blockquote><br /><br />The next one does. <img src="/forum/images/icons/wink.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#221107 - 08/08/02 10:43 PM Re: Calendar v 3.0 [Re: sjsaunders]
MattyJ Offline
Coder

Registered: 05/11/99
Posts: 788
Loc: Wisconsin
<blockquote><font class="small">posted by JustDave:</font><hr /> <blockquote><font class="small">posted by paulf:</font><hr /> It dosent display a "mini calendar" but it does list all current upcoming events. <hr /></blockquote><br /><br />The next one does. <img src="/forum/images/icons/wink.gif" alt="" /> <hr /></blockquote><br /><br />tease! <img src="/forum/images/icons/tongue.gif" alt="" /> how close are you nowadays? <img src="/forum/images/icons/cool.gif" alt="" />
_________________________
--------------------
Matt Reinfeldt
http://www.mattreinfeldt.com/

Top
#221108 - 08/08/02 11:50 PM Re: Calendar v 3.0 [Re: mazmanr]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
hehehe I should have my test site open to public preview before this month is over with. I'm working on putting in a few extra rabbits to pull out of the hat for everyone's amusement... lol<br /><br />This next version will be easier to set up but there will be alot of setting up to do... lol
_________________________
~Dave
ChattersOnline.com

Top
#221109 - 08/18/02 06:58 AM Re: Calendar v 3.0 [Re: rodrigo1]
Max Fisch Offline
Enthusiast

Registered: 05/11/99
Posts: 412
Loc: NYC
Hi Caymuc,<br />It's relatively easy to hide the entries... that's how I had it at first, but my readers complained about not being able to easily identify new replies. This was the compromise I came up with, but other ideas are welcome.<br />Regards,<br />Max<br />

Top
#221110 - 08/21/02 07:22 PM Re: Calendar v 3.0 [Re: sjsaunders]
kcweb Offline
Journeyman

Registered: 01/25/01
Posts: 122
Loc: ottawa, canada
I can't wait, JustDave.<br /><br />the users on my board were very tickled with your world class IIP add-on that we're running with UBBT v5.5.1 at www.retailflorist.com.<br /><br />I want to install the calendar add on etc but I'm thinking of waiting til the end of the month once you have it as a pal box.<br /><br />would it be better to install it now and tiptoe up to your next release when it comes out or is it better to wait do it all in one big shot?<br /><br />thanks,
_________________________
KurtC
__________
Kurt Carter
Webmaster
www.retailflorist.com

Top
#221111 - 08/21/02 07:51 PM Re: Calendar v 3.0 [Re: Braxton]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I would venture to say that you will be glad you waited. <img src="/forum/images/icons/wink.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#221112 - 08/21/02 08:25 PM Re: Calendar v 3.0 [Re: sjsaunders]
kcweb Offline
Journeyman

Registered: 01/25/01
Posts: 122
Loc: ottawa, canada
<blockquote><font class="small">posted by JustDave:</font><hr /> I would venture to say that you will be glad you waited. <img src="/forum/images/icons/wink.gif" alt="" /> <hr /></blockquote><br /><br />okay, so you're saying I should wait and do it all in one big shot then?<br /><br />what will you be releasing?<br /><br />I haven't been keeping that up to date on features.<br /><br />thanks,
_________________________
KurtC
__________
Kurt Carter
Webmaster
www.retailflorist.com

Top
#221113 - 08/21/02 09:09 PM Re: Calendar v 3.0 [Re: Braxton]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
He's been working on the new IIP 5 for quite some time, what has it been, 6 months? lol j/k <img src="/forum/images/icons/laugh.gif" alt="" /><br /><br />But yeah, he's made some tremendous changes (or so I've heard) and like he said, it will be worth the little while to wait to do that. <img src="/forum/images/icons/smile.gif" alt="" />

Top
#221114 - 08/21/02 09:24 PM Re: Calendar v 3.0 [Re: palmen]
kcweb Offline
Journeyman

Registered: 01/25/01
Posts: 122
Loc: ottawa, canada
great thanks,<br /><br />but this suspense is killing me.<br /><br />what are some of the new features it will have?
_________________________
KurtC
__________
Kurt Carter
Webmaster
www.retailflorist.com

Top
#221115 - 09/14/02 01:51 AM Re: Calendar v 3.0 [Re: Maze_Brendan]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
Here are updated instructions for 6.1


Attachments
56605-calendar-3.1beta.txt (57 downloads)


Top
#221116 - 09/20/02 04:00 PM Re: Calendar v 3.0 [Re: neuron]
Datal Offline
Member

Registered: 08/27/01
Posts: 203
You forgot in the directions how to create a forum to be a calendar. How do I do this??

Top
#221117 - 09/20/02 04:06 PM Re: Calendar v 3.0 [Re: Macthorn]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
Hmm, it's not mentioned in the original directions. If memory serves, I think you just make a normal forum. I called mine 'calendar' in the keyword, and used that in the script where you put in your forum's keyword.

Top
#221118 - 09/21/02 01:05 AM Re: Calendar v 3.0 [Re: Macthorn]
Pappy Offline
Member

Registered: 11/17/00
Posts: 235
Loc: Germany (US Citizen)
In the table w3t_boards (or prefix_Boards) set Bo_Calendar to Y in the calendar forum (s). I think?

Top
#221119 - 09/21/02 05:02 AM Re: Calendar v 3.0 [Re: MercAqua]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Aglavalin and Pappy are both right <img src="/forum/images/icons/wink.gif" alt="" /><br /><br />First you set a special forum up named Calendar. Now when you first did this hack you did an SQL command. This inserted Bo_Calendar under W3T_Boards. Simply make sure any forum you want a calendar in mark Y. In my case I have one forum named Calendar like above. I have ALL forums marked N and only one forum marked Y. This will create the desired effect of one special place for a calendar like here at Threadsdev etc.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#221120 - 09/21/02 07:13 PM Re: Week starts Monday instead of Sunday [Re: rodrigo1]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Just checking..<br /><br />The only difference between the calendar week from western > european is that Monday starts off the european week?<br /><br />
_________________________
~Dave
ChattersOnline.com

Top
#221121 - 09/21/02 07:32 PM Re: Week starts Monday instead of Sunday [Re: sjsaunders]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Yes...<br /><br />Doesn't it in most countries?<br /><br />
_________________________
Fans Focus - Focusing on Fans of Sport

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

Top
#221122 - 09/21/02 07:38 PM Re: Week starts Monday instead of Sunday [Re: Gorlum]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
LoL I don't know...<br /><br /><br />When I was stationed in Germany I never noticed... (was there for 2 years) LoL <img src="/forum/images/icons/blush.gif" alt="" /><br /><br /><br /><br />In the US Sunday is the first day of the week, not Monday.
_________________________
~Dave
ChattersOnline.com

Top
#221123 - 09/22/02 03:26 AM Re: Week starts Monday instead of Sunday [Re: sjsaunders]
caymuc Offline
Enthusiast

Registered: 01/17/01
Posts: 449
yes, and hours count 0:00-23:59 instead of 0.00 AM - 23.59 PM, thats all the difference I think.<br /><br />Greetings Carl<br /><br />
_________________________
Carl
Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')

Top
#221124 - 09/22/02 03:51 AM Re: Week starts Monday instead of Sunday [Re: rodrigo1]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Thanks <img src="/forum/images/icons/smile.gif" alt="" /><br /><br />I hadn't thought about allowing for the 24 hour format (military time) but I'll get it in. <img src="/forum/images/icons/smile.gif" alt="" /><br /><br />Switching from European to Western calendar weeks is configurable. I wan't to place an extra setting in users prefs so they can chose what type they see but if they haven't chosen a calendar week type it falls back on what ever the default is set to. <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#221125 - 09/22/02 04:31 AM Re: Week starts Monday instead of Sunday [Re: sjsaunders]
caymuc Offline
Enthusiast

Registered: 01/17/01
Posts: 449
Sounds pretty cool! I am very curious now.<br /><br />In case you need help with German language files, let me know.
_________________________
Carl
Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')

Top
#221126 - 09/22/02 04:35 AM Re: Week starts Monday instead of Sunday [Re: rodrigo1]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
IIP 6.0's text has been completely moved to seperate language files and is stored in the same manor as .threads' is. <img src="/forum/images/icons/smile.gif" alt="" /><br /><br />This last version was just something I threw together from the pieces parts I had laying around. LoL I just wanted to give everyone something to kill time with. <img src="/forum/images/icons/wink.gif" alt="" /><br />
_________________________
~Dave
ChattersOnline.com

Top
#221127 - 09/22/02 05:09 AM Re: Week starts Monday instead of Sunday [Re: rodrigo1]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
<blockquote><font class="small">posted by caymuc:</font><hr /> yes, and hours count 0:00-23:59 instead of 0.00 AM - 23.59 PM, thats all the difference I think.<br /> <hr /></blockquote><br /><br />No - we prefer to use 0:00am to 11:59pm - oh and don't forget to allow for the fact that we drive on the left, still use our own currency and rule the world <img src="/forum/images/icons/wink.gif" alt="" /> Okay the last one might not be true these days <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
Fans Focus - Focusing on Fans of Sport

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

Top
#221128 - 09/23/02 12:09 PM Re: Calendar v 3.0 [Re: sf49rminer]
Datal Offline
Member

Registered: 08/27/01
Posts: 203
Ohh I figured that out... The problem or thing that needs adding is... When you "Create" a forum. You should add a Radio Button on "Is this forum a Calendar?" If yes it does the Y and no it does the N... Just my 2 cents...<br /><br />Also a bug... I put in an event. Then I went to delete it and it gave me some weird error (cant remember it) and the stats for the forum still show the message being there but it isn't... Any suggestions...

Top
#221129 - 09/23/02 12:16 PM Re: Calendar v 3.0 [Re: Macthorn]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
It does not remove the event name and date from the w3t_events table, you need to manually remove it. phpmyadmin works great for this.

Top
#221130 - 09/23/02 12:20 PM Re: Calendar v 3.0 [Re: neuron]
Datal Offline
Member

Registered: 08/27/01
Posts: 203
Well shouldn't we make it so it does??

Top
#221131 - 09/23/02 12:22 PM Re: Calendar v 3.0 [Re: Macthorn]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
Yeah, that would be a good idea. Also having it show the event date and title in the post body would be good so ya know when the event is from the post info.

Top
#221132 - 09/23/02 12:33 PM Re: Calendar v 3.0 [Re: neuron]
Datal Offline
Member

Registered: 08/27/01
Posts: 203
Yeah that would be nice also <img src="/forum/images/icons/smile.gif" alt="" /> Especially for the Calendar's that are Moderated...

Top
#221133 - 09/26/02 07:44 AM Re: Calendar v 3.0 [Re: Macthorn]
Wando Offline
Power User

Registered: 04/10/02
Posts: 64
Loc: UK
when I run-<br /><br /> CREATE TABLE w3t_Events (<br /> E_ID int(9) DEFAULT '0' NOT NULL auto_increment,<br /> E_CalendarID int(9) unsigned DEFAULT '0' NOT NULL,<br /> E_Number int(9) DEFAULT '0' NOT NULL,<br /> E_Date int(11) unsigned DEFAULT '0' NOT NULL,<br /> E_Time int(11),<br /> E_Duration int(11) DEFAULT '0' NOT NULL,<br /> E_Recurring char(1) DEFAULT 'N' NOT NULL,<br /> E_Recurtype varchar(10),<br /> E_End int(11),<br /> E_Frequency int(11),<br /> E_Days varchar(7),<br /> E_Location text,<br /> PRIMARY KEY (E_ID),<br /> KEY E_CalendarID (E_CalendarID)<br />);<br /> <br /><br /><br />I get-<br /><br />Results from your SQL command <br /> <br />Here are the results of your command: "CREATE TABLE w3t_Events ( E_ID int(9) DEFAULT '0' NOT NULL auto_increment, E_CalendarID int(9) unsigned DEFAULT '0' NOT NULL, E_Number int(9) DEFAULT '0' NOT NULL, E_Date int(11) unsigned DEFAULT '0' NOT NULL, E_Time int(11), E_Duration int(11) DEFAULT '0' NOT NULL, E_Recurring char(1) DEFAULT 'N' NOT NULL, E_Recurtype varchar(10), E_End int(11), E_Frequency int(11), E_Days varchar(7), E_Location text, PRIMARY KEY (E_ID), KEY E_CalendarID (E_CalendarID) ); ".<br />SQL ERROR: Unable to do_query: CREATE TABLE w3t_Events ( E_ID int(9) DEFAULT '0' NOT NULL auto_increment, E_CalendarID int(9) unsigned DEFAULT '0' NOT NULL, E_Number int(9) DEFAULT '0' NOT NULL, E_Date int(11) unsigned DEFAULT '0' NOT NULL, E_Time int(11), E_Duration int(11) DEFAULT '0' NOT NULL, E_Recurring char(1) DEFAULT 'N' NOT NULL, E_Recurtype varchar(10), E_End int(11), E_Frequency int(11), E_Days varchar(7), E_Location text, PRIMARY KEY (E_ID), KEY E_CalendarID (E_CalendarID) ); <br />You have an error in your SQL syntax near '; ' at line 16 row(s) affected by your query. <br /> <br /> <br />
_________________________
www.planet-audi.net

Top
#221134 - 09/26/02 05:38 PM Re: Calendar v 3.0 [Re: algorewon]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
Hmm, I didn't change that create table command when I updated the directions to 6.1, so they should still work. It looks like you have a space after the ; from your quote of '; ' so perhaps it got added on from a copy and paste?

Top
#221135 - 10/16/02 05:30 AM Re: Calendar v 3.0 [Re: neuron]
Pappy Offline
Member

Registered: 11/17/00
Posts: 235
Loc: Germany (US Citizen)
anyone know if this hack works with 6.1.1?<br /><br />Thanks!

Top
#221136 - 10/16/02 06:23 PM Re: Calendar v 3.0 [Re: MercAqua]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
It works just fine with 6.1.1 Pappy. I am glad that I installed it.<br /><br />One question though from me: Until we wait for Rick to do some magic with the birthdays etc., I noticed that on the events table there are some fields like E_Duration, E_Recurring, E_Recurtype, E_End and E_Frequency<br /><br />Can we set those fields and if yes to what, so that if I enter someone's birthday (say 12/12/1980) it will appear every year on the 12/12th?<br /><br />That will save loads of input for the admins.<br /><br />Thanks in advance<br /><br />Warm regards<br /><br />Nikos
_________________________
Nikos

Top
#221137 - 10/17/02 04:10 AM Re: Calendar v 3.0 [Re: Hal_dup2]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
The events table is part of the calendar 3.0 addon, and I think those fields were never implemented by Max.<br /><br />Birthdays should go in the user table along with the other user information.

Top
#221138 - 10/18/02 07:21 AM Re: Calendar v 3.0 [Re: Maze_Brendan]
Charles Offline
Veteran

Registered: 10/22/00
Posts: 2637
Loc: London, UK
does this version of calendar work with 6.1 ?
_________________________
Do you believe in love at first sight,
or should I walk by again?

Top
#221139 - 10/19/02 03:51 PM Re: Calendar v 3.0 [Re: egor]
RTM_dup1 Offline
Newbie

Registered: 06/07/02
Posts: 19
Loc: Ethernet
Charles,<br /><br />Dimipoulous indicated (in a few posts above yours) that it seemed to work in 6.1.1 so I presume it would work in 6.1 - YMMV, since I haven't had the opportunity to try it myself.<br /><br />Cheers,<br /><br />Rob

Top
#221140 - 10/21/02 01:50 PM Re: Calendar v 3.0 [Re: Michael_Moore]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
Yes it works in 6.1, I posted updated instructions above somewheres...

Top
#221141 - 10/21/02 06:19 PM Re: Calendar v 3.0 [Re: neuron]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
An optional note:<br /><br />When you specify a board to be a calendar, it shows at the top of the screen and below it you can see the list of all the entries you made - as events.<br /><br />If you do not wish this to be shown - only the calendar to be visible you need to do the following:<br /><br />Open postlist.php<br />Go to the end of the file and find:<br /><pre><font class="small">code:</font><hr><br /> if (!$debug) {<br /> include ("$thispath/templates/$tempstyle/postlist.tmpl");<br /> }<br /></pre><hr><br />and change it to<br /><pre><font class="small">code:</font><hr><br />if($Calendar != "Y")<br />{<br /> if (!$debug) {<br /> include ("$thispath/templates/$tempstyle/postlist.tmpl");<br /> }<br />}<br /></pre><hr><br /><br />Warm regards<br /><br />Nikos
_________________________
Nikos

Top
#221142 - 10/31/02 02:59 PM Re: Calendar v 3.0 - xhtml instructions [Re: SurfMinister]
Datal Offline
Member

Registered: 08/27/01
Posts: 203
Make Note... You forgot the making of the templates

Top
#221143 - 11/04/02 01:26 AM Here are some suggestions I have on the calendar [Re: Maze_Brendan]
Lunatik Offline
User

Registered: 06/18/02
Posts: 28
Here are 2 suggestions for the calendar incase you guys haven't thought of it. If you have please ignore it:<br /><br />1. Edit Event so that we can change the information about the event.<br />2. Put the Event information into the original subject line of the original post.


Edited by Lunatik (11/04/02 01:27 AM)

Top
#221144 - 11/04/02 09:48 AM Re: Here are some suggestions I have on the calendar [Re: sari]
ExcelsiorDDZ Offline
Member

Registered: 08/09/99
Posts: 234
Loc: New York
Another one....<br /><br />Add a date that it goes under for the actual thread listings. If you put new posts at the top and someone inputs something for a date a few months ahead, there is no decent way to figure it out.
_________________________
Silly ricer.. Wings are for airplanes!

Top
#221145 - 11/04/02 12:56 PM Re: Here are some suggestions I have on the calendar [Re: Franky]
Lunatik Offline
User

Registered: 06/18/02
Posts: 28
2 more suggestions.<br />1. Add an option for All Day Events. <br />2. Set it so that if you change the time offset in the display settings it also changes on the calendar as well.


Edited by Lunatik (11/04/02 06:49 PM)

Top
#221146 - 11/07/02 11:34 AM Proposed fix for timeoffset for Calendar 3.0 [Re: sari]
Lunatik Offline
User

Registered: 06/18/02
Posts: 28
Here is a proposed change for the calendar to fix timeoffset issues.<br /><br />In postlist.php:<br />Look for<br />$h = strtolower(strftime ("%I", $tm));<br /><br />Add Above it:<br />$tm = strtotime($html -> convert_time($tm, $user['U_TimeOffset']));<br /><br />There should only be 2 entries.<br /><br />------------------------<br />In AddEvent.php<br /><br />Look For <br />$user = $userob -> authenticate("U_Username, U_Password,U_Signature,U_Picture,U_Groups,U_Display,U_Language,U_Totalposts,U_Title,U_Color,U_TempRead,U_TextCols,U_TextRows,U_EReplies,U_Preview,U_Number");<br /><br />Change it to<br />$user = $userob -> authenticate("U_Username, U_Password,U_Signature,U_Picture,U_Groups,U_Display,U_Language,U_Totalposts,U_Title,U_Color,U_TempRead,U_TextCols,U_TextRows,U_EReplies,U_Preview,U_Number, U_TimeOffset");<br /><br />Look for:<br />$ETime = mktime ($hour_convert, $min, 0, 0, 0, $year);<br /><br />Change it to:<br />$ETime = mktime ($hour_convert - $user['U_TimeOffset'], $min, 0, 0, 0, $year);<br /><br />And that's it. Then Timeoffset will work properly.


Edited by Lunatik (11/07/02 03:15 PM)

Top
#221147 - 12/05/02 02:17 PM Re: Proposed fix for timeoffset for Calendar 3.0 [Re: sari]
armyocs Offline
Power User

Registered: 06/08/02
Posts: 62
Is this mod compatible with 6.2?
_________________________
[]http://www.ocsfoundation.org/lted.jpg[/]
Scouts Out!

Top
#221148 - 12/05/02 02:58 PM Re: Proposed fix for timeoffset for Calendar 3.0 [Re: AggieMan]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I don't believe it will be. Since this works off of the information stored in the w3t_Posts table which has been changed for 6.2 it will probably break this mod. I haven't seen the code for 3.0 and can't remember if Max went with a table join between the events table and the posts table to grab the information. If so this will also be a problem since .threads 6.2 uses a table join between the Users table and the Posts table and adding an additional table will most likely impact speed. (without a lot of work in streamlining things)
_________________________
~Dave
ChattersOnline.com

Top
#221149 - 12/06/02 04:57 PM Re: Proposed fix for timeoffset for Calendar 3.0 [Re: sjsaunders]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
About adding an extra table join to the Users table:<br /><br />This only seems to apply to postlist.php (and I'm not even sure if the username is needed there). So wouldn't the additional overhead only occur when viewing the calendar? Is so, I wouldn't think that would be a big deal.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#221150 - 12/07/02 01:57 AM Re: Proposed fix for timeoffset for Calendar 3.0 [Re: joeuser]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
I've modified the version of this hack in this post to work with 6.2dev4.<br /><br />I can upload it after 6.2 public beta is available, if there's interest. I'm not sure who's currently maintaining this hack, and I'm not really interested in maintaining it.<br /><br />Questions:<br /><br />1) What version # should this be called?<br /><br />2) I know that Max Fisch and Allen Ayers have worked on the hack. Is there anyone else, so that I can list the authors?
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#221151 - 12/07/02 09:24 AM Re: Proposed fix for timeoffset for Calendar 3.0 [Re: joeuser]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I haven't looked at 3.0's code so I couldn't say for sure but I know you know your stuff Dave so I'm sure it's all good. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Yeah the extra overhead should only occur during calendar viewing. The last time I seen it running here I recall a good 30-40 queries being needed when there was a few events listed. Is there a way to cut them down? Just a thought. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#221152 - 12/07/02 09:27 AM Re: Proposed fix for timeoffset for Calendar 3.0 [Re: joeuser]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
GameJag ? I believe started things rolling. Max picked it up from him and moved it forward. Then Allen got the templates/xhtml into working order and some fixes too, I believe. I would say those are the 3 main authors prior to your update. Anyone else have some input on this?
_________________________
~Dave
ChattersOnline.com

Top
#221153 - 12/07/02 10:06 AM Re: Proposed fix for timeoffset for Calendar 3.0 [Re: sjsaunders]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
30-40 queries<br /><br />This is probably what you were seeing:<br /><br /><pre><font class="small">code:</font><hr>// loop through all the days of the month<br />while ( $d <= $lastday) {<br /> ...<br /> select E_ID,E_Date,E_Time,E_Location,B_Subject, B_Number, B_Replies<br /> FROM w3t_Events, w3t_Posts<br /> WHERE E_Date >= '$lowdate'<br /> AND E_Date < '$highdate'<br /> AND B_Number = E_Number<br /> AND B_Board = '$Board_q'<br /> ...<br />}</pre><hr><br /><br /><br />(This query originally was also selecting U_Username, but the username wasn't used anywhere, so I simply took it out, and there was no need to add a join to the users table.)<br /><br />Maybe that's what dimopoulos was talking about in his Fetching data in an array post.<br /><br />I suppose the query could be done before the loop, extracting the data for the whole month, and storing it in an associative array. Do you think it would make sense to do that?


Edited by Dave_L (12/07/02 10:13 AM)
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#221154 - 12/07/02 11:02 AM Re: Proposed fix for timeoffset for Calendar 3.0 [Re: joeuser]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Yeah I think it would be much better done that way. I'm not much for calendars but those that use them alot will have a lot less load on their servers. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#221155 - 12/07/02 11:28 AM Re: Proposed fix for timeoffset for Calendar 3.0 [Re: joeuser]
Pappy Offline
Member

Registered: 11/17/00
Posts: 235
Loc: Germany (US Citizen)
I am really not too sure about the Load issues but I used a version 3.1 and redid some of the tags so that it would display properly on all the stylesheets. (IE month and other text areas that used the default black text. Also I added some stuff to change the border color on the current day for stylesheets that had light table and dark table using the same or similar backgroud colors. My server is at www.greatlakesalliance.com and our Calendars are used fairly often and have events for most days. I am really a newbie when it comes to actually writing any code that works. Lots of trial and error here and I am not sure if any of the stuff I have done is "optimized" I would be very interested in any new stuff done with this. Also Dave, I really apreciate all the effort you and the other Users here have done over the past couple years here and at wwwthreads when it was still live. <br /><br />Justdave, you used to have a Calendar pal in one of the older IIP versions (3.x I believe?) is there any way I can get a copy of that one from you so I can modify it to work with the current version of threads/IIP?<br /><br />Thanks a million everyone!!<br /><br />Pappy

Top
#221156 - 12/07/02 12:07 PM Re: Proposed fix for timeoffset for Calendar 3.0 [Re: MercAqua]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
The calendar pal is laying around here somewhere. I'll dig it out this coming week and put in to the next minor upate for IIP. I have IIP working with the upcoming release of .threads and will post the updated IIP when .threads 6.2 is pubicly available. <br /><br />As far a server load with the calendar addon I don't think smaller sites will have much of an issue with it. I was considering the "what if" when a site has 10 or 20 users browsing the calendar and possibly creating 300 - 800 queries in that area alone.<br /><br />I think Dave_L will have this problem resolved though. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#221157 - 12/07/02 08:23 PM Re: Proposed fix for timeoffset for Calendar 3.0 [Re: sjsaunders]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Ok, I've moved the query out of the loop. The events are now stored in an array. Here's the header comment for the function that stores the data:<br /><br />// Get all the events for the specified month.<br />//<br />// The events are extracted from the database Events table, and stored in the<br />// array $events_for_month, which is indexed by the day of the month.<br />//<br />// Events are stored in ascending order of date (E_Date).<br />//<br />// Examples:<br />// $events_for_month[5] is an array containing the events for the fifth day of the month.<br />// $events_for_month[5][2] is an array containing the third event for the fifth day of the month.<br />// $events_for_month[5][2]['E_Location'] is a scalar containing the E_Location column for the third event<br />// for the fifth day of the month.<br /><br />function get_events_for_month($month, $year) {<br /><br />Does this look reasonable? It seems to work correctly.


Edited by Dave_L (12/07/02 08:33 PM)
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#221158 - 12/07/02 10:37 PM Re: Proposed fix for timeoffset for Calendar 3.0 [Re: joeuser]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I don't see any problems with that at all. <img src="/forum/images/graemlins/smile.gif" alt="" /> I bet that dropped the query count considerably too. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#221159 - 12/07/02 10:56 PM Re: Proposed fix for timeoffset for Calendar 3.0 [Re: sjsaunders]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
I didn't notice the query count before, but it's about 11 now. The number of queries has been reduced by one less than the number of days in the month.<br /><br />I was wondering if that three-dimensional array might take up a lot of memory, if there were a large number of events for the month.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#221160 - 12/07/02 11:05 PM Re: Proposed fix for timeoffset for Calendar 3.0 [Re: joeuser]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
As far as using the array for storage untill it's sent to the browser I don't think it will be a problem since .threads does the same thing for it's displays before being sent to the templates.
_________________________
~Dave
ChattersOnline.com

Top
#221161 - 12/08/02 04:42 AM Re: Proposed fix for timeoffset for Calendar 3.0 [Re: joeuser]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
Thanks Dave,<br /><br />That was exactly what I wanted to do = reduce the number of queries.<br /><br />Warm regards<br /><br />Nikos
_________________________
Nikos

Top
#221162 - 12/08/02 05:00 PM Re: Proposed fix for timeoffset for Calendar 3.0 [Re: sari]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Re: fixing the time offset<br /><br />I assume this refers to making the date/times for events always display in the user's time zone, while being stored in the database in the server's time zone?<br /><br />If so, there are a number of changes required in addition to the above. <br /><br />But I'm wondering if it's desirable to make these time zone adjustments.<br /><br />Scenario 1:<br /><br />I'm using the calendar to announce a meeting in an IRC chatroom on Jan 15 at 6PM my time. In this case, the time zone adjustment is appropriate, since I want other users to see the date/time displayed in their time zone.<br /><br />Scenario 2:<br /><br />Same as above, except I'm going to be in another city in another time zone on Jan 15. Hmmm ... this gets trickier. I'll have to take into account the difference between the time zone I'm in now, and the one I'll be in on Jan 15.<br /><br />Scenario 3:<br /><br />I'm using the calendar to announce a rock-climbing event at Devil's Tower, Wyoming on July 7 at noon. Obviously, everyone attending the event will be in the same time zone, and the date/time should be displayed in the time zone for Devil's Tower, regardless of what time zone users are in now. So in this case, it's preferable that no time zone conversion be done.<br /><br />Any suggestions? Should this hack be left as it is now, with no time zone corrections?
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#221163 - 12/08/02 05:26 PM Re: Proposed fix for timeoffset for Calendar 3.0 [Re: joeuser]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
If it's a local event then I would venture to say that all users of the site have their time offset set accordingly and the correct time will be displayed no matter what. I think the offset time should be carried over to match .threads.
_________________________
~Dave
ChattersOnline.com

Top
#221164 - 12/08/02 08:41 PM Re: Proposed fix for timeoffset for Calendar 3.0 [Re: sjsaunders]
Lunatik Offline
User

Registered: 06/18/02
Posts: 28
This is how it works and it has been working since I made these changes. When it get stored into the database it gets stored as the server time. Whever a user goes in and changes their offset it will display the time in their timezone. If you notice when you post a new event it adjusts it to the server time and when you view it it adjusts it to the user time.<br /><br />The proposed changes have not made and major impact as far as I can tell. <br /><br />Your Senarious make a valid point and a simple soulution to it is to go into your user settings and change it to the timezone you are in.


Edited by Lunatik (12/08/02 08:51 PM)

Top
#221165 - 12/08/02 09:09 PM Re: Proposed fix for timeoffset for Calendar 3.0 [Re: sari]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
I guess it depends on what the calendar is being used for.<br /><br />JustDave's and your opinions sound reasonable, so I'll leave the time zone adjustments in when I upload the 6.2-compatible version. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#221166 - 12/08/02 09:29 PM Re: Proposed fix for timeoffset for Calendar 3.0 [Re: joeuser]
Lunatik Offline
User

Registered: 06/18/02
Posts: 28
Thanks. Less work for me to do. <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#221167 - 12/19/02 08:36 AM Re: Proposed fix for timeoffset for Calendar 3.0 [Re: sari]
PhotoPost Offline
Hacker

Registered: 02/03/02
Posts: 989
Did someone make a PAL for IIP to show a mini-calendar?
_________________________
[]http://www.danasoft.com/vipersig.jpg[/]
Viper Alley - http://www.viperalley.com
Extreme Fitness - http://www.extremefitness.com[/b]

Top
#221168 - 12/19/02 10:30 AM Re: Proposed fix for timeoffset for Calendar 3.0 [Re: gailg]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Not that I'm aware of. I had made an "upcoming events" pal a while back that simply displayed a list of events that were coming up. I will be adding this to IIP's zip file at some point.
_________________________
~Dave
ChattersOnline.com

Top
#221169 - 12/19/02 10:46 AM Re: Proposed fix for timeoffset for Calendar 3.0 [Re: sjsaunders]
PhotoPost Offline
Hacker

Registered: 02/03/02
Posts: 989
Ah, the list of events would be nice. Thanks!
_________________________
[]http://www.danasoft.com/vipersig.jpg[/]
Viper Alley - http://www.viperalley.com
Extreme Fitness - http://www.extremefitness.com[/b]

Top
#221170 - 01/03/03 05:41 PM New version [Re: Maze_Brendan]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
I'm closing this thread and refer to the new version in this thread which is updated for UBB.threads 6.2.
_________________________
/Gardener | Complete list of my mods

Top
Page 1 of 7 1 2 3 4 5 6 7 >



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks