Birthday mod

Allgemeiner Support zum phpBB 2 Board und phpBB 2 Modifikationen
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
marcombv
Beiträge: 17
Registriert: Sa 28.Jul, 2007 18:14

Birthday mod

Beitrag von marcombv »

I have installed, calendar_lite, and the birthday mod.

It works fine, but there are two small problems.

1. If an user registers, and he fills no birtdate the system fills in 01-01-1970, so we have a lot of birtdays that day. :)

2. Because of the many birtdays the calendar looks a little funny in december and januari. :(

http://www.venividivissie.org/cal_lite. ... m=12&cl_y=

http://www.venividivissie.org/cal_lite. ... &cl_y=2008
Zuletzt geändert von marcombv am Mo 06.Aug, 2007 14:13, insgesamt 1-mal geändert.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Insert in your usercp_register.php after

Code: Alles auswählen

		  $birthday = 999999;
	   }
	}
These lines

Code: Alles auswählen

	if ($b_day == 1 && $b_md == 1 && $b_year == 1970)
	{
		  $birthday = 999999;
	}
and correct the still wrong database values with this sql statement:

Code: Alles auswählen

UPDATE phpbb_users SET user_birthday = '999999' WHERE user_birthday = 0;
(I've moved this topic, because this is a problem in the Birthday MOD, not in the calender view...)
Zuletzt geändert von oxpus am Mo 06.Aug, 2007 19:30, insgesamt 1-mal geändert.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
marcombv
Beiträge: 17
Registriert: Sa 28.Jul, 2007 18:14

Beitrag von marcombv »

Vielen dank

Gruss Marco
marcombv
Beiträge: 17
Registriert: Sa 28.Jul, 2007 18:14

Geburtstag in calendar light

Beitrag von marcombv »

Leider, die geburtstag is wieder auf 1-1-1970 fur neue user. :wall:
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Was steht denn in der Datenbank-Tabelle phpbb_users für diese User im Feld user_birthday?
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
marcombv
Beiträge: 17
Registriert: Sa 28.Jul, 2007 18:14

Beitrag von marcombv »

Er steht 0. :(

Die andere steht 999999
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Dann führe die SQL-Anweisung nochmal aus und füge in der usercp_register.php nach den Zeilen

Code: Alles auswählen

	if ($b_day == 1 && $b_md == 1 && $b_year == 1970)
	{
		$birthday = 999999;
	}
noch diese Zeilen ein:

Code: Alles auswählen

	if ($birthday == 0)
	{
		$birthday = 999999;
	}
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
marcombv
Beiträge: 17
Registriert: Sa 28.Jul, 2007 18:14

Beitrag von marcombv »

Still doesn't work. ¢¦

Am I the only one with this problem?

Greetings Marco
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

...

Please attach your usercp_register.php to take a look (use zip or rar as file type to attach it).
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
marcombv
Beiträge: 17
Registriert: Sa 28.Jul, 2007 18:14

Beitrag von marcombv »

Here is the usercp_register.php.

Greetings Marco
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

You've inserted the birthday block at the wrong place in your usercp_register.php!
I've undo all changes from this topic and fix the mod installation in the attached file:
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
marcombv
Beiträge: 17
Registriert: Sa 28.Jul, 2007 18:14

Beitrag von marcombv »

Thanks a lot Karsten, :respect:

But it still won't work.
I leave it this way, and use the SQL statement once a week. ;)

The strange thing also is, the time in the Calendar is one hour to late?
On tyhe portal and the index, it shows the right time. ^1
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

For the birthday you can reinsert the code I've posted to convert the wrong entered birthday.

And for the calender: Which one do you use? The lite one or the pro?
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
marcombv
Beiträge: 17
Registriert: Sa 28.Jul, 2007 18:14

Beitrag von marcombv »

Okay, I wil change the first code you sended.

I am using call lite, the latest version. ^1
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

And what's now on the birthdays?

For the hour difference try the replacing of the line

Code: Alles auswählen

	$returnstamp = mktime ($myh,$myn,$mys,$mym,$myd,$myr);
in the cal_lite_functions.php with this

Code: Alles auswählen

	$returnstamp = mktime ($myh,$myn,$mys,$mym,$myd,$myr, date('I'));
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
marcombv
Beiträge: 17
Registriert: Sa 28.Jul, 2007 18:14

Beitrag von marcombv »

[quote="oxpus";p="75633"]And what's now on the birthdays?[/quote]

I used this code, but still no succes.

if ($b_day == 1 && $b_md == 1 && $b_year == 1970)
{
$birthday = 999999;
}

Will try de second code you did send tonight. :)
For the hour difference try the replacing of the line

Code: Alles auswählen

	$returnstamp = mktime ($myh,$myn,$mys,$mym,$myd,$myr);
in the cal_lite_functions.php with this

Code: Alles auswählen

	$returnstamp = mktime ($myh,$myn,$mys,$mym,$myd,$myr, date('I'));
I will try this also tonight.

Gruss Marco
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Okay, then debug:
Insert before the line

Code: Alles auswählen

 if ($b_day == 1 && $b_md == 1 && $b_year == 1970) 
this code

Code: Alles auswählen

if ($mode == 'register' && isset($HTTP_POST_VARS['submit']))
{
echo $b_day.'|'.$b_md.'|'.$b_year;
exit;
}
register a new test user account and post the result you'll see...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
marcombv
Beiträge: 17
Registriert: Sa 28.Jul, 2007 18:14

Beitrag von marcombv »

if ($b_day == 1 && $b_md == 1 && $b_year == 1970)
In wich file has this code to be? I can't find it in usercp_register.php. ¦4

I solved the problem with the time, calender lite uses an other array fore time and date.
Have replaced it with the one I use on my index and it worked. :p
Zuletzt geändert von marcombv am Do 09.Aug, 2007 20:48, insgesamt 1-mal geändert.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

In wich file has this code to be? I can't find it in usercp_register.php.
???
I pointed to you to reinsert the code in this file which I've posted in this topic to avoid the wrong birthdays!
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
marcombv
Beiträge: 17
Registriert: Sa 28.Jul, 2007 18:14

Beitrag von marcombv »

sorry my fault, used a wrong search expression. :wall:

I did find and change it.

Here are the results of the Dutch jury: 1|1|1970
Is this what you expected?

Gruss Marco
Zuletzt geändert von marcombv am Fr 10.Aug, 2007 00:25, insgesamt 1-mal geändert.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Yes, exactly that result, which you can avoid by insert the code from post #2!
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
marcombv
Beiträge: 17
Registriert: Sa 28.Jul, 2007 18:14

Beitrag von marcombv »

Okay,

Danke shon. :D

I did exactly as you sayed, alas it still wont work.

I rest my case. :cool:

But thanks anyway for al the support. :respect:
Zuletzt geändert von marcombv am Sa 11.Aug, 2007 00:31, insgesamt 1-mal geändert.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Please attach your current usercp_register.php to take a look.
With the currect "fix" the birthday must be at "999999" if a user will enter nothing or 01.01.1970!
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
marcombv
Beiträge: 17
Registriert: Sa 28.Jul, 2007 18:14

Beitrag von marcombv »

here is the file. ^2

[ Attachment gelöscht am Sa 11.Aug, 2007 11:02 von oxpus ]
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Okay, try this version:

[ Attachment gelöscht am Sa 11.Aug, 2007 11:24 von oxpus ]
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Antworten