Hier mal meine persönliche Anpassung
Für Leute mit Probs.
hab auch ne neue lng file
profile.php
füge nach:
/* birthday */
if ($user_info['birthday'] && $user_info['birthday'] != '0000-00-00') {
$birthday_array = explode('-', $user_info['birthday']);
if ($birthday_array[0] == '0000') $birthday = $birthday_array[2].".".$birthday_array[1].".";
else $birthday = $birthday_array[2].".".$birthday_array[1].".".$birthday_array[0];
}
else $birthday = $lang->items['LANG_MEMBERS_PROFILE_NODECLARATION'];
folgendes ein:
$sternzeichen = "LANG_MEMBERS_PROFILE_STERNZEICHEN_".sternzeichen($birthday_array[2], $birthday_array[1])."";
$sternzeichen = $lang->items[$sternzeichen];
acp/lib/functions.php
suche nach
?>
füge darüber ein:
function sternzeichen($geburtstag, $geburtsmonat)
{
if($geburtstag>=1 && $geburtstag<=20 && $geburtsmonat==1)
return("STEINBOCK");
elseif($geburtstag>=21 && $geburtstag<=31 && $geburtsmonat==1)
return("WASSERMANN");
elseif($geburtstag>=1 && $geburtstag<=19 && $geburtsmonat==2)
return("WASSERMANN");
elseif($geburtstag>=20 && $geburtstag<=29 && $geburtsmonat==2)
return("FISCH");
elseif($geburtstag>=1 && $geburtstag<=20 && $geburtsmonat==3)
return("FISCH");
elseif($geburtstag>=21 && $geburtstag<=31 && $geburtsmonat==3)
return("WIDDER");
elseif($geburtstag>=1 && $geburtstag<=20 && $geburtsmonat==4)
return("WIDDER");
elseif($geburtstag>=21 && $geburtstag<=30 && $geburtsmonat==4)
return("STIER");
elseif($geburtstag>=1 && $geburtstag<=20 && $geburtsmonat==5)
return("STIER");
elseif($geburtstag>=21 && $geburtstag<=31 && $geburtsmonat==5)
return("ZWILLINGE");
elseif($geburtstag>=1 && $geburtstag<=21 && $geburtsmonat==6)
return("ZWILLINGE");
elseif($geburtstag>=22 && $geburtstag<=30 && $geburtsmonat==6)
return("KREBS");
elseif($geburtstag>=1 && $geburtstag<=22 && $geburtsmonat==7)
return("KREBS");
elseif($geburtstag>=23 && $geburtstag<=31 && $geburtsmonat==7)
return("LOEWE");
elseif($geburtstag>=1 && $geburtstag<=23 && $geburtsmonat==
return("LOEWE");
elseif($geburtstag>=24 && $geburtstag<=31 && $geburtsmonat==
return("JUNGFRAU");
elseif($geburtstag>=1 && $geburtstag<=23 && $geburtsmonat==9)
return("JUNGFRAU");
elseif($geburtstag>=24 && $geburtstag<=30 && $geburtsmonat==9)
return("WAAGE");
elseif($geburtstag>=1 && $geburtstag<=23 && $geburtsmonat==10)
return("WAAGE");
elseif($geburtstag>=24 && $geburtstag<=31 && $geburtsmonat==10)
return("SKORPION");
elseif($geburtstag>=1 && $geburtstag<=22 && $geburtsmonat==11)
return("SKORPION");
elseif($geburtstag>=23 && $geburtstag<=30 && $geburtsmonat==11)
return("SCHUETZE");
elseif($geburtstag>=1 && $geburtstag<=21 && $geburtsmonat==12)
return("SCHUETZE");
elseif($geburtstag>=22 && $geburtstag<=31 && $geburtsmonat==12)
return("STEINBOCK");
else
return FALSE;
}
profile.tpl
suche nach:
<tr align="left">
<td><span class="normalfont"><b>{$lang->items['LANG_MEMBERS_PROFILE_BIRTHDAY']}</b></
span></td>
<td><span class="normalfont">$birthday</span></td>
</tr>
füge darunter ein:
<tr align="left">
<td><span class="normalfont"><b>Sternzeichen:</b></span></td>
<td><span class="normalfont">$sternzeichen</span></td>
</tr>
Importiere das Sprachpaket!
Lade die Bilder in den order: images/sternzeichen/
---------------------------------------------------------------------------
-----------------------------------------
Für eine Ansicht im Thread:
thread.php
suche nach:
/* birthday */
if($posts['birthday'] && $posts['birthday'] != '0000-00-00') {
$birthday_array = explode('-', $posts['birthday']);
if ($birthday_array[0] == '0000') $birthday = $birthday_array[2].".".$birthday_array[1].".";
else $birthday = $birthday_array[2].".".$birthday_array[1].".".$birthday_array[0];
}
else $birthday = $lang->items['LANG_MEMBERS_PROFILE_NODECLARATION'];
füge darunter:
$sternzeichen = "LANG_MEMBERS_PROFILE_STERNZEICHEN_".sternzeichen($birthday_array[2], $birthday_array[1])."";
$sternzeichen = $lang->items[$sternzeichen];
thread_postbit.tpl
füge an der Stelle wo das Sternzeichen Bild erscheinen soll folgendes ein:
$sternzeichen
FERTIG