php forum
php mysql forum
php mysql smarty
 
Page 1 of 7 1 2 3 4 5 6 7 >
Topic Options
#229473 - 12/18/02 03:44 PM Calendar - 6.2
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
[:"red"]WARNING: THERE ARE SOME ERRORS IN THE DOCUMENTATION FOR THIS HACK. YOU MAY WANT TO DELAY USING THIS HACK UNTIL THE ERRORS HAVE BEEN CORRECTED.[/] <br /> <br />
Code:
NAME:             Calendar <br />VERSION:          Dave_L.0.1 (temporary until someone decides what number this should be) <br />DESCRIPTION:      Enables one or more forums to be used as event calendars. <br />WORKING UNDER:    UBB.threads 6.2br2 <br />PREREQUISITES:    none <br />AUTHORS:          Gamejag, Max Fisch, Allen Ayers, Dave_L <br />CREDITS:          JustDave, Lunatik and others <br />DEMO:             none <br />FILES ALTERED:    postlist.php, showthreaded.php (optional changes) <br />DATABASE ALTERED: yes <br />NEW FILES:        addevent.php, newevent.php, postlist_event.php, <br />                  templates/default/addevent_preview.tmpl, templates/default/newevent.tmpl, <br />                  images/red_arrow.gif, images/red_arrow_1.gif <br /> <br />HISTORY: <br />  2002-12-18  Dave_L  Dave_L.0.0 <br />    Updated for UBB.threads 6.2 <br />    Use user's time zone offset and date/time format display preferences. <br />    Moved most of the postlist.php changes to a separate file postlist_event.php. <br />    Moved events table query in postlist_event.php out of loop for efficiency. <br />  2002-12-18  Dave_L  Dave_L.0.1 <br />    Corrected description above.
<br /> <br />----------------------------- <br /> <br />Notes: <br /> <br />1) This was based on the version of the Calendar hack in this post: http://www.threadsdev.com/threads/php/showthreaded.php?Cat=&Board=beta&Number=53193 <br /> <br />2) I didn't know what version this should be. Until someone else decides this, I temporarily numbered it "Dave_L.0.0". <br /> <br />3) As an experiment, I provided most of the change-instructions using BeyondCompare file-difference-report files. <br /> <br />----------------------------- <br /> <br />Updated to version Dave_L.0.1 - the only change was correcting the description above. I had copied the header info from another hack, and forgot to change it.


Attachments
62190-calendar-Dave_L-0-1.zip (160 downloads)



Edited by Dave_L (01/15/03 12:34 PM)
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#229474 - 12/18/02 08:21 PM Re: Calendar - 6.2 [Re: joeuser]
PhotoPost Offline
Hacker

Registered: 02/03/02
Posts: 989
Dave, do you have a site where I can see this?
_________________________
[]http://www.danasoft.com/vipersig.jpg[/]
Viper Alley - http://www.viperalley.com
Extreme Fitness - http://www.extremefitness.com[/b]

Top
#229475 - 12/18/02 09:42 PM Re: Calendar - 6.2 [Re: gailg]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
I don't have the hack installed on a public site. You might check the older calendar thread(s) to see if someone has a demo site. The 6.2 hack is basically the same as version 3.0.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#229476 - 12/20/02 03:11 PM Re: Calendar - 6.2 [Re: joeuser]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Michael,<br /><br /> If you would like to see the calendar visit my site<br /><br />http://www.reeftalk.com<br />
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#229477 - 12/22/02 01:53 PM Re: Calendar - 6.2 [Re: sf49rminer]
Lunatik Offline
User

Registered: 06/18/02
Posts: 28
Woot. My name in the list <img src="/forum/images/graemlins/smile.gif" alt="" /> glad to be of help. Once 6.2 Beta 3 comes out ill test it out myself.

Top
#229478 - 12/26/02 06:36 PM Re: Calendar - 6.2 [Re: sari]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Dave,<br /><br /> You think you can tell me how to read a beyond compare difference report? I see nowhere in beyond compare to load it? I am missing something here. I can not read this to be able to install it.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#229479 - 12/26/02 07:01 PM Re: Calendar - 6.2 [Re: sf49rminer]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
They're just HTML files, so your browser should display them.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#229480 - 12/26/02 07:13 PM Re: Calendar - 6.2 [Re: joeuser]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
LOL I know I figured that out after beating myself over the head for asking such a stupid question. Just had me all turned around with the beyond compare thing. I was looking for some special thing until I woke up and brought them up in the browser.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#229481 - 12/31/02 06:28 AM Re: Calendar - 6.2 [Re: joeuser]
sportbikes Offline
Member

Registered: 10/29/02
Posts: 167
Loc: So Cal USA
I was wondering...<br /> - Does this use any kind of cache. I read in the previous version that large boards may have problems with it. I have a reasonably large baord, so I'm concerned.<br /><br /> - Is there a Pal box for v. 6.2?<br /><br />Thanks
_________________________
mike
www.esportbike.com

Top
#229482 - 12/31/02 07:27 AM Re: Calendar - 6.2 [Re: alsalmicom]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
This hack doesn't use any sort of cache.<br /><br />For the postlist, the number of queries was reduced by fetching all the events for a month with one query. The old version did a separate query for each day of the month.<br /><br />JustDave would have to answer the IIP question.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#229483 - 01/01/03 04:04 PM Re: Calendar - 6.2 [Re: joeuser]
sportbikes Offline
Member

Registered: 10/29/02
Posts: 167
Loc: So Cal USA
Was there a way to populate the calendar with the Birthdates automatically? I thought I saw that somewhere, but I can't find it. Maybe it was never done?<br /><br />
_________________________
mike
www.esportbike.com

Top
#229484 - 01/01/03 05:56 PM Re: Calendar - 6.2 [Re: alsalmicom]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I think Nikos put it together.<br /><br />I never got a chance to use it (yet). We need to find it and I should add it to the instructions. <br /><br />I haven't installed the calendar on any boards yet under 6.2, but I have a client that I probably will need to, so I'll be figuring it out eventually.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#229485 - 01/03/03 05:45 PM Re: Calendar - 6.2 [Re: joeuser]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
From what I could see this should be the latest and the greatest version of this mod, so I closed the other thread that was open. Please correct me if I'm wrong, I don't use the mod myself so I haven't really followed the development of it.
_________________________
/Gardener | Complete list of my mods

Top
#229486 - 01/03/03 07:19 PM Re: Calendar - 6.2 [Re: c0bra]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
I based the version I posted here on the latest version I could find in the other thread, so closing the other thread probably makes sense, now that 6.2 is released.<br /><br />I hereby turn over maintenance of this hack to ... everyone. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />The first task is to decide on a better version number.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#229487 - 01/03/03 09:37 PM Re: Calendar - 6.2 [Re: joeuser]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
We ought to name our hacks with the threads version number, but add letters.<br /><br />Calendar 6.2.a<br />Calendar 6.2.b<br /><br />It would be easier to know what version it was written for. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#229488 - 01/03/03 11:14 PM Re: Calendar - 6.2 [Re: Daine]
Zackary Offline
Member

Registered: 03/01/01
Posts: 652
Loc: West Fargo, ND USA
Added this to my test board tonight to check it out. Looks like there are a number of documentation changes that need to be made. <img src="/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />I was able to muddle through but a number of items didn't match up and I had to do some heavy searching to find the appropriate places to edit. <br /> <br />Seems to be working though. <img src="/forum/images/graemlins/smile.gif" alt="" /> Nice mod! <br /> <br /> <br />[EDIT: Should have mentioned I'm using 6.2 release <img src="/forum/images/graemlins/tongue.gif" alt="" />]


Edited by Zackary (01/03/03 11:16 PM)

Top
#229489 - 01/04/03 06:14 AM Re: Calendar - 6.2 [Re: ]
caymuc Offline
Enthusiast

Registered: 01/17/01
Posts: 449
I think this hack developed to be one of the "must-have"s for everyone. <br />What a pity that this calender does not support language files yet. <br />And for international versions it is essential to be able to <br />- exchange AM/PM against a 24hrs display <br />- switch to a display where Monday is 1st day of the week intstead of sunday. <br /> <br />Of course we could try to develope a German version from it (and discuss it on the German board), embedding the neccessary changes. The problem would be only that then two separate calendar hacks would be to maintain instead of only one, a situation that imho. should be avoided.... <br /> <br />Also I want to draw your attention again to a wonderful hack that combines Josh's phantastic BIRTHDAY hack with this cool one: it is displaying all found birthdays automatically in the calendar. This hack is burried deep inside this thread: <br />http://www.threadsdev.com/threads/php/sh...o=&vc=1 <br />Although I don't get it working with the new calendar hack, I think it is well worth not to be forgotten <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Carl
Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')

Top
#229490 - 01/07/03 01:01 PM Re: Calendar - 6.2 [Re: rodrigo1]
Wando Offline
Power User

Registered: 04/10/02
Posts: 64
Loc: UK
worked a treat!<br /><br />Even I managed this one!!!!!!!!<br /><br />demo on www.audi-sport.net
_________________________
www.planet-audi.net

Top
#229491 - 01/07/03 01:05 PM Re: Calendar - 6.2 [Re: algorewon]
Pappy Offline
Member

Registered: 11/17/00
Posts: 235
Loc: Germany (US Citizen)
Yes Great Hack Thanks Dave <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#229492 - 01/07/03 02:42 PM Re: Calendar - 6.2 [Re: joeuser]
Turbosport Offline
Member

Registered: 09/08/01
Posts: 157
Loc: Kent, UK.
Am I missing somthing i have had the hack installed for ages, but just went to upgrade to this version and the installation was fine but the addpost.php instructions seem all wrong, is this hack ok for 6.2 RC ?<br /><br />I cant find this bit for instance:<br />// ------------------------------------------------------------- <br />// If HTML is off then we need to get rid of < and > in the body <br /> if ( ($convert != "html") && ($convert !="both") ) { <br /> $PrintBody = str_replace("<","&lt;",$PrintBody); <br /> $PrintBody = str_replace(">","&gt;",$PrintBody); <br /> } <br /> $html -> send_header($ubbt_lang['PREV_POST'],$Cat,0,$user,$Extra,$ReadPerm); <br /><br /> <br /> $FormSubject = $html -> form_encode($FormSubject); <br /> $FormBody = $html -> form_encode($FormBody); <br /> $FormSubject = str_replace("&","&amp;",$FormSubject); <br /> $FormBody = str_replace("&","&amp;",$FormBody); <br /> $formLocation = $html -> form_encode($formLocation); <br /> $formLocation = str_replace("&","&amp;",$formLocation); <br />
_________________________
Regards
Clint

Running on WIN2003 Web Server.

Paranoid people get followed too!

Top
#229493 - 01/07/03 02:49 PM Re: Calendar - 6.2 [Re: groov_richmond]
Turbosport Offline
Member

Registered: 09/08/01
Posts: 157
Loc: Kent, UK.
I have this which is near<br />// -------------------------------------------------------------<br />// If HTML is off then we need to get rid of < and > in the body<br /> if ( ($convert != "html") && ($convert !="both") ) {<br /> $PrintBody = str_replace("<","&lt;",$PrintBody);<br /> $PrintBody = str_replace(">","&gt;",$PrintBody);<br /> }<br /> else {<br />// No server side includes<br /> $PrintBody = preg_replace("/<!--(.|\n)*-->/","",$PrintBody);<br /> }
_________________________
Regards
Clint

Running on WIN2003 Web Server.

Paranoid people get followed too!

Top
#229494 - 01/07/03 03:13 PM Re: Calendar - 6.2 [Re: groov_richmond]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
I beleive the part you need to hack in is a formlocation just place it under these <br /> <br />$FormSubject = $html -> form_encode($FormSubject); <br />$FormBody = $html -> form_encode($FormBody); <br />$FormSubject = str_replace("&","&amp;",$FormSubject); <br />$FormBody = str_replace("&","&amp;",$FormBody); <br />$formLocation = $html -> form_encode($formLocation); <br />$formLocation = str_replace("&","&amp;",$formLocation);
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#229495 - 01/08/03 12:51 PM Re: Calendar - 6.2 [Re: sf49rminer]
Lunatik Offline
User

Registered: 06/18/02
Posts: 28
This version has been working fine for me. The only thing I would like to see is an editevent.php file.

Top
#229496 - 01/08/03 02:09 PM Re: Calendar - 6.2 [Re: sari]
Pappy Offline
Member

Registered: 11/17/00
Posts: 235
Loc: Germany (US Citizen)
yep agreed as a work around you can edit the events safely through phpmyadmin <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#229497 - 01/10/03 08:19 AM Re: Calendar - 6.2 [Re: MercAqua]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
well, installed it, but it's not working! i dont get no calendar appearing, also no error messages to enable me to de-bug!<br />ideas??<br /> i probably buggered up on the editing of the files, because they didnt tally up, so i had to give it an educated guess!

Top
#229498 - 01/11/03 09:48 AM Re: Calendar - 6.2 [Re: joeuser]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
I've started using this hack on my production board, and have decided it needs several changes. If I have time, I'd like to change it as follows: <br /> <br />1) Get rid of the E_Location column. Many events don't really have a "location", and it would be much easier to just use the thread title instead. This would also simplify the installation of the hack, since many of the changes are only needed to support the location column. <br /> <br />2) Get rid of the E_Time column. This is unnecessary, since the E_Date column contains both the date and time. <br /> <br />3) Get rid of the other unused columns: E_Duration, E_Recurring, E_Recurtype, E_End, E_Frequency, E_Days. They could always be added back in later if support for them were needed. <br /> <br />4) Add a column E_AdjustTime. If 1, the event date/time is adjusted according to the viewer's time zone offset. If 0, the event date/time is not adjusted. The former setting would be appropriate for online events, the latter for "physical" events. <br /> <br />5) Add support for editing the date/time of an event. <br /> <br />6) Add changes to showflat.php for displaying the event date/time. <br /> <br />7) Add dimopoulos's changes that use the Profile Birthdays modification to populate the birthdays automatically. <br /> <br />Any feedback on these changes? <br /> <br />------- <br />Update: <br /> <br />I've revised the hack to effect all of the above changes except for 4, 5 and 7. (7 is a new item referred to in a post below.) I'm trying to figure out if 4 is feasible, and how much effort 5 will take. I've also updated the hack for UBB.threads 6.2.1, which should be released very soon. I'll try to get all this done, including fixing the documentation, within the next few days. <br /> <br />------- <br />Update: <br /> <br />Due to time constraints, I'm abandoning work on this hack. With the above changes, it's gotten far too complicated, is incompatible with the current version, and maintaining it will be too much of a headache. <img src="/forum/images/graemlins/frown.gif" alt="" />


Edited by Dave_L (01/28/03 05:57 PM)
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#229499 - 01/11/03 09:55 AM Re: Calendar - 6.2 [Re: joeuser]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
You have hit on everything I can think of that I don't like about this addon.<br /><br />Looking forward to seeing your improvements! <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#229500 - 01/11/03 01:32 PM Re: Calendar - 6.2 [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Mr. Eagle Eye - Changes sound good. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#229501 - 01/12/03 04:49 AM Re: Calendar - 6.2 [Re: Daine]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
the location part is very important to me.<br />because i run a car website, the calendar (will be, if i ever get it working) to post up dates and locations of meets throughout the country.

Top
#229502 - 01/12/03 05:04 AM Re: Calendar - 6.2 [Re: Luka_dup1]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
But is there any problem with simply stating the location in the thread title?
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#229503 - 01/12/03 05:34 AM Re: Calendar - 6.2 [Re: joeuser]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
nah, thats true. i could always do that i guess

Top
#229504 - 01/13/03 09:08 AM Re: Calendar - 6.2 [Re: Daine]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
Josh and Mike <br /> <br />Below the update for the Calendar 6.2 modification which uses the Profile Birthdays modification to populate the birthdays automatically. <br /> <br />Files altered: postlist_event.php <br /> <br />1. Find <br />
Code:
 <br />			if ($resp &gt; 0) <br />			{ <br />				if ($tm == '0') <br />				{ <br />					[:"blue"]$Evnt = "&lt;a href=\"$config[phpurl]/$mode.php? <br />					     Cat=$Cat&amp;amp;Board=$Board&amp;amp;Number=$Number&amp;amp;view=$view <br />					     &amp;amp;sb=$sb&amp;amp;o=$o&amp;amp;mon=$mon&amp;amp;year=$year&amp;amp;cs=$cs\"&gt; <br />					     $Location:&lt;br /&gt;$Subject&lt;/a&gt;, ($resp responses)";[/] <br />				} <br />				else <br />				{ <br />					$tm = strtotime($html -&gt; convert_time($tm, $user['U_TimeOffset'])); <br />					$h = strtolower(strftime ("%I", $tm)); <br />					$m = strtolower(strftime ("%M", $tm)); <br />					$mer = strtolower(strftime ("%p", $tm)); <br />					[:"blue"]$Evnt = "&lt;a href=\"$config[phpurl]/$mode.php?Cat=$Cat&amp;amp; <br />					     Board=$Board&amp;amp;Number=$Number&amp;amp;view=$view&amp;amp;sb=$sb&amp;amp; <br />					     o=$o&amp;amp;mon=$mon&amp;amp;year=$year&amp;amp;cs=$cs\"&gt; <br />					     $Location, $h:$m $mer:&lt;br /&gt; $Subject&lt;/a&gt;, ($resp responses)";[/] <br />				} <br />			} <br />			else <br />			{ <br />				if ($tm == '0') <br />				{ <br />					[:"blue"]$Evnt = "&lt;a href=\"$config[phpurl]/$mode.php?Cat=$Cat&amp;amp;Board=$Board <br />					     &amp;amp;Number=$Number&amp;amp;view=$view&amp;amp;sb=$sb&amp;amp;o=$o&amp;amp;mon=$mon <br />					     &amp;amp;year=$year&amp;amp;cs=$cs\"&gt;$Location:&lt;br /&gt;$Subject&lt;/a&gt;";[/][/] <br />				} <br />
<br />Change it to <br />
Code:
 <br />			if ($resp &gt; 0) <br />			{ <br />				if ($tm == '0') <br />				{ <br />					[:"blue"]$Evnt = "&lt;a href=\"$config[phpurl]/$mode.php?Cat=$Cat&amp;amp;Board=$Board <br />					     &amp;amp;Number=$Number&amp;amp;view=$view&amp;amp;sb=$sb&amp;amp;o=$o&amp;amp;mon=$mon <br />					     &amp;amp;year=$year&amp;amp;cs=$cs\"&gt;$Location:&lt;br /&gt;$Subject&lt;/a&gt;, ($resp responses)";[/] <br />				} <br />				else <br />				{ <br />					$tm = strtotime($html -&gt; convert_time($tm, $user['U_TimeOffset'])); <br />					$h = strtolower(strftime ("%I", $tm)); <br />					$m = strtolower(strftime ("%M", $tm)); <br />					$mer = strtolower(strftime ("%p", $tm)); <br />					[:"blue"]$Evnt = "&lt;a href=\"$config[phpurl]/$mode.php?Cat=$Cat&amp;amp;Board=$Board <br />					     &amp;amp;Number=$Number&amp;amp;view=$view&amp;amp;sb=$sb&amp;amp;o=$o&amp;amp;mon=$mon <br />					     &amp;amp;year=$year&amp;amp;cs=$cs\"&gt;$Location, $h:$m $mer: <br />					     &lt;br /&gt; $Subject&lt;/a&gt;, ($resp responses)";[/] <br />				} <br />			} <br />			else <br />			{ <br />				if ($tm == '0') <br />				{ <br />// 20030113 - Birthday Update New Start <br />					if ( $Location == "Birthday" ) <br />					{ <br />						$Evnt = $Subject; <br />					} <br />					else <br />					{ <br />// 20030113 - Birthday Update New End <br />						[:"blue"]$Evnt = "&lt;a href=\"$config[phpurl]/$mode.php?Cat=$Cat&amp;amp; <br />					             Board=$Board&amp;amp;Number=$Number&amp;amp;view=$view&amp;amp;sb=$sb&amp;amp; <br />					             o=$o&amp;amp;mon=$mon&amp;amp;year=$year&amp;amp;cs=$cs\"&gt; <br />					             $Location:&lt;br /&gt;$Subject&lt;/a&gt;";[/] <br />// 20030113 - Birthday Update New Start <br />					} <br />// 20030113 - Birthday Update New End <br />				} <br />
<br /> <br />2. Find <br />
Code:
 <br />			// draw horizontal bar before each event except the first <br />			if ( !$first_event_for_day ) <br />			{ <br />				$events .= "&lt;hr width=95% align=\"center\" /&gt;"; <br />			} <br /> <br />			$events .= "&lt;font color=\"red\"&gt;&lt;b&gt;&amp;rsaquo;&amp;rsaquo;&amp;rsaquo;&lt;/b&gt;&lt;/font&gt; $Evnt&lt;br /&gt;"; <br />
<br />and CHANGE it to <br />
Code:
 <br />			// draw horizontal bar before each event except the first <br />// 20030113 - Birthday Update Old Start <br />//			if ( !$first_event_for_day ) <br />// 20030113 - Birthday Update Old End <br />// 20030113 - Birthday Update New Start <br />			if ( (!$first_event_for_day) and ($Location &lt;&gt; "Birthday") ) <br />// 20030113 - Birthday Update New End <br />			{ <br />				$events .= "&lt;hr width=95% align=\"center\" /&gt;"; <br />			} <br /> <br />// 20030113 - Birthday Update New Start <br />			if ( $Location == "Birthday" ) <br />			{ <br />				$events .= "&lt;font color=\"blue\"&gt;&lt;b&gt;&amp;rsaquo;&lt;/b&gt;&lt;/font&gt; $Evnt&lt;br /&gt;"; <br />			} <br />			else <br />			{ <br />// 20030113 - Birthday Update New End <br />				$events .= "&lt;font color=\"red\"&gt;&lt;b&gt;&amp;rsaquo;&lt;/b&gt;&lt;/font&gt; $Evnt&lt;br /&gt;"; <br />// 20030113 - Birthday Update New Start <br />			} <br />// 20030113 - Birthday Update New End <br />
<br /> <br />3. Find (function get_events_for_month($month, $year)) <br /> <br />
Code:
 <br />	[:"blue"]$lowdate  = mktime(0, 0, 0, $month,   1, $year) - <br />                           $user['U_TimeOffset'] * 3600; // first day of this month, time 00:00:00 <br />	$highdate = mktime(0, 0, 0, $month+1, 1, $year) - <br />                           $user['U_TimeOffset'] * 3600; // first day of next month, time 00:00:00 <br />	$birthMonth	=	mktime( 0, 0, 0, $month, 1, $year );[/] <br />	$Board_q = addslashes($Board); <br />
<br />and CHANGE it to <br />
Code:
 <br />	[:"blue"]$lowdate  = mktime(0, 0, 0, $month,   1, $year) - <br />                           $user['U_TimeOffset'] * 3600; // first day of this month, time 00:00:00[/] <br />	[:"blue"]$highdate = mktime(0, 0, 0, $month+1, 1, $year) - <br />                           $user['U_TimeOffset'] * 3600; // first day of next month, time 00:00:00[/] <br /> <br />	$events_for_month = array(); <br />// 20030113 - Birthday Update New Start <br />	// Construct the query to check for the birthday modification <br />	$strQuery	=	" <br />    	SHOW	FIELDS <br />		FROM	{$config['tbprefix']}Users <br />	"; <br /> <br />	$result = $dbh -&gt; do_query($strQuery); <br /> <br />	$intFieldsFound	=	0; <br /> <br />	// Cycle through the fields and increase the counter where appropriate <br />	while ( $arrDataLine = $dbh -&gt; fetch_array($result) ) <br />	{ <br />		if ( $arrDataLine[0] == "U_BirthYear" 	) { $intFieldsFound++; 	}; <br />		if ( $arrDataLine[0] == "U_BirthDay"	) {	$intFieldsFound++;	}; <br />		if ( $arrDataLine[0] == "U_BirthMonth"	) { $intFieldsFound++;	}; <br /> <br />		// Exit the loop if all three fields have been found <br />		if ( $intFieldsFound == 3 ) <br />		{ <br />			break; <br />		} <br />	} <br /> <br />	$dbh -&gt; finish_sth($result); <br /> <br />	if ( $intFieldsFound == 3 ) <br />	{ <br />		$query = " <br />			SELECT U_Username, U_Birthday, U_BirthYear, U_Number <br />			FROM   {$config['tbprefix']}Users <br />			WHERE  U_BirthMonth = FROM_UNIXTIME($birthMonth,'%b') <br />			ORDER BY U_Username <br />			"; <br />		$result = $dbh-&gt;do_query($query); <br />		while(list($bUsername, $bBirthday, $bBirthYear, $bNumber ) = $dbh-&gt;fetch_array($result)) <br />		{ <br /> <br />			if ( $bBirthYear &gt; 0 ) <br />			{ <br />				$bAge	=	$year - $bBirthYear; <br />				$bExtra =	" ($bAge)"; <br />			} <br />			else <br />			{ <br />				$bExtra	=	""; <br />			} <br /> <br />			$arrData['E_ID']		=	0; <br />			$arrData['E_Date']		=	mktime(0, 0, 0, $month, $bBirthday, $year) - $user['U_TimeOffset'] * 3600; // first day of this month, time 00:00:00 <br />			$arrData['E_Time']		=	0; <br />			$arrData['E_Location']	=	"Birthday"; <br />			$arrData['B_Subject']	=	"&lt;a href=\"$config[phpurl]/showprofile.php?Cat=$Cat&amp;amp;User=$bNumber&amp;amp;what=\"&gt;$bUsername$bExtra&lt;/a&gt;&lt;br /&gt;"; <br />			$arrData['B_Number']	=	0; <br />			$arrData['B_Replies']	=	0; <br /> <br />			$date = getdate($arrData['E_Date'] + $user['U_TimeOffset'] * 3600); <br />			$mday = $date['mday']; <br /> <br />			if (empty($events_for_month[$mday])) <br />			{ <br />				$events_for_month[$mday] = array(); <br />			} <br />			array_push($events_for_month[$mday], $arrData); <br />		} <br /> <br />		$dbh-&gt;finish_sth($result); <br />	} <br />// 20030113 - Birthday Update New End <br /> <br /> <br />	$Board_q = addslashes($Board); <br />
<br /> <br />4. Find this: <br />
Code:
 <br />// The second parameter MYSQL_ASSOC in the call to sql::to fetch_array() anticipates a <br />// requested change to that method, which will increase efficiency.  Until that change <br />// is made, the parameter has no effect, but there's harm in leaving it there. <br /> <br />	$events_for_month = array(); <br />	while($row = $dbh-&gt;fetch_array($result, MYSQL_ASSOC)) { <br />
<br />and CHANGE it to this <br />
Code:
 <br />// The second parameter MYSQL_ASSOC in the call to sql::to fetch_array() anticipates a <br />// requested change to that method, which will increase efficiency.  Until that change <br />// is made, the parameter has no effect, but there's harm in leaving it there. <br /> <br />	while($row = $dbh-&gt;fetch_array($result, MYSQL_ASSOC)) { <br />
<br /> <br />NOTE: The code in [:"blue"]BLUE[/] is in ONE line only and has been split for aesthetic purposes only! <br /> <br />That should do the trick <img src="/forum/images/graemlins/wink.gif" alt="" /> <br /> <br />Warm regards <br /> <br />Nikos <br /> <br />PS: Sorry that it took me so long to get this thing but I have been awfully busy lately <img src="/forum/images/graemlins/tongue.gif" alt="" /> <br /> <br />[b]Edit:[b] <br />Fixed small bug with Age calculation when the Age was not set. <br />Added code to check for the Profile Birthday modification and display the birthdays automatically on the calendar. If the modification has not been installed the paricular code will not execute <br />2002-02-03 - Change to show the correct birthdays for users with time offset <br />


Edited by dimopoulos (02/03/03 04:00 AM)
_________________________
Nikos

Top
#229505 - 01/13/03 09:15 AM Re: Calendar - 6.2 [Re: alsalmicom]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
Mike and the rest of the gang<br /><br />Attached is a custombox6pal.php file which you can use as a birthday pal. If you already use the 6th custom box in your IIP, change its number to something that you don't use.<br /><br />Warm regards<br /><br />Nikos


Attachments
64756-custombox6pal.zip (42 downloads)

_________________________
Nikos

Top
#229506 - 01/13/03 10:07 AM Re: Calendar - 6.2 [Re: Hal_dup2]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Thanks! <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#229507 - 01/13/03 10:29 AM Re: Calendar - 6.2 [Re: Daine]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
You are welcome Mr. Bug <img src="/forum/images/graemlins/tongue.gif" alt="" /><br /><br />Warm regards<br /><br />Nikos
_________________________
Nikos

Top
#229508 - 01/13/03 11:27 AM Re: Calendar - 6.2 [Re: Hal_dup2]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
That's my assigned name from Rick. <img src="/forum/images/graemlins/grin.gif" alt="" /><br /><br />I kept posting too many bugs, he renamed me. <img src="/forum/images/graemlins/tongue.gif" alt="" /><br /><br />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#229509 - 01/15/03 10:03 AM Re: Calendar - 6.2 [Re: Daine]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi <br /> <br />Edit:......... <br />I've just installed 6.2 Calendar Sorry had an error but fixed it <br /> <br />Thanks


Edited by Liahona (01/15/03 10:09 AM)
_________________________
Thanks

Liahona

Top
#229510 - 01/15/03 10:22 AM Re: Calendar - 6.2 [Re: jfrosch]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi anyone<br /><br />Well, no sql errors anyway...........but<br /><br />I can't see any calendar when I click the calendar link on the forum?<br /><br />It just takes me to the posting page nothing else there.<br /><br />Have I missed something thats not in the attachment file at no. 1 post?<br /><br /><br /> <img src="/forum/images/graemlins/frown.gif" alt="" /><br /><br />
_________________________
Thanks

Liahona

Top
#229511 - 01/15/03 10:26 AM Re: Calendar - 6.2 [Re: jfrosch]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
I'm not sure what you mean by "calendar link on the forum". <br /> <br />Did you change the Bo_Calendar column for that forum to 'Y'?
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#229512 - 01/15/03 10:46 AM Re: Calendar - 6.2 [Re: joeuser]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi Dave<br /><br />Sorry in my haste to get it the calender going I forgot to do step 3.<br /><br />I have the calender showing now....<br /><br />So how to I populate do I <br />alter the postlist_event.php as dimopoulos says?<br /><br />
_________________________
Thanks

Liahona

Top
#229513 - 01/15/03 10:52 AM Re: Calendar - 6.2 [Re: jfrosch]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi Dave <br /> <br />I clicked on the corner of a date square on the calender that says add new event and got <br /> <br />Parse error: parse error in /home/www/hillcrestknitwear/ubbthreads/newevent.php on line 269 <br /> <br />Edit : Which is the very end line of the file ?> <br /> <br />Any ideas


Edited by Liahona (01/15/03 10:54 AM)
_________________________
Thanks

Liahona

Top
#229514 - 01/15/03 11:03 AM Re: Calendar - 6.2 [Re: jfrosch]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
That suggests that you didn't install the changes correctly. Without seeing the actual file, I can't be more specific, and we're not allowed to post that stuff here.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#229515 - 01/15/03 11:07 AM Re: Calendar - 6.2 [Re: jfrosch]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
Liahona,<br /><br />Make sure that you have followed the instructions as per the modification. When I was installing it, I used the files provided in the attachment, without realizing that I actually need to copy and paste content from existing files and then change some of it.<br /><br />The modification that I posted you can leave it out for the time being so that you don't get confused. Later on you can apply the modification along with Josh's Birthday 1.4.<br /><br />If you wish PM me and I can email you my files so that you can compare them and see where you went wrong.<br /><br />Warm regards<br /><br />Nikos
_________________________
Nikos

Top
#229516 - 01/15/03 11:09 AM Re: Calendar - 6.2 [Re: joeuser]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi<br /><br />Well, I'll check it again, but I think someone needs to redo the instructions as a few of the changes do not match and had to guess. lol
_________________________
Thanks

Liahona

Top
#229517 - 01/15/03 11:19 AM Re: Calendar - 6.2 [Re: jfrosch]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
When I have time, I was going to make the changes I proposed several posts ago, which will include redoing the instructions. If the Location column is removed, that should simplify the instructions too. <br /> <br />Maybe my experiment at using BeyondCompare difference files didn't work very well. <br /> <br />If someone else wants to fix the instructions in the meantime, feel free. <img src="/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />Nikos: I'm not sure how to deal with your changes. Should I try to incorporate those into the main hack, or should I just ignore them? On my board, I don't want to populate the calendar with birthdays, but I guess the main hack's documentation could indicate your changes as an option. This is getting complicated.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#229518 - 01/15/03 11:38 AM Re: Calendar - 6.2 [Re: joeuser]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
I agree that we need to put this as an option at the bottom of the instructions. If you want I can put a check in there that will query the fields of the Users table and if the ones for the calendar exist then the code will be executed.<br /><br />Do you think that this check will increase the overhead on the script, since it will be another query in the database?<br /><br />Warm regards<br /><br />Nikos
_________________________
Nikos

Top
#229519 - 01/15/03 11:38 AM Re: Calendar - 6.2 [Re: joeuser]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I had trouble with the instructions. <img src="/forum/images/graemlins/tongue.gif" alt="" /> But have installed this on a couple of board so far. <br /><br />If nobody beats me to it, I'll update the instructions maybe later this week. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#229520 - 01/15/03 11:45 AM Re: Calendar - 6.2 [Re: Hal_dup2]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
[]Do you think that this check will increase the overhead on the script, since it will be another query in the database?[/]<br /><br />If it's only one query for the entire month, I don't think it would be significant.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#229521 - 01/15/03 12:09 PM Re: Calendar - 6.2 [Re: joeuser]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi Dave<br /><br />Could you check if this is in the correct place<br />Inserted the red text as it says but the <br />The instructions says insert the red text ...<br /><br />==============================================<br />// --------------------- <br />// Grab the tablewrapper <br /> list($tbopen,$tbclose) = $html -> table_wrapper(); <br /><br /> <br /><br /> <br /> [:"red"]if($Calendar == 'Y') { <br /> require ('postlist_event.php'); <br />} [/] <br /><br /> <br /> include ("$thispath/templates/$tempstyle/postlist.tmpl"); <br /><br />===============================================<br />I can only find the below so I inserted it there is this correct. This [:"blue"] if (!$debug) [/] {is omitted from the instructions do I keep it in or take it out?<br /><br />===============================================<br />// Grab the tablewrapper<br /> list($tbopen,$tbclose) = $html -> table_wrapper();<br /><br /> [:"red"] if($Calendar == 'Y') { <br /> require ('postlist_event.php'); <br />} [/] <br /><br /> [:"blue"] if (!$debug) { [/] <br /> include ("$thispath/templates/$tempstyle/postlist.tmpl"); <br /> }<br /><br />// Send the footer<br /> $html -> send_footer();<br /><br />?><br />=============================================<br />
_________________________
Thanks

Liahona

Top
#229522 - 01/15/03 12:23 PM Re: Calendar - 6.2 [Re: jfrosch]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi Dave<br /><br />I found the prob with my error.....ell, this one so far.....<br />In the "newevent.htm" instruction file thee is a closing bracket missing as below in [:"blue"]blue (I inserted) [/] <br /><br /> $d = get_input('d', 'get'); <br /> $mon = get_input('mon', 'get'); <br /> $year = get_input('year', 'get'); <br /> include("$thispath/templates/$tempstyle/newevent.tmpl");<br /> [:"blue"] } (This bracketis missing) [/] <br /> $html -> send_footer(); <br />
_________________________
Thanks

Liahona

Top
#229523 - 01/15/03 12:26 PM Re: Calendar - 6.2 [Re: jfrosch]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
That looks correct. The [:"blue"]if (!$debug) {[/] was incorrectly omitted from the instructions. <br /> <br />P.S. Thanks for pointing out these errors. I'll think I'll post a warning in the first post about them.


Edited by Dave_L (01/15/03 12:28 PM)
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#229524 - 01/15/03 12:27 PM Re: Calendar - 6.2 [Re: jfrosch]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi me again<br /><br />Filled in the calendar part where you put in the event, date etc ... then posted ....but received this.<br /><br />Parse error: parse error in /home/www/hillcrestknitwear/ubbthreads/addevent.php on line 347<br /><br />What next
_________________________
Thanks

Liahona

Top
#229525 - 01/15/03 12:44 PM Re: Calendar - 6.2 [Re: jfrosch]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi<br /><br />I give up<br /><br />I took out the if (!$debug) { <br /><br />and still got this error.<br /><br />Parse error: parse error in /home/www/hillcrestknitwear/ubbthreads/addevent.php on line 347<br /><br />I give in --- going to wait till there are better instructions my head all minced up.
_________________________
Thanks

Liahona

Top
#229526 - 01/15/03 12:51 PM Re: Calendar - 6.2 [Re: jfrosch]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
[]Parse error: parse error in /home/www/hillcrestknitwear/ubbthreads/addevent.php on line 347[/]<br /><br />Strange... The addevent.php has this<br />
Code:
<br />   if (isset($user['U_Signature'])) {<br />      $user['U_Signature'] = str_replace("&amp;lt;br&amp;gt;","&lt;br /&gt;",$user['U_Signature']);<br />      $printsig = $user['U_Signature'];<br />   }<br />
<br />in those lines....<br /><br />May I suggest a hot cup of tea to get your mind off the computer for a bit and then try and have a go at it? I am sure that it is a small typo that doesn't allow you to proceed.<br /><br />Warm regards<br /><br />Nikos
_________________________
Nikos

Top
#229527 - 01/15/03 12:52 PM Re: Calendar - 6.2 [Re: joeuser]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
Dave,<br /><br />It is one query per month and it is working as expected. I have updated my previous post above, so go ahead and take it as it is and use it with the instructions.<br /><br />Warm regards<br /><br />Nikos
_________________________
Nikos

Top
#229528 - 01/16/03 01:22 PM Re: Calendar - 6.2 [Re: joeuser]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi Dave<br /><br />I've been trying to get this going for 2 days now - downloaded 3 times - uploaded after checking well, lost count.<br /><br />I can only get as far as the calendar page and get this error.....<br /><br />Parse error: parse error in /home/www/hillcrestknitwear/ubbthreads/newevent.php on line 261<br /><br />I have checked this page about a million times but still the same.<br /><br />I think it is the last bit that's wonky.<br />Can someone check this bit for me..The red bit is supposed to be deleted.<br /><br />In newevent.php<br />==================================================<br />// --------------------- <br />// Grab the tablewrapper <br /> list($tbopen,$tbclose) = $html -> table_wrapper(); <br /><br /> <br /> if (!$debug) { <br /> [:"red"] include("$thispath/templates/$tempstyle/newpost.tmpl"); [/] <br /> $d = get_input('d', 'get'); <br /> $mon = get_input('mon', 'get'); <br /> $year = get_input('year', 'get'); <br /> include("$thispath/templates/$tempstyle/newevent.tmpl"); <br /> $html -> send_footer(); <br />==========================================<br /> <br />I've tried it already with the closing bracket on every line but no good, is there supposed to be a closing bracket here or not. <img src="/forum/images/graemlins/frown.gif" alt="" /><br /><br />I know we have to wait until someone fixes the instructions, but (excuse the pun) it's bugging me.<br /><br />Is there someone trying to fix it or is it a dead duck?<br /><br />LOL <br /><br />Thanks
_________________________
Thanks

Liahona

Top
#229529 - 01/16/03 01:26 PM Re: Calendar - 6.2 [Re: jfrosch]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
There should probably be a closing } after the send footer. Did you try one on the line below that?
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#229530 - 01/16/03 01:36 PM Re: Calendar - 6.2 [Re: Daine]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi Josh<br /><br />Just did that and still the same?<br /><br />THX
_________________________
Thanks

Liahona

Top
#229531 - 01/16/03 01:40 PM Re: Calendar - 6.2 [Re: jfrosch]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I hope to be able to look at and post updating instructions here maybe by this weekend. I've installed this for several clients and it's worked.. but I don't think the instructions were exactly right. (In other words some code may have changed from when this was written to the current version).<br /><br />I've just been too busy to look at updating it, but it's on my list. Maybe that will help.<br />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#229532 - 01/16/03 02:01 PM Re: Calendar - 6.2 [Re: Daine]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
I've posted a status update here. You're welcome to post corrected documentation if you like. In any case, I'll try to post the updated hack, with correct documentation, within the next few days.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#229533 - 01/16/03 02:08 PM Re: Calendar - 6.2 [Re: Hal_dup2]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi Josh/Dave<br /><br />Thanks, I really need this as I have a whole years things to put on before I go live and let lots (dreaming) of members loose.<br /><br />I will wait with bated breath.<br /><br />THX
_________________________
Thanks

Liahona

Top
#229534 - 01/16/03 02:18 PM Re: Calendar - 6.2 [Re: joeuser]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Cool. Thanks Dave. Hadn't been paying attention to the main post. <img src="/forum/images/graemlins/grin.gif" alt="" /><br /><br />Looks good. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#229535 - 01/16/03 05:39 PM Re: Calendar - 6.2 [Re: Daine]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi all<br /><br />I now have my calendar working..........<br /><br />Thanks to Nikos for fixing all the wobbley bits out.<br /><br />You guys are just great.<br /><br />Thanks all
_________________________
Thanks

Liahona

Top
#229536 - 01/20/03 03:42 PM Re: Calendar - 6.2 [Re: joeuser]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi Dave <br /> <br />Do you know how I can hide the time that shows on the <br />calendar as lots of my things don't have a time as yet, <br />or maybe left blank instead of having a time that is <br />wrong displaying? <br /> <br />Thanks
_________________________
Thanks

Liahona

Top
#229537 - 01/20/03 04:04 PM Re: Calendar - 6.2 [Re: jfrosch]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Coincidentally, one of the changes I'm adding is a checkbox to hide the time when you post an event. <br /> <br />With the current hack, I think if you manually set the w3t_Events.E_Time field to 0 with a database query, that will hide the event time on the postlist (calendar display).
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#229538 - 01/20/03 04:45 PM Re: Calendar - 6.2 [Re: joeuser]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi Dave<br /><br />UPDATE w3t_Events SET E_Time = "0"<br /><br />Here is the output of your SQL command; Query executed OK, MySQL returned `0' with message `'.<br />rows returned by query, each with 0 fields. <br /><br />Never worked, am I doing it wrong
_________________________
Thanks

Liahona

Top
#229539 - 01/20/03 05:15 PM Re: Calendar - 6.2 [Re: jfrosch]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
I meant that you should manually set E_Time to 0 for the events whose time you don't want displayed, not all the events. <img src="/forum/images/graemlins/shocked.gif" alt="" /> <br /> <br />But setting E_Time to 0 should have the effect I decribed. I just tested it with the current published version of the hack, and it worked.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#229540 - 01/20/03 05:29 PM Re: Calendar - 6.2 [Re: joeuser]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi <br /> <br />I don't understand "manually set E_Time to 0" <br /> <br />This is what's in my postlist_event.php <br /> $arrData['E_ID'] = 0; <br /> $arrData['E_Date'] = mktime(0, 0, 0, $month, $bBirthday, $year) - $user['U_TimeOffset'] * 3600; // first day of this month, time 00:00:00 <br /> $arrData['E_Time'] = 0; <br /> $arrData['E_Location'] = "Birthday"; <br /> $arrData['B_Subject'] = "<a href=\"$config[phpurl]/showprofile.php?Cat=$Cat&amp;User=$bNumber&amp;what=\">$bUsername$bExtra</a><br />"; <br /> $arrData['B_Number'] = 0; <br /> $arrData['B_Replies'] = 0; <br /> <br />


Edited by Liahona (01/20/03 05:36 PM)
_________________________
Thanks

Liahona

Top
#229541 - 01/20/03 05:39 PM Re: Calendar - 6.2 [Re: jfrosch]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
Dave,<br /><br />In the current mod, there is no way to set the time to 0, since it defaults to a time on its own from the form. What Liahona though did seems quite reasonable to me, since this is how I used to do it.<br /><br />Liahona, your query should have done the trick, but that error still bugs me... Any more info?<br /><br />Warm regards<br /><br />Nikos
_________________________
Nikos

Top
#229542 - 01/20/03 05:47 PM Re: Calendar - 6.2 [Re: Hal_dup2]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi Nikos <br /><br />I don't have any errors?<br /><br />Just the time which I have to put at 1:00 am so people will hopefully know that it is a mistake as there are no 0:00 hrs in the list.<br /><br />THX
_________________________
Thanks

Liahona

Top
#229543 - 01/20/03 05:56 PM Re: Calendar - 6.2 [Re: jfrosch]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
The query you posted above is correct, but I expected to see a WHERE clause, so that it would only affect a specific event:<br /><br />UPDATE w3t_Events SET E_Time = 0 WHERE E_ID = 'xxxxx'
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#229544 - 01/21/03 02:54 AM Re: Calendar - 6.2 [Re: jfrosch]
Liahona_dup1 Offline
Member

Registered: 12/05/02
Posts: 177
Loc: Scotland
Hi <br /><br />Is it possible to add a " 0 " (blank) to the list of time,<br />if so how do it, do I just search for "11" in the <br />postlist.php and add lines the same as the others with <br />" 0 " instead of a number?<br /><br />Cheers
_________________________
Thanks

Liahona

Top
#229545 - 01/28/03 06:00 PM Re: Calendar - 6.2 [Re: joeuser]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Update: <br /><br />Due to time constraints, I'm abandoning work on this hack. With the planned changes, it's gotten far too complicated, is incompatible with the current version, and maintaining it will be too much of a headache. <img src="/forum/images/graemlins/frown.gif" alt="" />
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#229546 - 01/31/03 04:32 PM Re: Calendar - 6.2 [Re: joeuser]
nierika Offline
Lurker

Registered: 01/31/03
Posts: 1
I'm gonna wade right in here with some newbie questions...I need a calendar to work with UBB.x 3.0.4. (Or some other calander I can use on our site if it is not possible to combine with UBB) How would I set this up? If it is a complicated procedure, is it allowable to ask if someone on this list can be hired to do it? I can provide more details if required. Thanks for any help.

Top
#229547 - 01/31/03 04:45 PM Re: Calendar - 6.2 [Re: DetR6oit]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
UBB version 3? Have you considered upgrading to UBB 6.3 or Threads 6.2. Either forum has hacks that provide a calendar like this one or the calendar mod over at ubbdev.com for UBB 6.3
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#229548 - 01/31/03 05:09 PM Re: Calendar - 6.2 [Re: sf49rminer]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Actually... if I'm not mistaken.... UBB.x is an infopop hosted solution. (Basically a MySQL version of OpenTopic). Since it's hosted by Infopop, I don't think you can hack or modify any of the scripts, as you don't have access to them. <img src="/forum/images/graemlins/wink.gif" alt="" /> <br />Sorry. You might wish to run UBB.Threads on your own server.. much more flexibility.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#229549 - 01/31/03 05:11 PM Re: Calendar - 6.2 [Re: Daine]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
I thought there were talking about a old version of UBB
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#229550 - 01/31/03 05:17 PM Re: Calendar - 6.2 [Re: sf49rminer]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
We got too many "UBB"'s to keep straight these days. <img src="/forum/images/graemlins/tongue.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#229551 - 01/31/03 05:25 PM Re: Calendar - 6.2 [Re: Daine]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
LOL yeah they would have to wipe the dirt and dust off that version if they were talking the old version.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#229552 - 02/03/03 04:11 AM Re: Calendar - 6.2 [Re: sf49rminer]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
Just to inform everyone: I have made a slight change on the my post earlier concerning the integration of Profile Birthdays and Calendar 6.2. It appeared that for users with a time offset other than 0 the modification was moving the user's birthdays as many months forward or backward as the time offset.<br /><br />Please refer to the previous post concerning this modification. The changes are a new variable declaration ignoring the time offset and the use of that variable in the database query.<br /><br />Nikos
_________________________
Nikos

Top
#229553 - 02/04/03 11:21 PM Re: Calendar - 6.2 (NEW INSTRUCTIONS) [Re: Hal_dup2]
ExcelsiorDDZ Offline
Member

Registered: 08/09/99
Posts: 234
Loc: New York
Here is my attached instructions. Anyone is welcome to improve upon them. I will not be able to since I am changing a lot in the way the calendar diplays things for my own custom set now.<br /><br />


Attachments
67560-excelcalendar62instructs.txt (82 downloads)

_________________________
Silly ricer.. Wings are for airplanes!

Top
#229554 - 02/04/03 11:39 PM Re: Calendar - 6.2 (NEW INSTRUCTIONS) [Re: Franky]
ExcelsiorDDZ Offline
Member

Registered: 08/09/99
Posts: 234
Loc: New York
Now I just need to get the actual post display the date and time of the event instead of JUST the calendar. Anyone already do this?
_________________________
Silly ricer.. Wings are for airplanes!

Top
#229555 - 02/05/03 12:18 AM Re: Calendar - 6.2 (NEW INSTRUCTIONS) [Re: Franky]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
is it a 'members only' forum at your site? I'd love to see what you've done with it so far <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#229556 - 02/05/03 12:19 AM Re: Calendar - 6.2 (NEW INSTRUCTIONS) [Re: SurfMinister]
ExcelsiorDDZ Offline
Member

Registered: 08/09/99
Posts: 234
Loc: New York
Sign up and I will toss you access. It just a template change more or less to accomodate the reason the calendar is there.<br /><br />www.theddz.com<br />
_________________________
Silly ricer.. Wings are for airplanes!

Top
#229557 - 02/10/03 03:19 PM Re: Calendar - 6.2 (NEW INSTRUCTIONS) [Re: Franky]
ExcelsiorDDZ Offline
Member

Registered: 08/09/99
Posts: 234
Loc: New York
NOTICE: The time does not seem to wrok properly for the 12:00 hour and selecting am. It will display pm for the link in the calendar. Could this be from the time zone thing implemented? <br /><br />Maybe this would be a good opportunity to try a conversion to military time??<br /><br />And while I am thinkin about it. Is there a way to take that date and time of the event posted in teh calendar to display in the actual thread post? I confuse myself sometime if I read something and forgot what day it was listed under in the calendar part.
_________________________
Silly ricer.. Wings are for airplanes!

Top
#229558 - 02/11/03 12:55 AM Re: Calendar - 6.2 [Re: Daine]
shortbus Offline
Code Monkey

Registered: 04/19/02
Posts: 631
Loc: Enid, Oklahoma
dont' know if this has been discussed or not, but I think it would be a good idea to add a blank spot in the time selection table. Honestly, I have no idea what time I was born, as well as with holidays and stuff. Just a thought.

Top
#229559 - 02/11/03 06:33 AM Re: Calendar - 6.2 [Re: wilstephens]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
I agree that we need to enhace the calendar and it is already on my list of things to do, since Dave_L is quite busy to continue supporting this modification.<br /><br />The first thing I was working on was to allow for a null time, which will make this an all-day-event (like your birthday or other related events). I think I have something good set up on my machine at home but haven't been able to post anything since I had problems with my isp.<br /><br />The next thing on my list will be to create an edit screen which will allow you to edit the events and also allow for deletion of the events when the parent post is deleted.<br /><br />I will keep you posted on the progress and once I have this finished then I can take up on requests <img src="/forum/images/graemlins/tongue.gif" alt="" />
_________________________
Nikos

Top
#229560 - 02/11/03 09:02 AM Re: Calendar - 6.2 [Re: Hal_dup2]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I posted a code change that will delete the event when the related post is deleted a while back in one of the earlier version threads. I'll have to search for it. It's pretty simple though.<br /><br />Is the event timestamp more than one field? I forget but I don't think it is. I thought Dave_L mentioned something about condensing the time/date fields into a single timestamp. If that's the case then the null value wouldn't work. I guess it's a matter of choice though. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#229561 - 02/11/03 09:13 AM Re: Calendar - 6.2 [Re: sjsaunders]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
I recall the post of Dave_L regarding the merging of the two fields. At the moment there are two fields one for the date and one for the time, however I don't remember if the time is used. The null value on the time that I was thinking could in effect set the time to be 00:00:00 but also set a new field "AllDayEvent" to yes. this way we can cater for events that will occur at midnight but also get rid of the time if we have an all-day event.<br /><br />There are also some other fields there for recurrance etc. Those need additional consideration in the future.
_________________________
Nikos

Top
#229562 - 02/11/03 09:19 AM Re: Calendar - 6.2 [Re: Hal_dup2]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Sounds good. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />I believe Dave intended on stripping those other fields out for the time being and then add them back as needed.
_________________________
~Dave
ChattersOnline.com

Top
#229563 - 02/11/03 09:47 AM Re: Calendar - 6.2 [Re: sjsaunders]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
I had implemented most of the changes I had talked about, including getting rid of the extra time column, and replacing it with a flag indicating whether the time-of-day should be displayed, or only the date. <br /> <br />One problem with these changes is that they would not be downward-compatible with the current version of this hack, so an "altertable" would be needed. <br /> <br />I had started to add editing capability. It involved changes to a bunch of files (several scripts and several templates). Keeping all of these files up to date when doing version upgrades would have been a big headache. <br /> <br />And then there was the birthdate modification to this hack. <br /> <br />These problems, combined with the fact that I was getting behind on other work, are why I had to abandon work on this hack. <br /> <br />Nikko, if you want, I could give you the changed files, although the changes are incomplete, and they're not fully tested or documented. <br /> <br />I'm wondering if it would be better to make the calendar a separate add-on, rather than a hacked forum.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#229564 - 02/11/03 10:55 AM Re: Calendar - 6.2 [Re: joeuser]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
Dave (L)<br /><br />I wouldn't mind having a look at the implementation although come to think of it your suggestion concerning an addon is far better for future releases of the threads software. Even with the best comments in the code we will have problems.<br /><br />If you want we can discuss it a bit in private and then come up with a better design. I have already implemented a calendar solution (needs tidying up though and documenting) which could in effect be modified to work as an addon. <br /><br />Damn! Why does the day have to have only 24 hours and I have to sleep 5 of them <img src="/forum/images/graemlins/tongue.gif" alt="" />
_________________________
Nikos

Top
#229565 - 02/11/03 01:31 PM Re: Calendar - 6.2 [Re: Hal_dup2]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
My opinion on the Calendar at this stage is that it would be best served to separate it from inclusion to UBB.Threads...for a few reasons.<br /><br />1. Easier to install<br />2. Does not get touched with subsequent UBB.threads upgrades<br />3. Adds to front page much the same way the "WHO'S ONLINE" hack does...an addition to the template.<br /><br />I might try messing with the 6.2 a bit, see if I can happily separate it.

Top
#229566 - 02/11/03 02:11 PM Re: Calendar - 6.2 [Re: joeuser]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
I thought more on this and looked at some detail in the code, and it should be fairly easy (as a quick, not a perma thing) to separate out.<br /><br />1. Copy the w3t_Posts table and name it w3t_EventData<br />2. DELETE FROM w3t_EventData WHERE B_Board not like 'calendar' (change this to keep only your calendar posts)<br />3. Copy the modified postlist.php and rename it eventlist.php<br />4. In the ubbthreads.tmpl write an "IF" statement that says if $Calendar='Y', then the <a href="{$config['phpurl']}/postlist.php?Cat=$Cat&amp;Board={$forum[$c][$f]['Keyword']}"> url should point to eventlist.php instead of postlist.<br /><br />This might be easier to install once this has had a few iterations with all of you...as we would have 4 separate php pages and a few tmpl pages...and the only UBBThreads page we would have to modify would be the ubbthreads.tmpl. Adding the w3t_Events would stay the same, and we would add a w3t_EventData in a fresh install.<br /><br />I know I am missing something (passing $Calendar to ubbthreads is first in my head)...but I am sure this would be easy to figure out, and we could then modify this calendar add-on MUCH easier than trying to re-hack it every upgrade.<br /><br />Thoughts?

Top
#229567 - 02/11/03 10:16 PM Re: Calendar - 6.2 [Re: Intel -*RW*-]
ExcelsiorDDZ Offline
Member

Registered: 08/09/99
Posts: 234
Loc: New York
Seperating it would also remove the ability for visitors to comment on anything put there I think.<br /><br />Personally I have come to like the ability to reply to a post.
_________________________
Silly ricer.. Wings are for airplanes!

Top
#229568 - 02/12/03 01:32 AM Re: Calendar - 6.2 [Re: Franky]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
Actually you can still comment, etc on the above setup. I changed my test board tonight just to see how it would work.<br /><br />But on the flip side...on my live board I copied postlist.php to eventlist.php - and I copied showflat.php to showevent.php. So I separated the PHP pages, made 2 new templates for them, and voila...I can customize the Events pages AND/OR upgrade UBBThreads - and they stay separate.

Top
#229569 - 02/21/03 12:33 AM Re: Calendar - 6.2 [Re: Intel -*RW*-]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
do i dare install this.... with the warning ?

Top
#229570 - 03/24/03 03:46 AM Re: Calendar - 6.2 [Re: Kelly]
jluerken Offline
Member

Registered: 08/27/02
Posts: 233
Any news about this? Has anyone now a working calendar and a 100% documentation?
_________________________
Ciao jluerken
--------------------
www.uce-clan.de www.clanforums.com

[]http://www.uce-clan.de/images/uce_banner2.gif[/]

Top
#229571 - 03/24/03 04:37 AM Re: Calendar - 6.2 [Re: edr]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
This works on 6.2.3
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#229572 - 03/24/03 04:38 AM Re: Calendar - 6.2 [Re: edr]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
This works on 6.2.3 you just need to sift through and find any updates you mightr like. Try Nikos's version.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#229573 - 03/28/03 02:10 AM Re: Calendar - 6.2 [Re: sf49rminer]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
hmmm... might be best to start a new thread with the most current code in the first post - even I am a bit lost about which version to use, lots of changes on many pages <img src="/forum/images/graemlins/tongue.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#229574 - 03/28/03 03:28 PM Re: Calendar - 6.2 [Re: SurfMinister]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
Please <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#229575 - 04/06/03 02:30 PM Re: Calendar - 6.2 [Re: SurfMinister]
RTM_dup1 Offline
Newbie

Registered: 06/07/02
Posts: 19
Loc: Ethernet
[]AllenAyres said:<br />hmmm... might be best to start a new thread with the most current code in the first post - even I am a bit lost about which version to use, lots of changes on many pages <img src="/forum/images/graemlins/tongue.gif" alt="" /> [/]<br /><br />I agree, I really need a Calendar for our forum. We have the calendar hack for our UBB Classic which we are about to migrate over to Threads. Our users love the calendar and couldn't live without it for too long.<br /><br />I am really confused as to the status of this calendar, who's presently "leading" development of it and which is the most recent download. <img src="/forum/images/graemlins/confused.gif" alt="" /><br /><br />A new thread with updated info in the first post would be great.<br /><br />Rob

Top
#229576 - 04/06/03 02:34 PM Re: Calendar - 6.2 [Re: Michael_Moore]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Try downloading and installing the one posted by EzcelsiorDD on page 9
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#229577 - 04/10/03 03:33 PM Re: Calendar - 6.2 [Re: sf49rminer]
ExcelsiorDDZ Offline
Member

Registered: 08/09/99
Posts: 234
Loc: New York
ExcelsiorDDZ I did not post it that I remember. Oh well, all I konw is that it works and I have not been touching it. See it at www.theddz.com in the gaming calendar section.
_________________________
Silly ricer.. Wings are for airplanes!

Top
#229578 - 04/13/03 01:31 PM Re: Calendar - 6.2 [Re: Michael_Moore]
Rick Offline
Guru

Registered: 05/11/99
Posts: 8373
Loc: Olympia, WA
Just an FYI. There will be a calendar system in 6.4. It won't be this particular version, rather a standalone system. I won't say much more than that at this time because it's still under development.
_________________________
UBB.threads Developer

Top
#229579 - 04/13/03 01:33 PM Re: Calendar - 6.2 [Re: Sally]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
<img src="/forum/images/graemlins/wink.gif" alt="" /> <img src="/forum/images/graemlins/yay.gif" alt="" /><br /><br />Good work. <br /><br /><img src="/forum/images/graemlins/bow.gif" alt="" /> <img src="/forum/images/graemlins/yay.gif" alt="" /> <img src="/forum/images/graemlins/bow.gif" alt="" /> <img src="/forum/images/graemlins/yay.gif" alt="" /> <img src="/forum/images/graemlins/bow.gif" alt="" /> <img src="/forum/images/graemlins/yay.gif" alt="" /> <img src="/forum/images/graemlins/bow.gif" alt="" /> <img src="/forum/images/graemlins/yay.gif" alt="" /> <img src="/forum/images/graemlins/bow.gif" alt="" /> <img src="/forum/images/graemlins/yay.gif" alt="" /> <img src="/forum/images/graemlins/bow.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#229580 - 04/13/03 01:34 PM Re: Calendar - 6.2 [Re: Daine]
Rick Offline
Guru

Registered: 05/11/99
Posts: 8373
Loc: Olympia, WA
Dunno what it is, but that dancing banana just freaks me out!
_________________________
UBB.threads Developer

Top
#229581 - 04/13/03 03:24 PM Re: Calendar - 6.2 [Re: Sally]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
ExcelsiorDDZ the first post on page 9 has the attached file that has the updated instructions you posted and yes it does work on your site as well as mine <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#229582 - 04/13/03 04:48 PM Re: Calendar - 6.2 [Re: sf49rminer]
PhotoPost Offline
Hacker

Registered: 02/03/02
Posts: 989
I only have 6 pages..... <img src="/forum/images/graemlins/frown.gif" alt="" />
_________________________
[]http://www.danasoft.com/vipersig.jpg[/]
Viper Alley - http://www.viperalley.com
Extreme Fitness - http://www.extremefitness.com[/b]

Top
#229583 - 04/13/03 05:30 PM Re: Calendar - 6.2 [Re: gailg]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
6 pages there are 11 pages to this thread. LOL <br /> <br />You have your thread view set to a higher number. Okay lets try this one Michael it should be the 81st post. <img src="/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />I do beleive top of page 5 if you have yours set to 20 posts per page. I have mine set to 10.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#229584 - 04/16/03 01:45 PM Re: Calendar - 6.2 [Re: Sally]
Maze Offline
Enthusiast

Registered: 10/13/99
Posts: 468
This is too much! <img src="/forum/images/graemlins/shocked.gif" alt="" /> Two great news on one day.<br /><br />Subforums and calendar. I still can't believe it <img src="/forum/images/graemlins/bow.gif" alt="" /> <img src="/forum/images/graemlins/bow.gif" alt="" /> <img src="/forum/images/graemlins/bow.gif" alt="" />

Top
#229585 - 04/16/03 02:45 PM Re: Calendar - 6.2 [Re: Sally]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
[]Scream said:<br />Dunno what it is, but that dancing banana just freaks me out! [/]<br /><br />He's my favorite <img src="/forum/images/graemlins/yay.gif" alt="" /> <img src="/forum/images/graemlins/yay.gif" alt="" /> <img src="/forum/images/graemlins/yay.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#229586 - 04/16/03 03:40 PM Re: Calendar - 6.2 [Re: SurfMinister]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I won't tell you what my users say about the little bananna man. <img src="/forum/images/graemlins/crazy.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#229587 - 04/16/03 10:34 PM Re: Calendar - 6.2 [Re: Sally]
coloradok5 Offline
Enthusiast

Registered: 07/11/01
Posts: 462
Loc: Colorado
Awesome, any time frame for 6.4? mid summer maybe?

Top
#229588 - 04/17/03 09:49 PM Re: Calendar - 6.2 [Re: Sally]
RTM_dup1 Offline
Newbie

Registered: 06/07/02
Posts: 19
Loc: Ethernet
[]Scream said:<br />There will be a calendar system in 6.4.[/]<br /><br />Great news! Looking forward to all the details as well as 6.4b <img src="/forum/images/graemlins/laugh.gif" alt="" /><br /><br />Rob

Top
#229589 - 05/09/03 11:52 PM Re: Calendar - 6.2 [Re: Michael_Moore]
PhotoPost Offline
Hacker

Registered: 02/03/02
Posts: 989
I had to make one mod for it to print hte time properly:<br /><br />$tm += ($user['U_TimeOffset']*3600);<br />$h = strtolower(strftime ("%I", $tm));<br />$m = strtolower(strftime ("%M", $tm));<br />$mer = strtolower(strftime ("%p", $tm));<br /><br />in postlist_event (in two places). The convert_time was returning -1.
_________________________
[]http://www.danasoft.com/vipersig.jpg[/]
Viper Alley - http://www.viperalley.com
Extreme Fitness - http://www.extremefitness.com[/b]

Top
#229590 - 05/14/03 03:55 AM Re: Calendar - 6.2 [Re: SurfMinister]
jluerken Offline
Member

Registered: 08/27/02
Posts: 233
[]AllenAyres said:<br />hmmm... might be best to start a new thread with the most current code in the first post - even I am a bit lost about which version to use, lots of changes on many pages <img src="/threads/php/images/graemlins/tongue.gif" alt="" /> [/]<br /><br />Hi,<br /><br />can someone please paste a link here to a working calendar for 6.2.3<br /><br />There are so many comments and differents ways described here that I am confused and don't know what to use.<br /><br />Allens idea to make this a little bit clearer again is welcome <img src="/forum/images/graemlins/laugh.gif" alt="" />
_________________________
Ciao jluerken
--------------------
www.uce-clan.de www.clanforums.com

[]http://www.uce-clan.de/images/uce_banner2.gif[/]

Top
#229591 - 05/14/03 09:09 AM Re: Calendar - 6.2 [Re: edr]
PhotoPost Offline
Hacker

Registered: 02/03/02
Posts: 989
http://www.viperalley.com<br /><br />I have it working under Calendar of Events...<br /><br />Download the original file in the first post. That should mostly work. I think that download includes the changes found in a later upload as when I reviewed them, I didnt have to make any changes.<br /><br />If your dates are messed up - then apply my fix above.<br /><br />Shouldnt take more than an hour.
_________________________
[]http://www.danasoft.com/vipersig.jpg[/]
Viper Alley - http://www.viperalley.com
Extreme Fitness - http://www.extremefitness.com[/b]

Top
#229592 - 05/15/03 09:01 AM Re: Calendar - 6.2 [Re: gailg]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Would converting/importing the events here to the new calendar in 6.4 be relatively painless?
_________________________
- Allen wavey
- What Drives You?

Top
#229593 - 05/15/03 10:02 AM Re: Calendar - 6.2 [Re: SurfMinister]
PhotoPost Offline
Hacker

Registered: 02/03/02
Posts: 989
Depends on how they do calendars in 6.4 - but if the uses the Posts tables, shouldnt be too hard. If they make a new table, then would probably just be a metter of mapping fields to fields.
_________________________
[]http://www.danasoft.com/vipersig.jpg[/]
Viper Alley - http://www.viperalley.com
Extreme Fitness - http://www.extremefitness.com[/b]

Top
#229594 - 05/15/03 10:21 AM Re: Calendar - 6.2 [Re: SurfMinister]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
6.4 does not use the posts table. I think it uses it's own table for events etc... so I'm not sure til I see the actual code. <img src="/forum/images/graemlins/crazy.gif" alt="" /><br /><br />Let's hope someone can come up with a solution to do so. In the meantime - I've been putting the brakes on doing this calendar install. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#229595 - 05/15/03 03:17 PM Re: Calendar - 6.2 [Re: SurfMinister]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
I'll tell you if you send my the table structure of the calendar that will be in 6.4 <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#229596 - 05/15/03 04:00 PM Re: Calendar - 6.2 [Re: -Fusion-]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
if only I had it <img src="/forum/images/graemlins/smash.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#229597 - 11/15/03 03:08 PM Re: Calendar - 6.2 [Re: SurfMinister]
Robk Offline
Junior Member

Registered: 08/04/03
Posts: 8
Loc: Leicester, UK
ive got this working on my 6.3.2 forum <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />

Top
#229598 - 12/23/03 10:59 PM Re: Calendar - 6.2 [Re: ni6htm4r3]
sportbikes Offline
Member

Registered: 10/29/02
Posts: 167
Loc: So Cal USA
Wondering if there is any conversion for this to version 6.4? <br /><br />I have this installed and it has a decent amount of future info.... didn't want to loose it. Has anyone else upgraded to 6.4 and found any solutions?
_________________________
mike
www.esportbike.com

Top
#229599 - 01/01/04 12:19 AM Re: Calendar - 6.2 [Re: alsalmicom]
donJulio Offline
Code Monkey

Registered: 06/17/02
Posts: 682
Loc: CA, USA
6.4 already has a calendar.
_________________________
Too many men. There's too many people making too many problems, and not much love to go around. Can't you see this is the Land of Confusion? <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" />

Top
#229600 - 01/01/04 09:43 AM Re: Calendar - 6.2 [Re: luan]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Nope the format is entirely different and as this mod was merely a mix match of various versions put together by many people without no-one supporting it an import script is not around.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

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