Seite 2 von 3

Verfasst: 02.11.2003 16:50
von Leuchte
bei next_birthday_greeting sollte imho eine 0 stehen..
wenn sich jemand registriert und kein geb.datum angibt, wird dann korrekterweise auch kein geb.datum angezeigt oder der 1.1.1970?

Verfasst: 02.11.2003 17:27
von Wila
ich habe die 5x9 nur beim user anonymous eingetragen

Verfasst: 02.11.2003 17:34
von Leuchte
Wila hat geschrieben:Und was genau ist mit der 9 Serie gemeint? Ich habe bei der phpbb_users (Anonymous) unter user_birthday und user_next_birthday_greeting 5x die 9 eingetragen.
bei user_next_birthday_greeting muss eine 0 stehen.
und bei user_birthday muss 99999 stehen
ich hat geschrieben:wenn sich jemand registriert und kein geb.datum angibt, wird dann korrekterweise auch kein geb.datum angezeigt oder der 1.1.1970?
?

Verfasst: 02.11.2003 17:36
von Henne
Wenn kein Geburtstag eingetragen wird, dann wird auch die 9er Folge eingetragen.
Das wird im Code ja überall abgefragt...

Verfasst: 14.11.2003 00:37
von Jessi
Hallo,

na hier darf ich mit meinem kleinen Problemchen nicht fehlen.
Hab heute mal über den EasyMod das "Intro_and_Portal_MOD_Version_1_50_emc" installieren lassen. Zur anwendung kommt fiblue3d. Die installation habe ich mit Hand noch mal geprüft. Alles OK. Die "intro_portal_mod_db_install.php" wurde ebenfalls erfolgreich ausgeführt. Das "Intro" und "Index" funktionieren ja aber wenn ich auf Portal klicke erscheint die Fehlermeldung

Code: Alles auswählen

Could not fetch birthday for users.

DEBUG MODE

Line : 575
File : meine seite/webseiten/forum/portal.php
Ich muß dazu noch erwähnen das ich bei mir keine Eingabemöglichkeit für einen Geburtstag habe.
Wer gibt mir mal den Schubs in die richtige Richtung??

Bis bald
Jessi

Verfasst: 14.11.2003 09:08
von Acid
..poste mal den kompletten Query ($sql) aus der portal.php (ca. Zeile 570).

Verfasst: 14.11.2003 09:30
von Jessi
Guten Morgen Acid

supi das du so schnell geantwortest hast.
Da isser der Code aus der portal.php
Allerdings ist mir mal aufgefallen dass die Googlesuche oder der Kalender usw., die dort eingestellt werden können, auch nicht angezeigt werden. Sind das alles extra mods?

Code: Alles auswählen

// CODE TAKEN FROM Birthday Mod Version 1.51 from Niels Chr. Rød Denmark http://mods.db9.dk/ START
$time_now = time();
$date_now = create_date('md', $time_now, $board_config['board_timezone']);
$date_forward = create_date('md', $time_now+($board_config['birthday_check_day']*86400), $board_config['board_timezone']);
$sql = ($board_config['birthday_check_day']) ? "SELECT user_id, username, user_birthday, user_level FROM ".USERS_TABLE." WHERE user_birthday<>999999 AND
(user_birthday<0 OR DATE_FORMAT(FROM_DAYS(user_birthday),'%m%d') BETWEEN ".(($date_now<$date_forward) ? "'($date_now+0)' AND '$date_forward'" : "'($date_now+0)' AND '1231' OR DATE_FORMAT(FROM_DAYS(user_birthday),'%m%d') BETWEEN '0101' AND '$date_forward'") .") ORDER BY username" : "";
if(!$result = $db->sql_query($sql))
{
     	message_die(GENERAL_ERROR, "Could not fetch birthday for users.", "", __LINE__, __FILE__, $sql);
} else
{
	$birthdayrows = array();
	$birthdayrows = $db->sql_fetchrowset($result);
}
	if (!empty($birthdayrows))
	{
		$this_year = create_date('Y', $time_now, $board_config['board_timezone']);
		$date_today = $this_year.$date_now;
		$date_forward = $this_year.$date_forward;
	      while (list($user_number, $birthdayrow) = each($birthdayrows))
		{
		      $user_birthday2 = $this_year.($user_birthday = realdate("md",$birthdayrow['user_birthday'] ));
			// give user a year more, if he alread have had birthday
      		if ( $user_birthday2 < $date_today ) $user_birthday2 += 10000;
			if ( $user_birthday2 == $date_today )
      		{
				//user have birthday today
				$user_age = $this_year - realdate ( 'Y',$birthdayrow['user_birthday'] );
				switch ($birthdayrow['user_level'])
				{
					case ADMIN :
		      			$birthdayrow['username'] = '<b>' . $birthdayrow['username'] . '</b>';
      					$style_color = 'style="color:#' . $theme['fontcolor3'] . '"';						break;
					case MOD :
			      		$birthdayrow['username'] = '<b>' . $birthdayrow['username'] . '</b>';
      					$style_color = 'style="color:#' . $theme['fontcolor2'] . '"';						break;
					default: $style_color = '';
				}
				$birthday_today_list .= ' <a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $birthdayrow['user_id']) . '"' . $style_color .'>' . $birthdayrow['username'] . ' ('.$user_age.')</a>,';
		      } else if ( $user_birthday2 > $date_today  && $user_birthday2 <= $date_forward )
			{
				// user are having birthday within the next days
				$user_age = ( $this_year.$user_birthday < $date_today ) ? $this_year - realdate ('Y',$birthdayrow['user_birthday'])+1 : $this_year- realdate ('Y',$birthdayrow['user_birthday']);
				switch ($birthdayrow['user_level'])
				{
					case ADMIN :
		      			$birthdayrow['username'] = '<b>' . $birthdayrow['username'] . '</b>';
      					$style_color = 'style="color:#' . $theme['fontcolor3'] . '"';break;
					case MOD :
		      			$birthdayrow['username'] = '<b>' . $birthdayrow['username'] . '</b>';
      					$style_color = 'style="color:#' . $theme['fontcolor2'] . '"';break;
					default: $style_color = '';
				}
				$birthday_week_list .= ' <a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $birthdayrow['user_id']) . '"' . $style_color .'>' . $birthdayrow['username'] . ' ('.$user_age.')</a>,';
			}
		}
		if ($birthday_today_list) $birthday_today_list[ strlen( $birthday_today_list)-1] = ' ';
		if ($birthday_week_list) $birthday_week_list[ strlen( $birthday_week_list)-1] = ' ';
	}
if (isset($result))
{
	$db->sql_freeresult($result);
}
// CODE TAKEN FROM Birthday Mod Version 1.51 from Niels Chr. Rød Denmark http://mods.db9.dk/ END
Ich danke dir für deine Hilfe

LG Jessi

Verfasst: 14.11.2003 09:40
von Acid
*na dann* siehe unten ;)

Verfasst: 14.11.2003 09:40
von Gast
Hallo Acid

ich bins noch mal. Du sorry aber jetzt geht es alles. Der einzigste Fehler war dass die "Optionalen Mods" die ja in der konfiguration ganz unten einzustellen sind, nicht installiert sind. Ja darum auch "Optional".
Soviel zum Thema blond, oder?
Na dann werde ich mal suchen woher ich das Birthday Mod bekomme.

Wünsche Dir noch einen supi Tag

LG Jessi

Verfasst: 14.11.2003 10:44
von Jessi
Hallo Acid, ich suche schon eine ganze Weile und finde es nicht. Kannst du mir bitte sagen wo ich die Birthday Mod`s her bekommen kann. :wink:

LG Jessi