Mini cal error. Iets met de tijd ofzo...

Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
patz
Berichten: 215
Lid geworden op: 11 mar 2005, 15:22
Locatie: Rotterdam
Contacteer:

Mini cal error. Iets met de tijd ofzo...

Bericht door patz » 19 sep 2005, 10:06

Ik krijg na het installen van mini cal de volgende melding:

Code: Selecteer alles

Warning: date(): Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in c:\domains\paboforum.nl\wwwroot\forum\mods\netclectic\mini_cal\calendarSuite.php on line 190

Warning: date(): Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in c:\domains\paboforum.nl\wwwroot\forum\mods\netclectic\mini_cal\calendarSuite.php on line 191

Warning: date(): Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in c:\domains\paboforum.nl\wwwroot\forum\mods\netclectic\mini_cal\calendarSuite.php on line 192

Warning: date(): Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in c:\domains\paboforum.nl\wwwroot\forum\mods\netclectic\mini_cal\calendarSuite.php on line 193

Warning: date(): Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in c:\domains\paboforum.nl\wwwroot\forum\mods\netclectic\mini_cal\calendarSuite.php on line 194
Dit doet hij alleen maar in de maand september. Als ik doorblader naar een oudere of nieuwe maand, zie ik wel een overzicht verschijnen. Zou het met de windowsserver te maken kunnen hebben waarop mijn site gehost wordt?

Een tweede vraagje omtrent deze mod. MOet ik nog een mod toevoegen om bijvoorbeeld events in te kunnen voegen? Want ik zie nergens die optie...

Hier de install:

Code: Selecteer alles

## EasyMod 0.0.7 compliant
############################################################## 
## MOD Title: Mini Cal 
## MOD Author: netclectic < adrian@netclectic.com > (Adrian Cockburn) http://www.netclectic.com 
## MOD Description: Provides a mini calendar on your forum index page. Includes the ability to search for
##                  for all posts or events on any day just by clicking on the date.
##                  Integrates with MyCalendar mod: shows a list of upcoming events, adds a quick link
##                  for posting new events in any event enabled forums.
##                  Integrates with Birthdays mod: shows a list of upcoming birthdays.
##
## MOD Version: 1.1.11
## 
## Installation Level: easy
## Installation Time: 5 Minutes 
## Files To Edit:  (3) index.php, index_body.tpl search.php
##                    
## Included Files: (5) calendarSuite.php, mini_cal.php, mini_cal_body.tpl,
##                     mini_cal_config.php, lang_main_mini_cal.php
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/ 
############################################################### 
## Author Notes: 
##
##      This mod was designed to compliment the MyCalendar mod...
##          http://mojavelinux.com/forum/viewtopic.php?t=11
##      and was tested against Versions 2.2.2 & 2.2.6 & 2.2.7
##      and MyCalendar Plus 0.8 
## 
##      You can define whether you are using MyCalendar (STANDARD, PLUS or NONE) 
##      in mini_cal_config.php by changing the value assigned to MINI_CAL_MYCAL_VERSION
##
##      To enable search for events instead of the default search for posts just change the 
##      value assigned to MINI_CAL_DATE_SEARCH in mini_cal_config.php to 'EVENTS'
##
##      Also integrates with the Birthday mod - http://mods.db9.dk/viewforum.php?f=2
##
############################################################## 
## MOD History: 
## 
##      1.1.11   :    Fixed stupid mistake in mini_cal with missing /
##      1.1.10   :    Include fix for Birthday mod with eXtreme Styles mod.
##                    Include extra formatting for Mini_Cal_date_format to include times.
##                    Fixed default First Day of Week, again. Doh!
##      1.1.9    :    Fixed blonde moment with wrong First Day of Week.
##                    Updated mini_cal search function to not be mysql specific.
##      1.1.8    :    Fixed problem with ALL forums showing in the event forums selection box when not using mycal+.
##                    Added option in mini_cal_config for using the mycalendar left / right images - MINI_CAL_USE_IMAGES
##                    Renamed install file to mini_cal_install.txt after lots of "where's the install?" questions.
##      1.1.7    :    Fixed problem with date format when using alternate First Day Of Week.
##      1.1.6    :    Added support for MyCalendar Plus
##      1.1.5    :    Remove some unnessecary date formatting from search.php
##                    Fix problem with timezones in EVENTS mode
##                    Added index.html files to avoid directory browsing.
##      1.1.4    :    Added EVENTS search functionality
##                    Fixed problem with the month displayed not using the correct timezone
##                    Change MINI_CAL_DAYS_AHEAD to default to zero = unlimited
##                    Removed extra info from drop down list if only one events forum.
##      1.1.3    :    Minor fix (missing bracket) in mini_cal.php
##      1.1.2    :    Added a 'number of days ahead' limit for upcoming events.
##      1.1.1    :    Reorgansation of file locations, added drop down list of events forums,
##                    added support for birthday mod
##      1.1.0    :    Updated for 2.0.4, also added support for extra events date formats
##      1.0.5b,c :    Minor bug fixes to mini_cal.php
##      1.0.5    :    Added a First day of the week constant and a limit constant to limit the number of events shown.
##      1.0.4    :    Added search by date functionality. No longer requires MyCalendar
##      1.0.3    :    Added some missing commas, made Easymod Compliant.
##      1.0.2    :    Update to user new mod template.
##      1.0.1    :    Moved all mini_cal stuff into new files to minimize changes to core phpBB files.
##      1.0.0    :    Original Release.
##
##      Upgrade Path
##          1.1.9  -> 1.1.10 : Replace mini_cal.php
##                            Replace lang_main_mini_cal.php
##          1.1.8  -> 1.1.9 : Replace mini_cal_config.php           - only required if updating from 1.1.8
##                            Replace lang_main_mini_cal.php        - only required if updating from 1.1.8
##                            Re-Do marked changes in search.php
##          1.1.7  -> 1.1.8 : Replace mini_cal.php
##                            Replace mini_cal_config.php
##          1.1.6  -> 1.1.7 : Replace mini_cal.php
##          1.1.5  -> 1.1.6 : Replace mini_cal.php and mini_cal_config.php
##          1.1.4  -> 1.1.5 : Replace files in mini_cal directory
##                            Re-Do marked changes in search.php
##                            Upload index.html files
##          1.1.2+ -> 1.1.4 : Replace mini_cal.php
##                            Replace mini_cal_config.php
##                            Re-Do changes to search.php (only required if you want to use the Events Search functionality)
##
##      Known Issues
##          MyCalendar functions are MySQL specific - this is a limitation of the MyCalendar mod
##          Does not handle recurring calendar events.
##
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 

# 
#-----[ COPY ]------------------------------------------ 
#
copy mods/index.html to mods/
copy mods/netclectic/index.html to mods/netclectic/
copy mods/netclectic/mini_cal/* to mods/netclectic/mini_cal/
copy language/lang_english/lang_main_mini_cal.php to language/lang_english/
copy templates/subSilver/mini_cal_body.tpl to templates/subSilver/

# 
#-----[ OPEN ]------------------------------------------ 
# 
index.php

# 
#-----[ FIND ]------------------------------------------ 
# 
$template->pparse('body');

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
// MOD MINI CAL BEGIN
include($phpbb_root_path . 'mods/netclectic/mini_cal/mini_cal.'.$phpEx); 
// MOD MINI CAL END


# 
#-----[ OPEN ]------------------------------------------ 
# 
search.php

# 
#-----[ FIND ]------------------------------------------ 
# 
	$search_time = 0;
}

# 
#-----[ AFTER, ADD ]------------------------------------
# 
if ( isset($HTTP_POST_VARS['d']) || isset($HTTP_GET_VARS['d']) )
{
	$search_date = ( isset($HTTP_POST_VARS['d']) ) ? intval($HTTP_POST_VARS['d']) : intval($HTTP_GET_VARS['d']);
}
else
{
	$search_date = 0;
}

# 
#-----[ FIND ]------------------------------------------ 
# 
if ( $search_id == 'newposts' || $search_id == 'egosearch' || $search_id == 'unanswered'

# 
#-----[ IN-LINE FIND ]----------------------------------
# 
$search_author != ''

# 
#-----[ IN-LINE AFTER, ADD ]----------------------------
# 
 || $search_id == 'mini_cal' || $search_id == 'mini_cal_events'
  
# 
#-----[ FIND ]------------------------------------------ 
# 
if ( $search_id == 'newposts' || $search_id == 'egosearch' || ( $search_author != '' &&

# 
#-----[ IN-LINE FIND ]----------------------------------
# 
$search_keywords == '' )

# 
#-----[ IN-LINE AFTER, ADD ]----------------------------
# 
 || $search_id == 'mini_cal' || $search_id == 'mini_cal_events'

# 
#-----[ FIND ]------------------------------------------ 
# 
# The whole section to search for is -
#
# 			else if ( $search_id == 'egosearch' )
#			{
#				if ( $userdata['session_logged_in'] )
#				{
#					$sql = "SELECT post_id 
#						FROM " . POSTS_TABLE . " 
#						WHERE poster_id = " . $userdata['user_id'];;
#				}
#				else
#				{
#					redirect(append_sid("login.$phpEx?redirect=search.$phpEx&search_id=egosearch", true));
#				}
#
#				$show_results = 'topics';
#				$sort_by = 0;
#				$sort_dir = 'DESC';
#			}
#
else if ( $search_id == 'egosearch' )
				$sort_dir = 'DESC';
			}


# 
#-----[ AFTER, ADD ]------------------------------------
# 
# changed : 1.1.5, 1.1.9
#
            else if ( $search_id == 'mini_cal' )
            {
                $nix_tomorrow  = mktime (0,0,0,date("m", $search_date), date("d", $search_date)+1,date("Y", $search_date)); 
                
                $sql = "SELECT post_id 
                    FROM " . POSTS_TABLE . " 
                    WHERE post_time >= $search_date and post_time < $nix_tomorrow"; 
               
				$show_results = 'posts';
				$sort_by = 0;
				$sort_dir = 'DESC';
            }
            else if ( $search_id == 'mini_cal_events' )
            {
				$sql = "SELECT t.topic_first_post_id as post_id  
					FROM " . MYCALENDAR_TABLE . " c, " . TOPICS_TABLE . " t  
					WHERE t.topic_id = c.topic_id 
                        AND DATE_FORMAT(c.cal_date, '%Y%m%d') = $search_date";

				$show_results = 'posts';
				$sort_by = 0;
				$sort_dir = 'DESC';
            }

            
# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/index_body.tpl

# 
#-----[ FIND ]------------------------------------------ 
# 
<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
{MINI_CAL_OUTPUT}
<br />


# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM 
En omdat ik de cal op mijn portal wilde hebben, heb ik de volgende optie gedaan ipv met de index bestanden:

Code: Selecteer alles

open:
portal.php

find:
$template->pparse('body');

add before:
// MOD MINI CAL BEGIN
include($phpbb_root_path . 'mods/netclectic/mini_cal/mini_cal.'.$phpEx);
// MOD MINI CAL END

open:
portal_body.tpl

find:
            <a href="{U_SEARCH}">{L_SEARCH}</a><br />
         </span></td>
         </tr>
        </table>
       
        <br />
add after:
{MINI_CAL_OUTPUT}

EOM
Kan iemand mij helpen?

Gesloten