php-calendar-discussion Mailing List for PHP-Calendar
Brought to you by:
sproctor
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
(12) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(5) |
Feb
(4) |
Mar
(23) |
Apr
(5) |
May
(6) |
Jun
(2) |
Jul
(4) |
Aug
|
Sep
(2) |
Oct
(1) |
Nov
|
Dec
|
2004 |
Jan
|
Feb
(2) |
Mar
(3) |
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
(2) |
Oct
(1) |
Nov
|
Dec
(1) |
2005 |
Jan
(5) |
Feb
(14) |
Mar
(2) |
Apr
(1) |
May
(1) |
Jun
(2) |
Jul
(18) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2006 |
Jan
(3) |
Feb
(2) |
Mar
|
Apr
|
May
(1) |
Jun
(1) |
Jul
|
Aug
(2) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2007 |
Jan
(4) |
Feb
(3) |
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
(2) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
(1) |
Jun
|
Jul
(7) |
Aug
|
Sep
|
Oct
(4) |
Nov
|
Dec
|
2009 |
Jan
(3) |
Feb
(4) |
Mar
(1) |
Apr
(1) |
May
(4) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Gabriel H. <ga...@ga...> - 2009-05-30 12:59:02
|
2009/5/29 Sean Proctor <spr...@gm...> > Hi, > > I'm real sorry about being so quiet for such a long time. I have 2 points > to this email. > > 1. Does anyone have a good idea of how to allow HTML in posts that prevents > XSS attacks? I don't personally feel like writing a custom parser for it. > I'd love to help someone else, or adapt some existing code if someone has a > suggestion. I'd err on the side of caution and take the approach of the forums and only allow basic formatting using custom tags but if you want full html I'm sure it would be okay to simple reject and submission which has the script tag and maybe one or two others (can't think what they'd be right now). > 2. I've quietly been working on some pretty massive improvements. This is > going to be a 2 or 3 stage process. The multiple calendar aspect is greatly > expanded on. There are a few issues left to be resolved here, but nothing > major. I added permissions for users to individual calendars, global admins, > calendar admins. The admin options are expanded, but I need to finish off a > few things. Also, I added a file to embed in another framework. Work left to > do is update the installer, create an update script if necessary, and finish > the few minor parts left. The updater might not be able to fully encompass > everything and I'm not really into creating since I won't be using it. If > anyone feel like taking on that task, I would love to help. Also, PHP 5.0+ > is now required and MySQL 4.1+. I dropped support for other DB's because I > don't use them and I don't want to try to support them in an untested way > until someone actually needs support for a different DB. > I've finally decided to move over to google for my calendar. I've not transferred all my info from my php-calendar yet so may look at a google API to allow it to be displayed as a separate calendar. Has anyone else done this? Gabriel |
From: Sean P. <spr...@gm...> - 2009-05-29 16:08:36
|
Hi, I'm real sorry about being so quiet for such a long time. I have 2 points to this email. 1. Does anyone have a good idea of how to allow HTML in posts that prevents XSS attacks? I don't personally feel like writing a custom parser for it. I'd love to help someone else, or adapt some existing code if someone has a suggestion. 2. I've quietly been working on some pretty massive improvements. This is going to be a 2 or 3 stage process. The multiple calendar aspect is greatly expanded on. There are a few issues left to be resolved here, but nothing major. I added permissions for users to individual calendars, global admins, calendar admins. The admin options are expanded, but I need to finish off a few things. Also, I added a file to embed in another framework. Work left to do is update the installer, create an update script if necessary, and finish the few minor parts left. The updater might not be able to fully encompass everything and I'm not really into creating since I won't be using it. If anyone feel like taking on that task, I would love to help. Also, PHP 5.0+ is now required and MySQL 4.1+. I dropped support for other DB's because I don't use them and I don't want to try to support them in an untested way until someone actually needs support for a different DB. Sean On Sat, May 9, 2009 at 3:20 AM, Gabriel Harrison < ga...@ga...> wrote: > Hi Dennis, > > Can you give an example of what you are trying to post? It more likely that > the HTML is being escaped. > > Gabriel > > 2009/5/8 Dennis LuPresto <dlu...@gm...> > > okay, >> >> so after a little research I found the the reason why my html code >> isn't displaying in the detail event page is that when I enter the >> code into the Description box it's using "textarea" is there any way >> to modify the php-calendar so I can display images or urls in the >> event details page? >> >> Thanks, >> >> >> >> >> ------------------------------------------------------------------------------ >> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your >> production scanning environment may not be a perfect world - but thanks to >> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK >> i700 >> Series Scanner you'll get full speed at 300 dpi even with all image >> processing features enabled. http://p.sf.net/sfu/kodak-com >> _______________________________________________ >> Php-calendar-discussion mailing list >> Php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-calendar-discussion >> > > > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your > production scanning environment may not be a perfect world - but thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK > i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > Php-calendar-discussion mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/php-calendar-discussion > > |
From: Gabriel H. <ga...@ga...> - 2009-05-09 07:20:51
|
Hi Dennis, Can you give an example of what you are trying to post? It more likely that the HTML is being escaped. Gabriel 2009/5/8 Dennis LuPresto <dlu...@gm...> > okay, > > so after a little research I found the the reason why my html code > isn't displaying in the detail event page is that when I enter the > code into the Description box it's using "textarea" is there any way > to modify the php-calendar so I can display images or urls in the > event details page? > > Thanks, > > > > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your > production scanning environment may not be a perfect world - but thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK > i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > Php-calendar-discussion mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/php-calendar-discussion > |
From: Dennis L. <dlu...@gm...> - 2009-05-08 00:13:59
|
okay, so after a little research I found the the reason why my html code isn't displaying in the detail event page is that when I enter the code into the Description box it's using "textarea" is there any way to modify the php-calendar so I can display images or urls in the event details page? Thanks, |
From: Brendan L. <lew...@gm...> - 2009-03-11 16:37:19
|
Hi, Has anyone tried and or succeeded with integrating php-calendar into cms made simple (ala: www.*cms*made*simple*.org)? if so can you share your guru like knowledge? if not with any other cms? any pointers that might might help? cheers brendan ps Keep up the good work sean it just keeps getting better -- Before printing, think about the environment |
From: D. M. S. <mer...@ch...> - 2009-02-17 14:53:02
|
Hi Sean, Great Calendar Program. We have been using it all year! As a non-profit, we are planning on developing it more next year as well.. Is there a way to take our last fiscal year's calendar (7/08-6/09) and have those entries all moved to the corresponding Day of the week for the next year? For example. We have a Summer Concert event that will happen this year on Saturday, 7/25. Next year that event will happen on the last Saturday of the month, just like always... but the date will be 7/24. Of course with the hundreds of entries that we have already this year.. to not have to individually re-enter them would be great. Thanks. Merle |
From: Sean P. <spr...@gm...> - 2009-02-16 20:24:36
|
The current development can, but it's in something of a state of limbo. It was a bit over-ambitious and I ended up supporting the older version longer than I thought and it grew some features that the new doesn't have. Sean On Feb 16, 2009 3:20 PM, "Graeme J. Clark" <gr...@ta...> wrote: Hello, I'm really happy that I got my first calendar set up. I'm pretty impressed with the way people have been able to customize it and make it look good on the pages using the calendar. I'm still trying to figure out how everything ties together. I am wondering if there is any talk of making multiple day events on a given day of the week. The first calendar I am developing for example has events every second and fourth Thursday as well as every Sunday. So far I only see that it's possible to make a recurring event on the same day every week or month. Has there been any discussion on this? Regards, Graeme ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Php-calendar-discussion mailing list Php...@li... https://lists.sourceforge.net/lists/listinfo/php-calendar-discussion |
From: Graeme J. C. <gr...@ta...> - 2009-02-16 20:19:40
|
Hello, I'm really happy that I got my first calendar set up. I'm pretty impressed with the way people have been able to customize it and make it look good on the pages using the calendar. I'm still trying to figure out how everything ties together. I am wondering if there is any talk of making multiple day events on a given day of the week. The first calendar I am developing for example has events every second and fourth Thursday as well as every Sunday. So far I only see that it's possible to make a recurring event on the same day every week or month. Has there been any discussion on this? Regards, Graeme |
From: Jeremy O. <mol...@gm...> - 2009-02-12 18:34:27
|
My calendar is located for example at https://myserver.com:81/calendar When I go to add or edit a new event to my calendar it lets me enter all my data but when I click submit it tries to go to link https://myserver.com/calendar leaving out the :81 It does actually create or modify the event you just have to go back then click back to calendar. I am not sure what is causing this because as I can tell every other button is working. Thanks, Jeremy |
From: Gabriel H. <ga...@ga...> - 2009-01-07 08:57:07
|
Hi Sean, It's great to see php-calendar reaching version one and I shall be upgrading my version soon! What are the chances of my colouring modifications being included in a future release? You can see the altered code (from v0.10.5) here http://www.gabrielharrison.co.uk/php-calendar/0.10.5-compact/0.10.5-compact-mods.zip The two colour changes are: - Add a new colour, BG_TODAY, to colour the current day - Add a new colour, BG_COLOR5, to colour the <caption> and <h2> tags separately My mods also compact the screen down to just the calendar table and a slim navigation bar. It would be great to see this incorporated into the main project as an option but guess it is probably outside the scope of most users requirements. Regards, Gabriel |
From: Sean P. <spr...@gm...> - 2009-01-07 04:59:05
|
Oops, I apologize, I missed 4b and 4c. This didn't just change the display. On Tue, Jan 6, 2009 at 11:55 PM, Sean Proctor <spr...@gm...> wrote: > Sorry for the long delay in responding. I hadn't had any time at all to > devote to this project for a while. Since the economy is cooling down, I've > had a bit more time lately. > > On Sat, Jul 19, 2008 at 9:55 AM, Larry Johnson <joh...@gm...>wrote: > >> This is a great calendar (thanks Sean!). I have made some minor personal >> tweaks that customize it a bit for me. See the text below for the details >> on those tweaks. I am pretty new to the PHP programming environment so >> these tweaks may not have been written in the best fashion but they do >> work. If you have any suggestions or comments on them let me know, or if >> you have any great tweaks as well. >> >> -- >> Larry >> >> PHP Calendar - Tweaks >> #1 - Take out the footer hyperlinks >> > > Not going to include this one, I think you can understand why. > > #2 - Put in color settings >> > > Maybe the default theme isn't the best, and I'll look into improving it > later, but it's good enough for a default. > > >> #3 - Put in IE document type so that calendar "stretches" like it >> automatically does in Firefox >> > > I didn't realize this was an issue. I've changed the calendar to HTML 4.01 > Strict in 1.1, please let me know if this is the same as your fix. > > >> #4 - (3 entries) Putting in the programming so that a user can only >> modify or delete their own entries >> > > This only changed whether the options were displayed or not, but if you > fabricated the requests, you could still change the events. These changes > and the rest necessary to prevent that are in 1.1. > > #5 - Things work perfectly in Firefox, but in IE the column widths are not >> showing right. To fix that adjust this code. >> > > Skipped this. > > #6 - Put in a header >> > > Skipped this. > > >> #7 - Change the text in some of the buttons >> > > Skipped this. > > >> #8 - Put in programming so that a user can only modify the calendars that >> they have access to >> > > Good catch, thanks. This is in 1.1 as well. > > That about sums up the changes from 1.0 to 1.1. Also added admin users. > > Thanks for bringing all of this to my attention, > Sean > |
From: Sean P. <spr...@gm...> - 2009-01-07 04:56:13
|
Sorry for the long delay in responding. I hadn't had any time at all to devote to this project for a while. Since the economy is cooling down, I've had a bit more time lately. On Sat, Jul 19, 2008 at 9:55 AM, Larry Johnson <joh...@gm...>wrote: > This is a great calendar (thanks Sean!). I have made some minor personal > tweaks that customize it a bit for me. See the text below for the details > on those tweaks. I am pretty new to the PHP programming environment so > these tweaks may not have been written in the best fashion but they do > work. If you have any suggestions or comments on them let me know, or if > you have any great tweaks as well. > > -- > Larry > > PHP Calendar - Tweaks > #1 - Take out the footer hyperlinks > Not going to include this one, I think you can understand why. #2 - Put in color settings > Maybe the default theme isn't the best, and I'll look into improving it later, but it's good enough for a default. > #3 - Put in IE document type so that calendar "stretches" like it > automatically does in Firefox > I didn't realize this was an issue. I've changed the calendar to HTML 4.01 Strict in 1.1, please let me know if this is the same as your fix. > #4 - (3 entries) Putting in the programming so that a user can only modify > or delete their own entries > This only changed whether the options were displayed or not, but if you fabricated the requests, you could still change the events. These changes and the rest necessary to prevent that are in 1.1. #5 - Things work perfectly in Firefox, but in IE the column widths are not > showing right. To fix that adjust this code. > Skipped this. #6 - Put in a header > Skipped this. > #7 - Change the text in some of the buttons > Skipped this. > #8 - Put in programming so that a user can only modify the calendars that > they have access to > Good catch, thanks. This is in 1.1 as well. That about sums up the changes from 1.0 to 1.1. Also added admin users. Thanks for bringing all of this to my attention, Sean |
From: Larry J. <joh...@gm...> - 2008-10-30 18:02:15
|
All. In the past as a result of some great help from Gabriel Harrison I was able to set a special color for today's date. I also added in a special color for holidays. Below is the code. Enjoy! #1 - In 'display.php' put in code like this: ... // displays the day of the week and the following days of the week // return XHTML data for the days function display_days($day_count, $week_of_month, $month, $year) { global $db, $phpc_script, $config, $first_day_of_week; if($day_count > 7) return array(); $day_of_month = ($week_of_month - 1) * 7 + $day_count - ((7 + day_of_first($month, $year) - $first_day_of_week) % 7); if($day_of_month <= 0 || $day_of_month > days_in_month($month, $year)) { $html_day = tag('td', attributes('class="none"')); } else { $currentday = date('j'); $currentmonth = date('n'); $currentyear = date('Y'); // set whether the date is in the past or future/present if ($month < 10) { $month2 = "0". $month; } else { $month2 = $month; } if ($day_of_month < 10) { $day_of_month2 = "0". $day_of_month; } else { $day_of_month2 = $day_of_month; } $curr_date = $year . "-" . $month2 . "-" . $day_of_month2; mysql_connect("localhost", "-----", "-----"); mysql_select_db("calendar"); $result = mysql_query("SELECT * FROM phpc_holidays WHERE Holiday_Date = '". $curr_date . "'") or die('Could not look up holiday information; ' . mysql_error()); //echo $result; if ($row = mysql_fetch_array($result)) { $holiday = "Yes"; } else { $holiday = "No"; } if($currentyear == $year && $currentmonth == $month && $currentday == $day_of_month) { $current_era = 'today'; } elseif($holiday == "Yes") { $current_era = 'holiday'; } elseif($currentyear > $year || $currentyear == $year && ($currentmonth > $month || $currentmonth == $month && $currentday > $day_of_month )) { $current_era = 'past'; } else { $current_era = 'future'; } if(can_add_event()) { $html_day = tag('td', attributes('valign="top"', "class=\"$current_era\""), create_date_link('+', 'event_form', $year, $month, $day_of_month, array('class="phpc-add"')), create_date_link($day_of_month, 'display', $year, $month, $day_of_month, array('class="date"'))); } else { $html_day = tag('td', attributes('valign="top"', "class=\"$current_era\""), create_date_link($day_of_month, 'display', $year, $month, $day_of_month, array('class="date"'))); } $result = get_events_by_date($day_of_month, $month, $year); ... #2 - In 'style.php' put in code like this: #2a - At the top: ... $bgtoday = BG_TODAY; $bgholiday = BG_HOLIDAY; $bgpast = BG_PAST; $bgfuture = BG_FUTURE; ... Note that these colors were set in 'index.php' just like the other colors: ... define('BG_TODAY', '#00CED1'); // color for today's date define('BG_HOLIDAY', '#DA70D6'); // holiday's date define('BG_PAST', '#EEE8AA'); // past days, days already passed; default = silver define('BG_FUTURE', '#EEE8AA'); // future days; default = white ... #2b - Near the bottom: ... #calendar { table-layout: fixed; } #calendar td { text-align: left; height: 80px; overflow: hidden; } td.past { background-color: <?php echo $bgpast ?>; color: inherit; } td.today { background-color: <?php echo $bgtoday ?>; color: inherit; } td.holiday { background-color: <?php echo $bgholiday ?>; color: inherit; } td.future { background-color: <?php echo $bgfuture ?>; color: inherit; } td.none { background-color: <?php echo $bgcolor2 ?>; color: inherit; } table.phpc-main ul { margin: 2px; padding: 0; list-style-type: none; border-color: <?php echo $sepcolor ?>; border-style: solid; border-width: 1px 1px 0 1px; background-color: <?php echo $bgcolore ?>; } .... -- Larry |
From: Larry J. <joh...@gm...> - 2008-10-30 17:45:34
|
Through continued perseverance I have determined some code that works. Using the code below I set the background of a standard detail entry to a slightly different color than the regular background color of the calendar so that all detail entries stand out, then if the detail entry contains a word x in its subject I changed its color to a different color, then if the subject contains the word y I changed its color to a different color - you get the picture. If anyone sees an issue with it let me know. It seems to work great. Try it out and let me know! #1 - In 'display.php' put in code like this: ... /* Start off knowing we don't need to close the event * list. loop through each event for the day */ $have_events = false; $html_events = tag('ul'); while($row = $result->FetchRow($result)) { $subject = htmlspecialchars(strip_tags(stripslashes( $row['subject']))); $event_time = formatted_time_string( $row['starttime'], $row['eventtype']); $findme = 'PTO'; $pos = strpos($subject, $findme); $findme2 = 'visit'; $pos2 = strpos($subject, $findme2); if (! $pos === false) { $curr_class = "p"; $event = tag('li', attributes("class=\"$curr_class\""), tag('a', attributes( "href=\"$phpc_script" ."?action=display&" ."id=$row[id]\""), ($event_time ? "$event_time - " : '') . $subject)); } elseif (! $pos2 === false) { $curr_class = "v"; $event = tag('li', attributes("class=\"$curr_class\""), tag('a', attributes( "href=\"$phpc_script" ."?action=display&" ."id=$row[id]\""), ($event_time ? "$event_time - " : '') . $subject)); } else { $event = tag('li', tag('a', attributes( "href=\"$phpc_script" ."?action=display&" ."id=$row[id]\""), ($event_time ? "$event_time - " : '') . $subject)); } $html_events->add($event); $have_events = true; } if($have_events) $html_day->add($html_events); } return array_merge(array($html_day), display_days($day_count + 1, $week_of_month, $month, $year)); } ... #2 - In 'style.php' put in code like this: #2a - At the top: $bgcolore = "#FFFFCC"; // Standard background for each individual calendar entry $ptocolor = "#98FB98"; // Pale green $visitcolor = "#FFD700"; // Gold #2b - Near the bottom: ... table.phpc-main ul { margin: 2px; padding: 0; list-style-type: none; border-color: <?php echo $sepcolor ?>; border-style: solid; border-width: 1px 1px 0 1px; background-color: <?php echo $bgcolore ?>; } table.phpc-main li { font-size: 80%; font-weight: normal; padding: 0; border-color: <?php echo $sepcolor ?>; border-style: solid; border-width: 0 0 1px 0; margin: 0; } li.p { background-color: <?php echo $ptocolor ?>; } li.v { background-color: <?php echo $visitcolor ?>; } table.phpc-main li a { display: block; text-decoration: none; padding: 2px; } table.phpc-main li a:hover { background-color: <?php echo $bgcolorh ?>; color: <?php echo $textcolor2 ?>; } ... -- Larry |
From: Larry J. <joh...@gm...> - 2008-10-26 20:51:21
|
Hello everyone, Does anyone know how to change the color of a detail entry, say for example if the detail entry contains the word "vacation" to make it green? -- Larry |
From: Joppe <jo...@pu...> - 2008-10-12 18:57:19
|
Hi all, i've tested PHP-Calendar and it seems to work fine. However you can't add a weekly event forexample on February if event ends on 31. March, because current month has only 28 days ( 29 in 2008 ). Of course you can chance calendar month to march an add the event but it's not a good way to add an event.. On the other hand on January you can add weekly event which ends 31. February. Has anyone fix this problem. Thanks in advance -- Jorma Hakala jo...@pu... |
From: Gabriel H. <ga...@ga...> - 2008-07-22 08:42:22
|
Can you email a URL to an example of the problem? Gabriel 2008/7/21 Larry Johnson <joh...@gm...>: > Hello Gabriel, > > Thank you VERY much for the link to your updated files. I was able to go > through them and find the code to highlight today's date/day. I also ended > up moving some of the buttons around for the months and admin functions as > you had done. Finally I also added the 'Current month' button using your > code. Again, thank you very much for this, this helps me tremendously! > > One super minor thing I am noticing and just cannot for the life of me find > an answer to is in IE the buttons for the months and admin functions are > only getting a black border on their left and right, i.e. their border on > the top and bottom is not there. It looks great in Firefox (all borders are > there in Firefox) but some of the people using my calendar probably will be > using IE. Any thoughts on how to get a black border to appear on the top > and bottom instead of just the left and right when in IE? > > Thanks again Gabriel, you really made my day! > > Larry > > > > On Sun, Jul 20, 2008 at 10:33 AM, Gabriel Harrison < > ga...@ga...> wrote: > >> Hi Larry, >> >> The modifications I did a while back include this option. >> >> http://www.gabrielharrison.co.uk/php-calendar >> >> Gabriel >> 2008/7/19 Larry Johnson <joh...@gm...>: >> >>> I am looking for one more tweak. I would like the day on the calendar >>> that is today's date to be a different color so that its quickly and easily >>> recognized. I can't figure out how to do it though. Anyone have any ideas >>> on how to do this? >>> >>> -- >>> Larry >>> >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>> challenge >>> Build the coolest Linux based applications with Moblin SDK & win great >>> prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the >>> world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> Php-calendar-discussion mailing list >>> Php...@li... >>> https://lists.sourceforge.net/lists/listinfo/php-calendar-discussion >>> >>> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Php-calendar-discussion mailing list >> Php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-calendar-discussion >> >> > > > -- > Larry > |
From: Larry J. <joh...@gm...> - 2008-07-21 22:53:17
|
Hello Gabriel, Thank you VERY much for the link to your updated files. I was able to go through them and find the code to highlight today's date/day. I also ended up moving some of the buttons around for the months and admin functions as you had done. Finally I also added the 'Current month' button using your code. Again, thank you very much for this, this helps me tremendously! One super minor thing I am noticing and just cannot for the life of me find an answer to is in IE the buttons for the months and admin functions are only getting a black border on their left and right, i.e. their border on the top and bottom is not there. It looks great in Firefox (all borders are there in Firefox) but some of the people using my calendar probably will be using IE. Any thoughts on how to get a black border to appear on the top and bottom instead of just the left and right when in IE? Thanks again Gabriel, you really made my day! Larry On Sun, Jul 20, 2008 at 10:33 AM, Gabriel Harrison < ga...@ga...> wrote: > Hi Larry, > > The modifications I did a while back include this option. > > http://www.gabrielharrison.co.uk/php-calendar > > Gabriel > 2008/7/19 Larry Johnson <joh...@gm...>: > >> I am looking for one more tweak. I would like the day on the calendar >> that is today's date to be a different color so that its quickly and easily >> recognized. I can't figure out how to do it though. Anyone have any ideas >> on how to do this? >> >> -- >> Larry >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Php-calendar-discussion mailing list >> Php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-calendar-discussion >> >> > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Php-calendar-discussion mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/php-calendar-discussion > > -- Larry |
From: Gabriel H. <ga...@ga...> - 2008-07-20 15:33:51
|
Hi Larry, The modifications I did a while back include this option. http://www.gabrielharrison.co.uk/php-calendar Gabriel 2008/7/19 Larry Johnson <joh...@gm...>: > I am looking for one more tweak. I would like the day on the calendar that > is today's date to be a different color so that its quickly and easily > recognized. I can't figure out how to do it though. Anyone have any ideas > on how to do this? > > -- > Larry > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Php-calendar-discussion mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/php-calendar-discussion > > |
From: Larry J. <joh...@gm...> - 2008-07-19 14:58:40
|
I am looking for one more tweak. I would like the day on the calendar that is today's date to be a different color so that its quickly and easily recognized. I can't figure out how to do it though. Anyone have any ideas on how to do this? -- Larry |
From: Larry J. <joh...@gm...> - 2008-07-19 14:57:27
|
Below is another minor tweak I made: -- Larry #9 - (optional) Put in a login screen just to see the calendar, with redirecting if attempt to go right to calendar Put in the following code at the top of the index.php file: <?php include "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/Calendars/Calendar_000_LarryJohnsonPersonal/authorized_check.php"; ?> Added the following files: authorized_check.php login_regular.php login_redirect.php authorized_check.php <?php // Check to make sure that the user is logged into the session session_start(); if (isset($_SESSION['logged0LJ']) && $_SESSION['logged0LJ'] == 1) { // Do nothing, the user is logged into the session } else { // Redirect the user to the login page as they are NOT yet logged into the session $redirect = $_SERVER['PHP_SELF']; header("Refresh: 3; URL= http://localhost/Calendars/Calendar_000_LarryJohnsonPersonal/login_redirect.php?redirect=$redirect"); // redirect in 3 seconds echo "You must be logged in to view this page!<br><br>"; echo "You are now being redirected to the login page.<br><br>"; echo "(If your browser doesn't support this, " . "<a href=\" http://localhost/Calendars/Calendar_000_LarryJohnsonPersonal/login_redirect.php?redirect=$redirect\">click here</a>)"; die(); } ?> login_regular.php <?php include "header.php"; ?> <?php session_start(); $_SESSION['logged'] = 0; if (isset($_POST['submit'])) { // The user clicked the Submit button, i.e. the variable $_POST['submit'] has a value // Check username and password information against the database mysql_connect("localhost", "root", "hellocar"); mysql_select_db("calendar"); $user_check = $_POST['username_check']; $passwd_check = md5($_POST['password_check']); $calendar_name_check = $_POST['calendar_check']; $result = mysql_query("SELECT * FROM phpc_users WHERE calendar = '". $calendar_name_check . "' AND username = '". $user_check . "' AND password = '". $passwd_check ."'") or die('Could not look up user information; ' . mysql_error()); if ($row = mysql_fetch_array($result)) { // The user logged in correctly $_SESSION['logged0LJ'] = 1; $tmenu = " http://localhost/Calendars/Calendar_000_LarryJohnsonPersonal/index.php"; header ("Refresh: 3; URL=\"" . $tmenu . "\""); // redirect in 3 seconds echo "<br>"; echo "Successful login! You are being directed to the Larry Johnson Personal calendar!<br>"; echo "(If your browser doesn't support this, " . "<a href=\"" . $tmenu . "\">click here</a>)"; } else { // The user did NOT log in correctly // End the PHP ?> <!-- // Go into HTML and start the login form again --> <html> <body> <p> Invalid Username and/or Password!<br><br> <form action="login_regular.php" method="post"> <table border="0" cellspacing="1" cellpadding="4" bgcolor="#C0C0C0" align="left"> <tr> <td bgcolor="#FFFFFF" width="42%"><B>Username</B></td> <td bgcolor="#FFFFFF"> <select name="username_check"> <option value="" selected>Select a userid...</option> <option value="johnlaus">johnlaus</option> </select> </td> </tr> <tr> <td bgcolor="#FFFFFF"><B>Password</B></td> <td bgcolor="#FFFFFF"> <input type="password" name="password_check"> </td> </tr> <tr> <td bgcolor="#FFFFFF"><B>Calendar</B></td> <td bgcolor="#FFFFFF"> <select name="calendar_check"> <option value="" selected>Select a calendar...</option> <option value="0">Calendar 000 - Larry Johnson Personal</option> </select> </td> </tr> <tr> <td bgcolor="#FFFFFF" colspan=2 align="left"> <input type="submit" name="submit" value="Login"> </td> </tr> </table> </form> </p> <?php } } else { // The user has NOT YET clicked the Submit button // End the PHP ?> <!-- // Go into HTML and start the login form --> <html> <body> <p> <form action="login_regular.php" method="post"> <table border="0" cellspacing="1" cellpadding="4" bgcolor="#C0C0C0" align="left"> <tr> <td bgcolor="#FFFFFF" width="42%"><B>Username</B></td> <td bgcolor="#FFFFFF"> <select name="username_check"> <option value="" selected>Select a userid...</option> <option value="johnlaus">johnlaus</option> </select> </td> </tr> <tr> <td bgcolor="#FFFFFF"><B>Password</B></td> <td bgcolor="#FFFFFF"> <input type="password" name="password_check"> </td> </tr> <tr> <td bgcolor="#FFFFFF"><B>Calendar</B></td> <td bgcolor="#FFFFFF"> <select name="calendar_check"> <option value="" selected>Select a calendar...</option> <option value="0">Calendar 000 - Larry Johnson Personal</option> </select> </td> </tr> <tr> <td bgcolor="#FFFFFF" colspan=2 align="left"> <input type="submit" name="submit" value="Login"> </td> </tr> </table> </form> </p> <?php } ?> </body> </html> login_redirect.php <?php include "header.php"; ?> <?php session_start(); $_SESSION['logged'] = 0; if (isset($_POST['submit'])) { // The user clicked the Submit button, i.e. the variable $_POST['submit'] has a value // Check username and password information against the database mysql_connect("localhost", "root", "hellocar"); mysql_select_db("calendar"); $user_check = $_POST['username_check']; $passwd_check = md5($_POST['password_check']); $calendar_name_check = $_POST['calendar_check']; $result = mysql_query("SELECT * FROM phpc_users WHERE calendar = '". $calendar_name_check . "' AND username = '". $user_check . "' AND password = '". $passwd_check ."'") or die('Could not look up user information; ' . mysql_error()); if ($row = mysql_fetch_array($result)) { // The user logged in correctly $_SESSION['logged0LJ'] = 1; header ("Refresh: 3; URL=" . $_POST['redirect'] . ""); // redirect in 3 seconds echo "You are being redirected to your original page request!<br>"; echo "(If your browser doesn't support this, " . "<a href=\"" . $_POST['redirect']. "\">click here</a>)"; } else { // The user did NOT log in correctly // End the PHP ?> <!-- // Go into HTML and start the login form again --> <html> <body> <p> Invalid Username and/or Password!<br><br> <form action="login_redirect.php" method="post"> <input type="hidden" name="redirect" value="<?php echo $_POST['redirect']; ?>"> <table border="0" cellspacing="1" cellpadding="4" bgcolor="#C0C0C0" align="left"> <tr> <td bgcolor="#FFFFFF" width="42%"><B>Username</B></td> <td bgcolor="#FFFFFF"> <select name="username_check"> <option value="" selected>Select a userid...</option> <option value="johnlaus">johnlaus</option> </select> </td> </tr> <tr> <td bgcolor="#FFFFFF"><B>Password</B></td> <td bgcolor="#FFFFFF"> <input type="password" name="password_check"> </td> </tr> <tr> <td bgcolor="#FFFFFF"><B>Calendar</B></td> <td bgcolor="#FFFFFF"> <select name="calendar_check"> <option value="" selected>Select a calendar...</option> <option value="0">Calendar 000 - Larry Johnson Personal</option> </select> </td> </tr> <tr> <td bgcolor="#FFFFFF" colspan=2 align="left"> <input type="submit" name="submit" value="Login"> </td> </tr> </table> </form> </p> <?php } } else { // The user has NOT YET clicked the Submit button // End the PHP ?> <!-- // Go into HTML and start the login form --> <html> <body> <p> Please log in.<br> <!-- // Pop into PHP --> <? if (isset($_GET['redirect'])) { $redirect = $_GET['redirect']; } else { $redirect = "index.php"; } ?> <!-- // Exit out of PHP --> <form action="login_redirect.php" method="post"> <input type="hidden" name="redirect" value="<?php echo $_GET['redirect']; ?>"> <table border="0" cellspacing="1" cellpadding="4" bgcolor="#C0C0C0" align="left"> <tr> <td bgcolor="#FFFFFF" width="42%"><B>Username</B></td> <td bgcolor="#FFFFFF"> <select name="username_check"> <option value="" selected>Select a userid...</option> <option value="johnlaus">johnlaus</option> </select> </td> </tr> <tr> <td bgcolor="#FFFFFF"><B>Password</B></td> <td bgcolor="#FFFFFF"> <input type="password" name="password_check"> </td> </tr> <tr> <td bgcolor="#FFFFFF"><B>Calendar</B></td> <td bgcolor="#FFFFFF"> <select name="calendar_check"> <option value="" selected>Select a calendar...</option> <option value="0">Calendar 000 - Larry Johnson Personal</option> </select> </td> </tr> <tr> <td bgcolor="#FFFFFF" colspan=2 align="left"> <input type="submit" name="submit" value="Login"> </td> </tr> </table> </form> </p> <?php } ?> </body> </html> |
From: Larry J. <joh...@gm...> - 2008-07-19 14:55:38
|
This is a great calendar (thanks Sean!). I have made some minor personal tweaks that customize it a bit for me. See the text below for the details on those tweaks. I am pretty new to the PHP programming environment so these tweaks may not have been written in the best fashion but they do work. If you have any suggestions or comments on them let me know, or if you have any great tweaks as well. -- Larry PHP Calendar - Tweaks #1 - Take out the footer hyperlinks #2 - Put in color settings #3 - Put in IE document type so that calendar "stretches" like it automatically does in Firefox #4 - (3 entries) Putting in the programming so that a user can only modify or delete their own entries #5 - Things work perfectly in Firefox, but in IE the column widths are not showing right. To fix that adjust this code. #6 - Put in a header #7 - Change the text in some of the buttons #8 - Put in programming so that a user can only modify the calendars that they have access to #1 - Take out the footer hyperlinks calendar.php comment this out -> function link_bar() #2 - Put in different color settings index.php define('SEPCOLOR', '#000000'); // calendar gridlines; default = #000000 (which is black) define('BG_COLOR1', '#FFFFFF'); // background behind calendar; default = #FFFFFF (which is white) define('BG_COLOR2', '#4E78A0'); // extra days at the beg/end of a month that are not part of the month + background when highlight a cal entry; default = gray define('BG_COLOR3', '#FF8C00'); // column headings and buttons at top; default = silver define('BG_COLOR4', '#EEE8AA'); // add event background; default = #CCCCCC (which is gray) define('BG_PAST', '#EEE8AA'); // past days, days already passed; default = silver define('BG_FUTURE', '#EEE8AA'); // future days; default = white define('TEXTCOLOR1', '#000000'); // font for title, buttons, column headings and date; default = #000000 (which is black) define('TEXTCOLOR2', '#FFFFFF'); // font when highlight a calendar entry; default = #FFFFFF (which is white) #3 - Put in IE document type so that calendar "stretches" like it automatically does in Firefox calendar.php Place the following code at the top of calendar.php: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " http://www.w3.org/TR/html4/strict.dtd"> #4 - (3 entries) Putting in the programming so that a user can only modify or delete their own entries #4a display.php function display_id($id) in the php document display.php // displays a particular event to be show singly // returns XHTML data for the event function display_id($id) { global $db, $year, $month, $day, $config; $row = get_event_by_id($id); $year = $row['year']; $month = $row['month']; $day = $row['day']; $time_str = formatted_time_string($row['starttime'], $row['eventtype']); $date_str = formatted_date_string($row['year'], $row['month'], $row['day'], $row['end_year'], $row['end_month'], $row['end_day']); $dur_str = get_duration($row['duration'], $row['eventtype']); $subject = htmlspecialchars(strip_tags(stripslashes($row['subject']))); if(empty($subject)) $subject = _('(No subject)'); $name = stripslashes($row['username']); $desc = parse_desc($row['description']); if(check_user() || $config['anon_permission'] >= 2) { if ($_SESSION['user'] == $name OR $_SESSION['user'] == "johnlaus") { return tag('div', attributes('class="phpc-main"'), tag('h2', $subject), tag('div', 'by ', tag('cite', $name)), tag('div', create_id_link(_('Modify'), 'event_form', $id), "\n", create_id_link(_('Delete'), 'event_delete', $id)), tag('div', tag('div', _('Date').": $date_str"), tag('div', _('Time').": $time_str"), tag('div', _('Duration').": $dur_str")), tag('p', $desc)); } else { return tag('div', attributes('class="phpc-main"'), tag('h2', $subject), tag('div', 'by ', tag('cite', $name)), tag('div', tag('div', _('Date').": $date_str"), tag('div', _('Time').": $time_str"), tag('div', _('Duration').": $dur_str")), tag('p', $desc)); } } else { return tag('div', attributes('class="phpc-main"'), tag('h2', $subject), tag('div', 'by ', tag('cite', $name)), tag('div', tag('div', _('Date').": $date_str"), tag('div', _('Time').": $time_str"), tag('div', _('Duration').": $dur_str")), tag('p', $desc)); } } ?> #4b event_form.php $name = stripslashes($row['username']); if ($_SESSION['user'] <> $name AND $_SESSION['user'] <> "johnlaus") { die("Hacking attempt to modify! You are in trouble " . $_SESSION['user'] . "!"); } #4c event_delete.php $row = get_event_by_id($id); $name = stripslashes($row['username']); if ($_SESSION['user'] <> $name AND $_SESSION['user'] <> "johnlaus") { die("Hacking attempt to delete! You are in trouble " . $_SESSION['user'] . "!"); } #5 - Things work perfectly in Firefox, but in IE the column widths are not showing right. To fix that adjust this code. display.php return tag('div', month_navbar($month, $year), tag('table', attributes('class="phpc-main"', 'id="calendar"'), tag('caption', month_name($month)." $year"), tag('colgroup', attributes('span="7"', 'width="14.3%"')), tag('thead', $days), create_month($month, $year))); #6 - Put in a header header.php <img src="images/Aesculap_Logo2.jpg" WIDTH=280 HEIGHT=60 alt="Logo"> <br> calendar.php <?php include "header.php"; ?> #7 - Change the text in some of the buttons display.php function month_navbar($month, $year) { $html = tag('div', attributes('class="phpc-navbar"')); menu_item_append($html, _('<< year'), 'display', $year - 1, $month); menu_item_append($html, _('<< month'), 'display', $year, $month - 1); for($i = 1; $i <= 12; $i++) { menu_item_append($html, short_month_name($i), 'display', $year, $i); } menu_item_append($html, _('>> month'), 'display', $year, $month + 1); menu_item_append($html, _('>> year'), 'display', $year + 1, $month); return $html; } #8 - Put in programming so that a user can only modify the calendars that they have access to When I installed the calendar I found that if a user has log-in access to calendar 1, then if they open up calendar 2 they also have update access to it as well, i.e. they were also logged-in to the calendar 2. This occurred even if they did not have a log-in for calendar 2. So I changed the text $_SESSION['user'] in each calendar to also include the calendar #. So for example for calendar 000 I changed the text $_SESSION['user'] to $_SESSION['user000']. |
From: Carlos W. <car...@gm...> - 2008-07-17 23:55:32
|
I was recommended "php-calendar" by someone on the Linux forums because my company has 5 separate conference rooms through out our office. I am looking for a web based application that allows users to login and schedule / reserve conference rooms according to date and time slots. I saw the demo of php-calendar and was not clear if I can have 5 separate calendars for each of my conference rooms in my company. I hope I am explaining exactly what I am looking for. Simply but a way for users to schedule a room any time and day of the week while limiting users the ability to delete already made reservations. Can anyone please tell me if php-calendar will work for me and my company? -- Man your battle stations... |
From: Bill S. <bi...@au...> - 2008-05-20 16:16:01
|
I'm having display problems with IE6 & IE7. With IE6 the row height is not increasing dynamically as you add items. Consequently, only the top 1 or 2 items display. With IE7 the width of the right and left columns is less than the other columns. I can't get uniform width. Thanks in advance for assistance. ====================== Bill Stoltz 985-863-7020 Home 985-768-0800 Cell bi...@au... ====================== |
From: Sean P. <spr...@gm...> - 2008-04-15 01:47:36
|
I thought I had these at a better place, but look in includes/setup.php edit $phpc_server or $phpc_url. Sean On Mon, Apr 14, 2008 at 9:39 PM, Chris Ursulak <ch...@ic...> wrote: > I have installed the calendar in a virtual domain setup where the > calendar works fine with one exception. > It doesn't remember (or carry session information) about the port it's > running on. For example it's running on port 8083 (www.domain.com:8083/) > and of course I have another domain on port 80. > > When logging in or out, or adding and event... It looks for the files in > the same directory but through port 80... > > Can someone point me to right part or code for this? I don't know php that > well, but figure it's in the url match section somewhere... > > Thanks in advance. > > Chris > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Php-calendar-discussion mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/php-calendar-discussion > > |