Seite 1 von 2

Birthday Mod 1.4.15 wie geht das!?

Verfasst: 26.05.2003 19:07
von Billy
Hallo hab mir das Mod heruntergeladen! Und vertehe nich wie es zu instalieren ist! :-? Da steht nur
#-----[ ADD SQL ]------------------------------------------
#

ALTER TABLE users ADD user_birthday INT DEFAULT '999999' not null

#
#-----[ ADD SQL ]------------------------------------------
#
ALTER TABLE users ADD user_next_birthday_greeting INT DEFAULT '0' not null

#
#-----[ ADD SQL ]------------------------------------------
#
INSERT INTO CONFIG (config_name, config_value) VALUES ("birthday_required", "0")

#
#-----[ ADD SQL ]------------------------------------------
#
INSERT INTO config (config_name, config_value) VALUES ('birthday_greeting', '1')

#
#-----[ ADD SQL ]------------------------------------------
#
INSERT INTO config (config_name, config_value) VALUES ('max_user_age', '100')

#
#-----[ ADD SQL ]------------------------------------------
#
INSERT INTO config (config_name, config_value) VALUES ('min_user_age', '5')

#
#-----[ ADD SQL ]------------------------------------------
#
INSERT INTO config (config_name, config_value) VALUES ('birthday_check_day', '7')
Kann aber nichts damit anfangen kann mir da einer helfen! Bitte

Verfasst: 26.05.2003 19:36
von enrico
du führst in deiner datenbank folgende befehle aus:

ALTER TABLE users ADD user_birthday INT DEFAULT '999999' not null


ALTER TABLE users ADD user_next_birthday_greeting INT DEFAULT '0' not null


INSERT INTO CONFIG (config_name, config_value) VALUES ("birthday_required", "0")


INSERT INTO config (config_name, config_value) VALUES ('birthday_greeting', '1')


INSERT INTO config (config_name, config_value) VALUES ('max_user_age', '100')

INSERT INTO config (config_name, config_value) VALUES ('min_user_age', '5')

INSERT INTO config (config_name, config_value) VALUES ('birthday_check_day', '7')

Verfasst: 26.05.2003 19:52
von Billy
Muß ich alles ertmal editieren oder erstmal datenbank befehle ausführen?

Verfasst: 26.05.2003 20:06
von Henne
Ganz egal. Nur bevor du die Dateien auf den Server packst solltest du die DB Einträge drin haben.
Außerdem ist da eigentlich ne Datei db_update.php drin.

Verfasst: 26.05.2003 20:09
von Billy
Aha also brauche ich nichts in DB selber zu machen :lol:

Verfasst: 26.05.2003 20:27
von Henne
Wenn du die Anleitung liest, dann erfährst du es.
Oder sollen wir vielleicht noch zum vorlesen vorbeikommen?
Ich kann ja die Stelle mal zitieren:
run the included db_update.php file instead of the initial [ADD SQL] commands
Was soviel heißt wie:
Führe die enthaltene db_update.php statt die [ADD SQL] Kommandos aus.

Verfasst: 26.05.2003 21:07
von Billy
Jö danke bin in Eglisch zimlich schlächt

Verfasst: 26.05.2003 22:25
von Billy
Wie übersätzt man das?
//Add on for Birthday Mod
$lang['Birthday'] = 'Birthday';
$lang['No_birthday_specify'] = 'None Specified';
$lang['Age'] = 'Age';
$lang['Birthday_explain'] = 'The syntax used is %s, e.g. %s, remember prefixed zeros';
$lang['Wrong_birthday_format'] = 'The birthday format was entered incorrectly.';
$lang['Birthday_to_high'] = 'Sorry, this site, does not accept user older than %d years old';
$lang['Birthday_require'] = 'your Birthday are required on this site';
$lang['Birthday_to_low'] = 'Sorry, this site, does not accept user yonger than %d years old';
$lang['Submit_date_format'] = 'd-m-Y'; //php date() format - Note: ONLY d, m and Y may be used and SHALL ALL be used (different seperators are accepted)
$lang['Birthday_greeting_today'] = 'We would like to wish you congratulatons on reaching %s years old today.<br /><br /> The Management';//%s is substituted with the users age
$lang['Birthday_greeting_prev'] = 'We would like to give you a belated congratulatons for becoming %s years old on the %s.<br /><br /> The Management';//%s is substituted with the users age, and birthday
$lang['Greeting_Messaging'] = 'Congratulations';
$lang['Birthday_today'] = 'Users with a birthday today:';
$lang['Birthday_week'] = 'Users with a birthday within the next %d days:';
$lang['Nobirthday_week'] = 'No users are having a birthday in the upcoming %d days'; // %d is substitude with the number of days
$lang['Nobirthday_today'] = 'No users have a birthday today';
$lang['Year'] = 'Year';
$lang['Month'] = 'Month';
$lang['Day'] = 'Day';
// NOTE: Please do not translate the folowing 4 lines !, they are automatically translated into your language
$lang['day_short'] = array ($lang['datetime']['Sun'],$lang['datetime']['Mon'],$lang['datetime']['Tue'],$lang['datetime']['Wed'],$lang['datetime']['Thu'],$lang['datetime']['Fri'],$lang['datetime']['Sat']);
$lang['day_long'] = array ($lang['datetime']['Sunday'],$lang['datetime']['Monday'],$lang['datetime']['Tuesday'],$lang['datetime']['Wednesday'],$lang['datetime']['Thursday'],$lang['datetime']['Friday'],$lang['datetime']['Saturday']);
$lang['month_short'] = array ($lang['datetime']['Jan'],$lang['datetime']['Feb'],$lang['datetime']['Mar'],$lang['datetime']['Apr'],$lang['datetime']['May'],$lang['datetime']['Jun'],$lang['datetime']['Jul'],$lang['datetime']['Aug'],$lang['datetime']['Sep'],$lang['datetime']['Oct'],$lang['datetime']['Nov'],$lang['datetime']['Dec']);
$lang['month_long'] = array ($lang['datetime']['January'],$lang['datetime']['February'],$lang['datetime']['March'],$lang['datetime']['April'],$lang['datetime']['May'],$lang['datetime']['June'],$lang['datetime']['July'],$lang['datetime']['August'],$lang['datetime']['September'],$lang['datetime']['October'],$lang['datetime']['November'],$lang['datetime']['December']);

Verfasst: 26.05.2003 22:39
von Henne

Verfasst: 26.05.2003 22:41
von AWSW
Hallo,
dazu kannst Du das beim Autor erhältliche Language_Pack benutzen...

http://mods.db9.dk/viewforum.php?f=21