Previous Thread
Next Thread
Print Thread
Rating: 5
Page 1 of 4 1 2 3 4
#229473 12/18/2002 4:44 PM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
[:"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.[/]

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.


-----------------------------

Notes:

1) This was based on the version of the Calendar hack in this post: https://www.ubbdev.com/threads/php/showthreaded.php?Cat=&Board=beta&Number=53193

2) I didn't know what version this should be. Until someone else decides this, I temporarily numbered it "Dave_L.0.0".

3) As an experiment, I provided most of the change-instructions using BeyondCompare file-difference-report files.

-----------------------------

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 (0 Bytes, 160 downloads)

Last edited by Dave_L; 01/15/2003 1:34 PM.
Sponsored Links
joeuser #229474 12/18/2002 9:21 PM
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Dave, do you have a site where I can see this?

gailg #229475 12/18/2002 10:42 PM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
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.

joeuser #229476 12/20/2002 4:11 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Michael,

If you would like to see the calendar visit my site

http://www.reeftalk.com

Joined: Jun 2002
Posts: 27
User
User
Offline
Joined: Jun 2002
Posts: 27
Woot. My name in the list glad to be of help. Once 6.2 Beta 3 comes out ill test it out myself.

Sponsored Links
sari #229478 12/26/2002 7:36 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Dave,

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.

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
They're just HTML files, so your browser should display them.

joeuser #229480 12/26/2002 8:13 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
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.

joeuser #229481 12/31/2002 7:28 AM
Joined: Oct 2002
Posts: 165
Member
Member
Offline
Joined: Oct 2002
Posts: 165
I was wondering...
- 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.

- Is there a Pal box for v. 6.2?

Thanks

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
This hack doesn't use any sort of cache.

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.

JustDave would have to answer the IIP question.

Sponsored Links
joeuser #229483 01/01/2003 5:04 PM
Joined: Oct 2002
Posts: 165
Member
Member
Offline
Joined: Oct 2002
Posts: 165
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?


Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I think Nikos put it together.

I never got a chance to use it (yet). We need to find it and I should add it to the instructions.

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.

joeuser #229485 01/03/2003 6:45 PM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
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.

c0bra #229486 01/03/2003 8:19 PM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
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.

I hereby turn over maintenance of this hack to ... everyone.

The first task is to decide on a better version number.

joeuser #229487 01/03/2003 10:37 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
We ought to name our hacks with the threads version number, but add letters.

Calendar 6.2.a
Calendar 6.2.b

It would be easier to know what version it was written for.

Daine #229488 01/04/2003 12:14 AM
Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
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.

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.

Seems to be working though. Nice mod!


[EDIT: Should have mentioned I'm using 6.2 release ]

Last edited by Zackary; 01/04/2003 12:16 AM.
#229489 01/04/2003 7:14 AM
Joined: Jan 2001
Posts: 374
Enthusiast
Enthusiast
Offline
Joined: Jan 2001
Posts: 374
I think this hack developed to be one of the "must-have"s for everyone.
What a pity that this calender does not support language files yet.
And for international versions it is essential to be able to
- exchange AM/PM against a 24hrs display
- switch to a display where Monday is 1st day of the week intstead of sunday.

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....

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:
https://ubbdev.com/threads/php/...page=&view=&sb=5&o=&vc=1
Although I don't get it working with the new calendar hack, I think it is well worth not to be forgotten

rodrigo1 #229490 01/07/2003 2:01 PM
Joined: Apr 2002
Posts: 56
Power User
Power User
Joined: Apr 2002
Posts: 56
worked a treat!

Even I managed this one!!!!!!!!

demo on www.audi-sport.net

algorewon #229491 01/07/2003 2:05 PM
Joined: Nov 2000
Posts: 210
Member
Member
Offline
Joined: Nov 2000
Posts: 210
Yes Great Hack Thanks Dave

joeuser #229492 01/07/2003 3:42 PM
Joined: Sep 2001
Posts: 129
Member
Member
Offline
Joined: Sep 2001
Posts: 129
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 ?

I cant find this bit for instance:
// -------------------------------------------------------------
// If HTML is off then we need to get rid of < and > in the body
if ( ($convert != "html") && ($convert !="both") ) {
$PrintBody = str_replace("<","<",$PrintBody);
$PrintBody = str_replace(">",">",$PrintBody);
}
$html -> send_header($ubbt_lang['PREV_POST'],$Cat,0,$user,$Extra,$ReadPerm);


$FormSubject = $html -> form_encode($FormSubject);
$FormBody = $html -> form_encode($FormBody);
$FormSubject = str_replace("&","&",$FormSubject);
$FormBody = str_replace("&","&",$FormBody);
$formLocation = $html -> form_encode($formLocation);
$formLocation = str_replace("&","&",$formLocation);


Regards
Clint

Running on WIN2003 Web Server.

Paranoid people get followed too!
Joined: Sep 2001
Posts: 129
Member
Member
Offline
Joined: Sep 2001
Posts: 129
I have this which is near
// -------------------------------------------------------------
// If HTML is off then we need to get rid of < and > in the body
if ( ($convert != "html") && ($convert !="both") ) {
$PrintBody = str_replace("<","<",$PrintBody);
$PrintBody = str_replace(">",">",$PrintBody);
}
else {
// No server side includes
$PrintBody = preg_replace("/<!--(.|\n)*-->/","",$PrintBody);
}


Regards
Clint

Running on WIN2003 Web Server.

Paranoid people get followed too!
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
I beleive the part you need to hack in is a formlocation just place it under these

$FormSubject = $html -> form_encode($FormSubject);
$FormBody = $html -> form_encode($FormBody);
$FormSubject = str_replace("&","&",$FormSubject);
$FormBody = str_replace("&","&",$FormBody);
$formLocation = $html -> form_encode($formLocation);
$formLocation = str_replace("&","&",$formLocation);

Joined: Jun 2002
Posts: 27
User
User
Offline
Joined: Jun 2002
Posts: 27
This version has been working fine for me. The only thing I would like to see is an editevent.php file.

sari #229496 01/08/2003 3:09 PM
Joined: Nov 2000
Posts: 210
Member
Member
Offline
Joined: Nov 2000
Posts: 210
yep agreed as a work around you can edit the events safely through phpmyadmin

MercAqua #229497 01/10/2003 9:19 AM
Joined: Jun 2001
Posts: 356
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 356
well, installed it, but it's not working! i dont get no calendar appearing, also no error messages to enable me to de-bug!
ideas??
i probably buggered up on the editing of the files, because they didnt tally up, so i had to give it an educated guess!

joeuser #229498 01/11/2003 10:48 AM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
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:

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.

2) Get rid of the E_Time column. This is unnecessary, since the E_Date column contains both the date and time.

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.

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.

5) Add support for editing the date/time of an event.

6) Add changes to showflat.php for displaying the event date/time.

7) Add dimopoulos's changes that use the Profile Birthdays modification to populate the birthdays automatically.

Any feedback on these changes?

-------
Update:

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.

-------
Update:

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.

Last edited by Dave_L; 01/28/2003 6:57 PM.
joeuser #229499 01/11/2003 10:55 AM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
You have hit on everything I can think of that I don't like about this addon.

Looking forward to seeing your improvements!

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mr. Eagle Eye - Changes sound good.

Daine #229501 01/12/2003 5:49 AM
Joined: Jun 2001
Posts: 356
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 356
the location part is very important to me.
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.

Luka_dup1 #229502 01/12/2003 6:04 AM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
But is there any problem with simply stating the location in the thread title?

joeuser #229503 01/12/2003 6:34 AM
Joined: Jun 2001
Posts: 356
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 356
nah, thats true. i could always do that i guess

Daine #229504 01/13/2003 10:08 AM
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Josh and Mike

Below the update for the Calendar 6.2 modification which uses the Profile Birthdays modification to populate the birthdays automatically.

Files altered: postlist_event.php

1. Find
Code
 <br />			if ($resp > 0) <br />			{ <br />				if ($tm == '0') <br />				{ <br />					[:"blue"]$Evnt = "<a href=\"$config[phpurl]/$mode.php? <br />					     Cat=$Cat&amp;Board=$Board&amp;Number=$Number&amp;view=$view <br />					     &amp;sb=$sb&amp;o=$o&amp;mon=$mon&amp;year=$year&amp;cs=$cs\"> <br />					     $Location:<br />$Subject</a>, ($resp responses)";[/] <br />				} <br />				else <br />				{ <br />					$tm = strtotime($html -> 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 = "<a href=\"$config[phpurl]/$mode.php?Cat=$Cat&amp; <br />					     Board=$Board&amp;Number=$Number&amp;view=$view&amp;sb=$sb&amp; <br />					     o=$o&amp;mon=$mon&amp;year=$year&amp;cs=$cs\"> <br />					     $Location, $h:$m $mer:<br /> $Subject</a>, ($resp responses)";[/] <br />				} <br />			} <br />			else <br />			{ <br />				if ($tm == '0') <br />				{ <br />					[:"blue"]$Evnt = "<a href=\"$config[phpurl]/$mode.php?Cat=$Cat&amp;Board=$Board <br />					     &amp;Number=$Number&amp;view=$view&amp;sb=$sb&amp;o=$o&amp;mon=$mon <br />					     &amp;year=$year&amp;cs=$cs\">$Location:<br />$Subject</a>";[/][/] <br />				} <br />

Change it to
Code
 <br />			if ($resp > 0) <br />			{ <br />				if ($tm == '0') <br />				{ <br />					[:"blue"]$Evnt = "<a href=\"$config[phpurl]/$mode.php?Cat=$Cat&amp;Board=$Board <br />					     &amp;Number=$Number&amp;view=$view&amp;sb=$sb&amp;o=$o&amp;mon=$mon <br />					     &amp;year=$year&amp;cs=$cs\">$Location:<br />$Subject</a>, ($resp responses)";[/] <br />				} <br />				else <br />				{ <br />					$tm = strtotime($html -> 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 = "<a href=\"$config[phpurl]/$mode.php?Cat=$Cat&amp;Board=$Board <br />					     &amp;Number=$Number&amp;view=$view&amp;sb=$sb&amp;o=$o&amp;mon=$mon <br />					     &amp;year=$year&amp;cs=$cs\">$Location, $h:$m $mer: <br />					     <br /> $Subject</a>, ($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 = "<a href=\"$config[phpurl]/$mode.php?Cat=$Cat&amp; <br />					             Board=$Board&amp;Number=$Number&amp;view=$view&amp;sb=$sb&amp; <br />					             o=$o&amp;mon=$mon&amp;year=$year&amp;cs=$cs\"> <br />					             $Location:<br />$Subject</a>";[/] <br />// 20030113 - Birthday Update New Start <br />					} <br />// 20030113 - Birthday Update New End <br />				} <br />


2. Find
Code
 <br />			// draw horizontal bar before each event except the first <br />			if ( !$first_event_for_day ) <br />			{ <br />				$events .= "<hr width=95% align=\"center\" />"; <br />			} <br /> <br />			$events .= "<font color=\"red\"><b>&rsaquo;&rsaquo;&rsaquo;</b></font> $Evnt<br />"; <br />

and CHANGE it to
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 <> "Birthday") ) <br />// 20030113 - Birthday Update New End <br />			{ <br />				$events .= "<hr width=95% align=\"center\" />"; <br />			} <br /> <br />// 20030113 - Birthday Update New Start <br />			if ( $Location == "Birthday" ) <br />			{ <br />				$events .= "<font color=\"blue\"><b>&rsaquo;</b></font> $Evnt<br />"; <br />			} <br />			else <br />			{ <br />// 20030113 - Birthday Update New End <br />				$events .= "<font color=\"red\"><b>&rsaquo;</b></font> $Evnt<br />"; <br />// 20030113 - Birthday Update New Start <br />			} <br />// 20030113 - Birthday Update New End <br />


3. Find (function get_events_for_month($month, $year))

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 />

and CHANGE it to
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 -> do_query($strQuery); <br /> <br />	$intFieldsFound	=	0; <br /> <br />	// Cycle through the fields and increase the counter where appropriate <br />	while ( $arrDataLine = $dbh -> 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 -> 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->do_query($query); <br />		while(list($bUsername, $bBirthday, $bBirthYear, $bNumber ) = $dbh->fetch_array($result)) <br />		{ <br /> <br />			if ( $bBirthYear > 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']	=	"<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 />			$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->finish_sth($result); <br />	} <br />// 20030113 - Birthday Update New End <br /> <br /> <br />	$Board_q = addslashes($Board); <br />


4. Find this:
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->fetch_array($result, MYSQL_ASSOC)) { <br />

and CHANGE it to this
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->fetch_array($result, MYSQL_ASSOC)) { <br />


NOTE: The code in [:"blue"]BLUE[/] is in ONE line only and has been split for aesthetic purposes only!

That should do the trick

Warm regards

Nikos

PS: Sorry that it took me so long to get this thing but I have been awfully busy lately

[b]Edit:[b]
Fixed small bug with Age calculation when the Age was not set.
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
2002-02-03 - Change to show the correct birthdays for users with time offset

Last edited by dimopoulos; 02/03/2003 5:00 AM.

Nikos
alsalmicom #229505 01/13/2003 10:15 AM
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Mike and the rest of the gang

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.

Warm regards

Nikos
Attachments
64756-custombox6pal.zip (0 Bytes, 42 downloads)


Nikos
Hal_dup2 #229506 01/13/2003 11:07 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Thanks!

Daine #229507 01/13/2003 11:29 AM
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
You are welcome Mr. Bug

Warm regards

Nikos


Nikos
Hal_dup2 #229508 01/13/2003 12:27 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
That's my assigned name from Rick.

I kept posting too many bugs, he renamed me.


Daine #229509 01/15/2003 11:03 AM
Joined: Dec 2002
Posts: 173
Member
Member
Offline
Joined: Dec 2002
Posts: 173
Hi

Edit:.........
I've just installed 6.2 Calendar Sorry had an error but fixed it

Thanks

Last edited by Liahona; 01/15/2003 11:09 AM.

Thanks

Liahona
jfrosch #229510 01/15/2003 11:22 AM
Joined: Dec 2002
Posts: 173
Member
Member
Offline
Joined: Dec 2002
Posts: 173
Hi anyone

Well, no sql errors anyway...........but

I can't see any calendar when I click the calendar link on the forum?

It just takes me to the posting page nothing else there.

Have I missed something thats not in the attachment file at no. 1 post?






Thanks

Liahona
jfrosch #229511 01/15/2003 11:26 AM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
I'm not sure what you mean by "calendar link on the forum".

Did you change the Bo_Calendar column for that forum to 'Y'?

joeuser #229512 01/15/2003 11:46 AM
Joined: Dec 2002
Posts: 173
Member
Member
Offline
Joined: Dec 2002
Posts: 173
Hi Dave

Sorry in my haste to get it the calender going I forgot to do step 3.

I have the calender showing now....

So how to I populate do I
alter the postlist_event.php as dimopoulos says?



Thanks

Liahona
Page 1 of 4 1 2 3 4

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

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