Email-Adresse wird nicht verborgen |
mkkcs
Mitglied
Dabei seit: 06.10.04
Beiträge: 2.051
Fähigkeiten: WBB2 Profi; WBB2 Fortgeschritten; WBB Lite 1 Profi Herkunft: aus Mamas Bauch Forenversion: 2.3; 2.2
|
|
|
28.10.11 22:20 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
Beckebans
Alternativ Mitglied
Dabei seit: 10.07.05
Beiträge: 481
Fähigkeiten: WBB Lite 1 Fortgeschritten Herkunft: Paderborn Forenversion: Lite 1.0
|
|
Da ist nen kleiner Fehler in der geänderten Profilansicht.
==> templates/profile.tpl
Suche:
php: |
1:
|
<td><normalfont>$user_info[email]</font></td> |
|
Ersetzen durch:
php: |
1:
|
<td><normalfont>$useremail</font></td> |
|
__________________ Meine Hacks:
- Userpage
- Geburtstagsliste
- Beitrag bedanken
- User verlinken
- PHP-Fehler anzeigen
- Umfragedauer
- Neue Beiträge während Eigenem
- Gruppenspezifische Mitgliederliste
- und weitere...
|
|
28.10.11 22:25 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
mkkcs
Mitglied
Dabei seit: 06.10.04
Beiträge: 2.051
Fähigkeiten: WBB2 Profi; WBB2 Fortgeschritten; WBB Lite 1 Profi Herkunft: aus Mamas Bauch Forenversion: 2.3; 2.2
|
|
|
29.10.11 14:27 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
Schmuuu
Mitglied
Dabei seit: 28.10.11
Beiträge: 10
Fähigkeiten: WBB Lite 1 Anfänger Forenversion: Lite 1.0
Themenstarter
|
|
Ok.
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
|
<?php
$filename="profile.php";
require("./global.php");
if($wbbuserdata['canviewprofile']==0) access_error();
require("./acp/lib/class_parse.php");
$userid=intval($_GET['userid']);
if(!$userid) eval("error(\"".$tpl->get("error_falselink")."\");");
$user_info = $db->query_first("SELECT
u.*,
uf.*,
r.rankimages, r.ranktitle,
a.avatarextension, a.width, a.height
FROM bb".$n."_users u
LEFT JOIN bb".$n."_userfields uf USING (userid)
LEFT JOIN bb".$n."_avatars a ON (a.avatarid=u.avatarid)
LEFT JOIN bb".$n."_ranks r ON (r.rankid=u.rankid)
WHERE u.userid='$userid'");
if(!$user_info['userid']) eval("error(\"".$tpl->get("error_falselink")."\");");
$regdate = formatdate($dateformat,$user_info['regdate']);
$posts['userid'] = $user_info['userid'];
$posts['username'] = $user_info['username'];
if(($user_info['invisible']==0 || $wbbuserdata['canuseacp']==1) && $user_info['lastactivity']>=time()-$useronlinetimeout*60) eval ("\$user_online = \"".$tpl->get("thread_user_online")."\";");
else eval ("\$user_online = \"".$tpl->get("thread_user_offline")."\";");
$regdays = (time() - $user_info[regdate]) / 86400;
if ($regdays < 1) $postperday = "$user_info[userposts]";
else $postperday = sprintf("%.2f",($user_info['userposts'] / $regdays));
if($user_info['usertext']) $user_text=parse::textwrap($user_info['usertext'],40);
if($user_info['title']) $user_info['ranktitle']=$user_info['title'];
$rankimages=formatRI($user_info['rankimages']);
if($user_info['avatarid'] && $showavatar==1 && $wbbuserdata['showavatars']==1) {
$avatarname="images/avatars/avatar-$user_info[avatarid].$user_info[avatarextension]";
$avatarwidth=$user_info['width'];
$avatarheight=$user_info['height'];
eval ("\$useravatar = \"".$tpl->get("avatar_image")."\";");
}
///// Block 1 Anfang
// ICQ Anfang
if($user_info['icq']) {
$profilefillname = "ICQ Nummer:";
$profilefilldata = $user_info['icq'];
eval ("\$profilefill .= \"".$tpl->get("profile_fill")."\";");
}
// ICQ Ende
// AIM Anfang
if($user_info['aim']) {
$profilefillname = "AIM Screenname:";
$profilefilldata = $user_info['aim'];
eval ("\$profilefill .= \"".$tpl->get("profile_fill")."\";");
}
// AIM Ende
// YIM Anfang
if($user_info['yim']) {
$profilefillname = "YIM Screenname:";
$profilefilldata = $user_info['yim'];
eval ("\$profilefill .= \"".$tpl->get("profile_fill")."\";");
}
// YIM Ende
// MSN Anfang
if($user_info['msn']) {
$profilefillname = "MSN Screenname:";
$profilefilldata = $user_info['msn'];
eval ("\$profilefill .= \"".$tpl->get("profile_fill")."\";");
}
// MSN Ende
// eMail Anfang
if($user_info['showemail']==1) {
$profilefillname = "eMail:";
$profilefilldata = makehreftag("mailto:$user_info[email]",$user_info['email']);
eval ("\$profilefill .= \"".$tpl->get("profile_fill")."\";");
}
// eMail Ende
// Homepage Anfang
if($user_info['homepage']) {
$profilefillname = "Homepage:";
$profilefilldata = makehreftag($user_info['homepage'],$user_info['homepage'],"_blank");
eval ("\$profilefill .= \"".$tpl->get("profile_fill")."\";");
}
// Homepage Ende
if($profilefill) eval ("\$hr1 = \"".$tpl->get("profile_hr")."\";");
///// Block 1 Ende
///// Block 2 Anfang
// Geschlecht Anfang
if($user_info['gender']) {
$profilefillname = "Geschlecht:";
if($user_info['gender']==1) eval ("\$profilefilldata = \"".$tpl->get("profile_male")."\";");
else eval ("\$profilefilldata = \"".$tpl->get("profile_female")."\";");
eval ("\$profilefill2 .= \"".$tpl->get("profile_fill")."\";");
}
// Geschlecht Ende
// Geburtstag Anfang
if($user_info['birthday'] && $user_info['birthday']!="0000-00-00") {
$birthday_array = explode("-",$user_info['birthday']);
if($birthday_array[0]=="0000") $profilefilldata = $birthday_array[2].".".$birthday_array[1].".";
else $profilefilldata = $birthday_array[2].".".$birthday_array[1].".".$birthday_array[0];
$profilefillname = "Geburtstag:";
eval ("\$profilefill2 .= \"".$tpl->get("profile_fill")."\";");
}
// Geburtstag Ende
if($profilefill2) eval ("\$hr2 = \"".$tpl->get("profile_hr")."\";");
///// Block 2 Ende
$result = $db->query("SELECT profilefieldid, title FROM bb".$n."_profilefields".ifelse($wbbuserdata['canuseacp']==0," WHERE hidden=0")." ORDER BY fieldorder ASC");
while($row=$db->fetch_array($result)) {
$fieldid="field".$row['profilefieldid'];
if($user_info[$fieldid]) {
$user_info[$fieldid]=parse::textwrap($user_info[$fieldid],50);
eval ("\$profilefields .= \"".$tpl->get("profile_userfield")."\";");
}
}
if($profilefields) eval ("\$hr3 = \"".$tpl->get("profile_hr")."\";");
if($user_info['showemail']==0 && $user_info['usercanemail']==1) eval ("\$btn_email = \"".$tpl->get("thread_formmail")."\";");
if($user_info['userposts']!=0) eval ("\$btn_search = \"".$tpl->get("thread_search")."\";");
if($user_info['receivepm']==1 && $wbbuserdata['canusepms']==1) eval ("\$btn_pm = \"".$tpl->get("thread_pm")."\";");
$parse = new parse($docensor,75,$board['allowsmilies'],$board['allowbbcode'],$wbbuserdata['showimages'],$usecode);
$signatur=$parse->doparse($user_info['signature'],$allowsigsmilies,$allowsightml,$allowsigbbcode,$maxsigimage);
if ($user_info['signature']=="") $signatur="<p align=\"center\">Es wurde keine Signatur eingetragen.";
####Anfang lastactivity im Profil####
$lastactivitydate = formatdate($dateformat,$user_info['lastactivity'],1);
$lastactivitytime = formatdate($timeformat,$user_info['lastactivity']);
if($user_info['invisible']==0 || $wbbuserdata['canuseacp']==1) eval ("\$lastactivity = \"".$tpl->get("profile_lastactivity")."\";");
else eval ("\$lastactivity = \"".$tpl->get("profile_nodeclaration")."\";");
####Ende lastactivity im Profil####
#letztes posting vom user
$boardids="";
$permissioncache=array();
$result = $db->query("SELECT * FROM bb".$n."_permissions WHERE groupid = '$wbbuserdata[groupid]'");
while ($row = $db->fetch_array($result)) $permissioncache[$row['boardid']] = $row;
$result = $db->unbuffered_query("SELECT boardid, password, invisible FROM bb".$n."_boards");
while($row=$db->fetch_array($result)) {
if($row['password']!="" || $row['invisible']==2) continue;
if(!isset($permissioncache[$row['boardid']]['boardpermission']) || $permissioncache[$row['boardid']]['boardpermission']!=0) $boardids.=",".$row['boardid'];
}
if($boardids!="") {
$lastpost=$db->query_first("SELECT p.postid, p.posttime, t.topic, t.boardid, b.title FROM bb".$n."_posts p, bb".$n."_threads t
LEFT JOIN bb".$n."_boards b ON (t.boardid=b.boardid)
WHERE p.threadid=t.threadid AND t.boardid IN (0$boardids) AND p.userid = '$userid' AND p.visible=1
ORDER BY p.posttime DESC",1);
if($lastpost['postid']) {
$lastpostdate=formatdate($dateformat,$lastpost['posttime'],1);
$lastposttime=formatdate($timeformat,$lastpost['posttime']);
$lastpost['topic']=htmlspecialchars($lastpost['topic']);
$lastpost['title']=$lastpost['title'];
eval ("\$lastpost = \"".$tpl->get("profile_lastpost")."\";");
} else eval ("\$lastpost = \"".$tpl->get("profile_nodeclaration")."\";");
} else eval ("\$lastpost = \"".$tpl->get("profile_nodeclaration")."\";");
#letztes posting vom user
eval("\$tpl->output(\"".$tpl->get("profile")."\");");
?>
|
|
|
|
29.10.11 15:27 |
E-Mail
Finden
Als Freund hinzufügen
|
|
mkkcs
Mitglied
Dabei seit: 06.10.04
Beiträge: 2.051
Fähigkeiten: WBB2 Profi; WBB2 Fortgeschritten; WBB Lite 1 Profi Herkunft: aus Mamas Bauch Forenversion: 2.3; 2.2
|
|
|
29.10.11 22:53 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
mkkcs
Mitglied
Dabei seit: 06.10.04
Beiträge: 2.051
Fähigkeiten: WBB2 Profi; WBB2 Fortgeschritten; WBB Lite 1 Profi Herkunft: aus Mamas Bauch Forenversion: 2.3; 2.2
|
|
|
30.10.11 13:52 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
Schmuuu
Mitglied
Dabei seit: 28.10.11
Beiträge: 10
Fähigkeiten: WBB Lite 1 Anfänger Forenversion: Lite 1.0
Themenstarter
|
|
Mh, ich kenn mich mit den php-Dateien gar nicht aus, leider, deswegen weiß ich auch nicht, was mir dieser Auszug sagen soll. :/
Zitat: |
Original von mkkcs
aber es sieht danach aus, als wäre es eine Anpassung daran, wenn Feld nicht gefüllt dann zeige es erst garnicht ! |
Und ich weiß nicht genau, ob ich verstehe, was du meinst, aber das "MAIL-ADRESSE" erscheint, egal, ob man die Adresse angibt/anzeigt oder nicht.
Nur das Problem ist ja, dass die Adresse nicht angezeigt wird, auch wenn man sie angezeigt haben möchte.
Und das Profile-tpl hab ich angehängt.
|
|
30.10.11 14:03 |
E-Mail
Finden
Als Freund hinzufügen
|
|
Schmuuu
Mitglied
Dabei seit: 28.10.11
Beiträge: 10
Fähigkeiten: WBB Lite 1 Anfänger Forenversion: Lite 1.0
Themenstarter
|
|
Entschuldigt, dass ich mich jetzt erst melde, war in den letzten Tagen krank. :/
Und dankeschöön, ich hab's jetzt ausprobiert und es geht tatsächlich! Vielen lieben Dank an alle <33
|
|
02.11.11 14:06 |
E-Mail
Finden
Als Freund hinzufügen
|
|
|