Jetzt kostenlos Anmelden!

DJ-Plazmatron

User wurde gesperrt

1

Mittwoch, 11. Juni 2008, 12:07

Geb-Datum im Profil komplett als zahlen anzeigen lassen wie?

Hallo, ich möchte das Geburtsdatum au dem Profil komplett als zahlen ausgeben lassen, wie kann ich das möglich machen, könnt ihr mir da helfen.

In php und mysql bzw bin ich noch net so weit falls eines der beiden gebraucht wird dazu.

vielen dank schon mal
  • Zum Seitenanfang
  • Zum Seitenende

jerryGFL Männlich

postet ab und an hier

Beiträge: 243

Geschlecht: Männlich

PHPKIT Version: 1.6.1

2

Mittwoch, 11. Juni 2008, 13:55

Ungetestet, backup machen!
Fehler hier posten!

in der userinfo.php

Suche nach:

PHP-Quelltext

1
2
3
4
5
6
7
if ($userinfo['user_bd_day']!=&& $userinfo['user_bd_month']!=&& $userinfo['user_bd_year']!=0) {
  $info_birthday=$userinfo['user_bd_day'].". ";
  $month=$lang['all_month'];
  $month=$month[$userinfo['user_bd_month']];
  $info_birthday.=$month[1]." ";
  $info_birthday.=$userinfo['user_bd_year']." - ".$lang['age'].": ".getAge($userinfo[user_bd_day],$userinfo[user_bd_month],$userinfo[user_bd_year]);
  }


Ersetzte mit:

PHP-Quelltext

1
2
3
4
5
6
7
8
if ($userinfo['user_bd_day']!=&& $userinfo['user_bd_month']!=&& $userinfo['user_bd_year']!=0) {
  $info_birthday=$userinfo['user_bd_day'].". ";
  //$month=$lang['all_month'];
  //$month=$month[$userinfo['user_bd_month']];
  //$info_birthday.=$month[1]." ";
  $info_birthday.=$userinfo['user_bd_month']." ";
  $info_birthday.=$userinfo['user_bd_year']." - ".$lang['age'].": ".getAge($userinfo[user_bd_day],$userinfo[user_bd_month],$userinfo[user_bd_year]);
  }


einfahc mal probieren und sagenwas bei raus kommt
  • Zum Seitenanfang
  • Zum Seitenende

DJ-Plazmatron

User wurde gesperrt

3

Mittwoch, 11. Juni 2008, 14:07

funzt einwandfrei nur nach der monats angabe fehlt ein punkt

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »DJ-Plazmatron« (11. Juni 2008, 14:14)

  • Zum Seitenanfang
  • Zum Seitenende

jerryGFL Männlich

postet ab und an hier

Beiträge: 243

Geschlecht: Männlich

PHPKIT Version: 1.6.1

4

Mittwoch, 11. Juni 2008, 14:11

PHP-Quelltext

1
2
3
4
5
6
7
8
if ($userinfo['user_bd_day']!=&& $userinfo['user_bd_month']!=&& $userinfo['user_bd_year']!=0) {
  $info_birthday=$userinfo['user_bd_day'].".";
  //$month=$lang['all_month'];
  //$month=$month[$userinfo['user_bd_month']];
  //$info_birthday.=$month[1]." ";
  $info_birthday.=$userinfo['user_bd_month'].".";
  $info_birthday.=$userinfo['user_bd_year']." - ".$lang['age'].": ".getAge($userinfo[user_bd_day],$userinfo[user_bd_month],$userinfo[user_bd_year]);
  }
  • Zum Seitenanfang
  • Zum Seitenende

DJ-Plazmatron

User wurde gesperrt

5

Mittwoch, 11. Juni 2008, 14:14

Test einwandfrei erfolgreich vielen dank, kannste ja als hack oder änderung rausbringen hehe :)
  • Zum Seitenanfang
  • Zum Seitenende

jerryGFL Männlich

postet ab und an hier

Beiträge: 243

Geschlecht: Männlich

PHPKIT Version: 1.6.1

6

Mittwoch, 11. Juni 2008, 14:18

kein problem, aber sowas lohnt sich als hack net, da das ne ziemlich spezielle sache ist!
  • Zum Seitenanfang
  • Zum Seitenende

DJ-Plazmatron

User wurde gesperrt

7

Mittwoch, 11. Juni 2008, 14:21

nojo
  • Zum Seitenanfang
  • Zum Seitenende