Statistik |
Beiträge: 144.531 (Täglich: 19,19 )
Themen: 16.700
Mitglieder: 13.209
Neuestes Mitglied: zitronentee.
Ausl. d. letzten Minute: 367%
Ausl. d. letzten 5 Minuten: 379%
Ausl. d. letzten 15 Minuten: 373%
Aktulle Uhrzeit: 15:59
Freier Webspace: 4.04 TB
PHP-Version: 7.4.33
|
|
|
|
|
Freunde im Profil anzeigen mit Namen |
|
Freunde im Profil anzeigen mit Namen |
|
Hallo,
Irgendwie klappt bei mir gar nix so wie ich das will.
Hab nun den halben Tag rum gebastelt und immernoch nicht das gewünschte Ergebniss.
Ich würde gerne im Profil eines Users die Freunde des jeweiligen mit Namen anzeigen lassen.
Hab nun versucht das ganze einfach aus der DB auszulesen.
profil.php
code: |
1:
2:
3:
4:
5:
6:
|
/* Freunde anzeigen Anfang */
$abfrage = $db->query_first("SELECT * FROM bb".$n."_users WHERE userid='$userid'");
$abfrage_name = $abfrage['buddylist'];
/* Freunde anzeigen Ende */
|
|
Damit ließt er aber ja natürlich nur die ID's aus. Bei meinen Usern steht nun unter Freunde: 10 71 22 usw.
Wie kann ich es anstellen das da nun anstatt den ID's die Namen der User angezeigt wird?
Vielen Dank für Hilfe.
P.S.
Jaja, ich und meine Freundschaftsliste xD
LG
Andy
|
|
27.07.2008 22:19 |
|
|
|
Ich habe es bei mir so, siehe Bild im Anhang.
Backup machen, von den zu änderen Dateien!!!
thread.php
suche (sieht bei dir bestimmt anders aus, such mal nur einen Teil davon):
php: |
1:
|
$lang->load('MEMBERS,VOTEBOX,THREAD,SNOW,RAUB'); |
|
füge hinter Raub folgendes ein:
Bei mir sieht es dann so aus:
php: |
1:
|
$lang->load('MEMBERS,VOTEBOX,THREAD,SNOW,RAUB,USERCP'); |
|
suche weiter nach:
php: |
1:
|
eval("\$tpl->output(\"".$tpl->get("profile")."\");"); |
|
setzte darüber:
php: |
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:
|
/* Buddy List */
if (isset($_POST['send_buddy'])) {
list($userid) = $db->query_first("SELECT userid FROM bb".$n."_users WHERE username='".addslashes(wbb_trim($_POST['addtolist']))."'");
if (!$userid) error($lang->items['LANG_USERCP_ERROR1']);
elseif ($userid == $wbbuserdata['userid']) error($lang->items['LANG_USERCP_ERROR2']);
else {
$buddylist = add2list($wbbuserdata['buddylist'], $userid);
if ($buddylist != -1) $db->unbuffered_query("UPDATE bb".$n."_users SET buddylist='$buddylist' WHERE userid='$user_info[userid]'", 1);
require ("./acp/lib/class_onpm.php");
$absenderid = $user_info['userid'];
$betreff = "Als Freund/in hinzugefügt.";
$nachricht = "Hallo ".addslashes(wbb_trim($_POST['addtolist']))."
Ich habe dich gerade als Freund/in in meine Freundesliste aufgenommen.
----------
Dies ist eine automatisch erstellte Nachricht.
----------
";
$onpm = new onpm();
$onpm->insertpm($betreff,$nachricht,$absenderid,$userid,'1');
header("Location: profile.php?userid=$user_info[userid]".$SID_ARG_2ND_UN);
exit();
}
}
$listbit = '';
$pmLink = '';
$buddyCount=0;
if ($wbbuserdata['buddylist'] != '')
{
$result = $db->unbuffered_query("SELECT u.userid, u.username, IF(s.lastactivity>=".(time() - $useronlinetimeout * 60).(($wbbuserdata['a_can_view_ghosts'] == 1) ? ("") : (" AND u.invisible=0")).",1,0) AS online FROM bb".$n."_users u
LEFT JOIN bb".$n."_sessions s USING (userid)
WHERE u.userid IN ('".str_replace(" ", "','", $wbbuserdata[buddylist])."') ORDER BY online DESC, u.username ASC");
while ($row = $db->fetch_array($result))
{
$row['username'] = htmlconverter($row['username']);
$username = $row['username'];
if ($row['online']) $LANG_MEMBERS_USERONLINE = $lang->get("LANG_MEMBERS_USERONLINE", array('$username' => $username));
else $LANG_MEMBERS_USERONLINE = $lang->get("LANG_MEMBERS_USEROFFLINE", array('$username' => $username));
$pmLink .= "&userid[]=$row[userid]";
$buddyCount++;
eval("\$listbit .= \"".$tpl->get("usercp_buddy_listbit")."\";");
}
} else {
eval("\$listbit = \"".$tpl->get("usercp_buddy_listbit_no_buddy")."\";");
} |
|
Speichern und wieder auf den Server laden.
Gehe ins ACP -> Templates bearbeiten -> profile (in jedem Templatepack)
Leider kann ich dir keine passende Stelle anbieten, musste mal selbst ein wenig gucken wo du folgenden Quellcode einfügst:
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
|
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:100%;" class="tableinborder">
<tr>
<td class="tabletitle" align="center" colspan="4"><span class="normalfont"><b>Deine Freunde</b></span></td>
</tr>
<tr align="left">
<td class="tablea" colspan="4"><span class="normalfont"><b>{$lang->items['LANG_USERCP_BUDDY_LIST_USER_ADD']}</b></span><br /><span class="smallfont">{$lang->items['LANG_USERCP_BUDDY_LIST_USER_ADD_DESC']}</span></td>
</tr>
<tr align="left">
<td class="tableb" nowrap="nowrap" colspan="4"><input type="text" class="input" name="addtolist" maxlength="50" /> <input class="input" type="submit" accesskey="S" value="{$lang->items['LANG_USERCP_LIST_ADD']}" /></td>
</tr>
$listbit
<tr>
<td class="tableb" align="justify" colspan="4">Deine Freunde werden in der Onlineanzeige immer mit Sternchen geführt. Das könnte dann zum Beispiel so aussehen: <strong>*Chef*</strong></td>
</tr>
</table>
<input type="hidden" name="action" value="$action" />
<input type="hidden" name="send_buddy" value="send_buddy" />
<input type="hidden" name="sid" value="$session[hash]" />
</form>
|
|
Ich hoffe es geht, kann es nicht versprechen.
Gruß Heiko
Dateianhang: |
demo.jpg (34,34 KB, 77 mal heruntergeladen)
|
|
|
28.07.2008 06:55 |
|
|
|
Hallo,
erstmal danke für den Code und die Hilfe, damit kann ich wieder etwas rum spielen.
Das dort eine PN funktion drin ist kann ich gut gebrauchen.
Zum Einbau selbst.
Ich möchte es in den Profilen der User einzeigen. Demnach macht bei mir doch der obere teil mehr Sinn in der Profile.php statt der Thread.php oder?
In der Thread.php hab ich nichtmals
php: |
1:
|
eval("\$tpl->output(\"".$tpl->get("profile")."\");"); |
|
Hab es nunmal versucht einzubauen. jedoch
1. bekomm ich usercp_buddy_listbit_no_buddy tempalte no exist.
Hab so ein Template gar nicht. Und wenn ich es auf usercp_buddy_listbit oder so ändere gehts auch nicht rihtig.
Weiter ist es bei mir nun so. Das ich im Profil eines Users meine Freunde sehe. Ich würde aber ja gerne eine Auflistung seiner Freunde haben.
LG
Andy
|
|
28.07.2008 09:56 |
|
|
|
Hi Andy,
in meinem Style wbb 1.2 go to wbb hab ich auch die Buddyliste ins Usercp eingebaut
dort habe ich folgendes zusätzlich eingebaut !
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:
|
Für die Buddyliste im Usercp müßtet Ihr dann noch einen kleinen Code in die
usercp.php einbauen !
suche in usercp.php
$username = htmlconverter($wbbuserdata['username']);
$lang->items['LANG_USERCP_TITLE'] = $lang->get("LANG_USERCP_TITLE", array('$username' => $username));
/** no action defined => startpage **/
if (!$action) {
füge darunter ein
/* Style wbb1.2 go to wbb useron/off-line Anzeige im USERCP */
$usercp_buddylist_online = "";
$usercp_buddylist_offline = "";
if ($wbbuserdata['buddylist'] != '') {
$result = $db->unbuffered_query("SELECT u.userid, u.username, IF(s.lastactivity>=".(time() - $useronlinetimeout * 60).(($wbbuserdata['a_can_view_ghosts'] == 1) ? ("") : (" AND u.invisible=0")).",1,0) AS online FROM bb".$n."_users u
LEFT JOIN bb".$n."_sessions s USING (userid)
WHERE u.userid IN ('".str_replace(" ", "','", $wbbuserdata[buddylist])."') ORDER BY online DESC, u.username ASC");
while ($row = $db->fetch_array($result)) {
$row['username'] = htmlconverter($row['username']);
$username = $row['username'];
if ($row['online']) {
if($usercp_buddylist_online) $usercp_buddylist_online .= ",<br />";
$usercp_buddylist_online .= "<a href=\"profile.php?userid=".$row['userid']."{$SID_ARG_2ND}\">".$username."</a>";
}
else
{
if($usercp_buddylist_offline) $usercp_buddylist_offline .= ",<br />";
$usercp_buddylist_offline .= "<a href=\"profile.php?userid=".$row['userid']."{$SID_ARG_2ND}\">".$username."</a>";
}
}
}
/* Style wbb1.2 go to wbb useron/off-line Anzeige im USERCP */
|
|
und so sieht das usercp-Template dann aus
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:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
|
<?xml version="1.0" encoding="{$lang->items['LANG_GLOBAL_ENCODING']}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{$lang->items['LANG_GLOBAL_DIRECTION']}" lang="{$lang->items['LANG_GLOBAL_LANGCODE']}" xml:lang="{$lang->items['LANG_GLOBAL_LANGCODE']}">
<head>
<title>$master_board_name | {$lang->items['LANG_USERCP_TITLE']}</title>
$headinclude
</head>
<body>
$header
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
<td class="tablea"><table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr class="tablea_fc">
<td align="left"><span class="smallfont"><b><a href="index.php{$SID_ARG_1ST}">$master_board_name</a> » {$lang->items['LANG_USERCP_TITLE']}</b></span></td>
<td align="right"><span class="smallfont"><b>$usercbar</b></span></td>
</tr>
</table></td>
</tr>
</table><br/>
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
<td class="tabletitle" colspan="2" align="left"><span class="normalfont"><b>{$lang->items['LANG_USERCP_OVERVIEW']}</b></span></td>
</tr>
<tr>
<td class="tablea">
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr align="center">
<td align="center" valign="middle" style="width:100px">
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:100px" class="tableinborder">
<tr>
<td class="tabletitle" align="center" nowrap="nowrap" style="width:100px"><span class="smallfont"><b>{$lang->items['LANG_USERCP_BUDDY_LIST']}</b></span></td>
</tr>
<tr>
<td class="tablea" style="width:100px" align="center">
<table cellpadding="2" cellspacing="0" border="0" style="width:100px">
<tr>
<td class="tablea" align="center" style="width:40%"><hr></td>
<td class="tablea" align="center" ><span class="smallfont"><b> Online </b></span></td>
<td class="tablea" align="center" style="width:40%" ><hr></td>
</tr>
<tr>
<td class="tablea" align="center" colspan="3" style="width:100px"><span class="smallfont">$usercp_buddylist_online</span></td>
</tr>
<tr>
<td class="tablea" align="center" style="width:40%" ><hr></td>
<td class="tablea" align="center"><span class="smallfont"><b> Offline </b></span>
<td class="tablea" align="center" style="width:40%" ><hr></td>
</td>
</tr>
<tr>
<td class="tablea" align="center" colspan="3" style="width:100px;"><span class="smallfont">$usercp_buddylist_offline</span></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td align="center" valign="middle" style="width:100%" class="tablea">
<table cellpadding="0" cellspacing="2" border="0" style="width:100%" class="tablea">
<tr>
<td align="center" style="width:40px">
<a href="usercp.php?action=profile_edit{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_profile_edit.gif" border="0" alt="{$lang->items['LANG_USERCP_PROFILE_EDIT']}" title="{$lang->items['LANG_USERCP_PROFILE_EDIT']} - {$lang->items['LANG_USERCP_PROFILE_EDIT_DESC']}" /></a><br/>
</td>
<td align="left" class="tablea">
<span class="normalfont"><b><a href="usercp.php?action=profile_edit{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_PROFILE_EDIT']}</a></b></span><br/>
<span class="smallfont">{$lang->items['LANG_USERCP_PROFILE_EDIT_DESC']}</span></td>
</tr>
<tr>
<td align="center" style="width:40px">
<a href="usercp.php?action=signature_edit{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_signature_edit.gif" border="0" alt="{$lang->items['LANG_USERCP_SIGNATURE_EDIT']}" title="{$lang->items['LANG_USERCP_SIGNATURE_EDIT']} - {$lang->items['LANG_USERCP_SIGNATURE_EDIT_DESC']}" /></a><br/>
</td>
<td align="left" class="tablea">
<span class="normalfont"><b><a href="usercp.php?action=signature_edit{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_SIGNATURE_EDIT']}</a></b></span><br/>
<span class="smallfont">{$lang->items['LANG_USERCP_SIGNATURE_EDIT_DESC']}</span></td>
</tr>
<tr>
<td align="center" style="width:40px">
<a href="usercp.php?action=options_change{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_options_change.gif" border="0" alt="{$lang->items['LANG_USERCP_OPTIONS_CHANGE']}" title="{$lang->items['LANG_USERCP_OPTIONS_CHANGE']} - {$lang->items['LANG_USERCP_OPTIONS_CHANGE_DESC']}" /></a><br/>
</td>
<td align="left" class="tablea">
<span class="normalfont"><b><a href="usercp.php?action=options_change{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_OPTIONS_CHANGE']}</a></b></span><br/>
<span class="smallfont">{$lang->items['LANG_USERCP_OPTIONS_CHANGE_DESC']}</span></td>
</tr>
<tr>
<td align="center" style="width:40px">
<a href="usercp.php?action=password_change{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_password_change.gif" border="0" alt="{$lang->items['LANG_USERCP_PASSWORD_CHANGE']}" title="{$lang->items['LANG_USERCP_PASSWORD_CHANGE']} - {$lang->items['LANG_USERCP_PASSWORD_CHANGE_DESC']}" /></a><br/>
</td>
<td align="left">
<span class="normalfont"><b><a href="usercp.php?action=password_change{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_PASSWORD_CHANGE']}</a></b></span><br/>
<span class="smallfont">{$lang->items['LANG_USERCP_PASSWORD_CHANGE_DESC']}</span></td>
</tr>
<tr>
<td align="center" style="width:40px">
<a href="usercp.php?action=email_change{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_email_change.gif" border="0" alt="{$lang->items['LANG_USERCP_EMAIL_CHANGE']}" title="{$lang->items['LANG_USERCP_EMAIL_CHANGE']} - {$lang->items['LANG_USERCP_EMAIL_CHANGE_DESC']}" /></a><br/>
</td>
<td align="left">
<span class="normalfont"><b><a href="usercp.php?action=email_change{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_EMAIL_CHANGE']}</a></b></span><br/>
<span class="smallfont">{$lang->items['LANG_USERCP_EMAIL_CHANGE_DESC']}</span></td>
</tr>
<tr>
<td align="center" style="width:40px">
<a href="usercp.php?action=buddy_list{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_buddy_list.gif" border="0" alt="{$lang->items['LANG_USERCP_BUDDY_LIST']}" title="{$lang->items['LANG_USERCP_BUDDY_LIST']} - {$lang->items['LANG_USERCP_BUDDY_LIST_DESC']}" /></a><br/>
</td>
<td align="left">
<span class="normalfont"><b><a href="usercp.php?action=buddy_list{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_BUDDY_LIST']}</a></b></span><br/>
<span class="smallfont">{$lang->items['LANG_USERCP_BUDDY_LIST_DESC']}</span></td>
</tr>
<tr>
<td align="center" style="width:40px">
<a href="usercp.php?action=ignore_list{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_ignore_list.gif" border="0" alt="{$lang->items['LANG_USERCP_IGNORE_LIST']}" title="{$lang->items['LANG_USERCP_IGNORE_LIST']} - {$lang->items['LANG_USERCP_IGNORE_LIST_DESC']}" /></a><br/>
</td>
<td align="left">
<span class="normalfont"><b><a href="usercp.php?action=ignore_list{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_IGNORE_LIST']}</a></b></span><br/>
<span class="smallfont">{$lang->items['LANG_USERCP_IGNORE_LIST_DESC']}</span></td>
</tr>
<tr>
<td align="center" style="width:40px">
<a href="usercp.php?action=favorites{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_favorites.gif" border="0" alt="{$lang->items['LANG_USERCP_FAVORITES']}" title="{$lang->items['LANG_USERCP_FAVORITES']} - {$lang->items['LANG_USERCP_FAVORITES_DESC']}" /></a><br/>
</td>
<td align="left">
<span class="normalfont"><b><a href="usercp.php?action=favorites{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_FAVORITES']}</a></b></span><br/>
<span class="smallfont">{$lang->items['LANG_USERCP_FAVORITES_DESC']}</span></td>
</tr>
<tr>
<td align="center" style="width:40px">
<a href="usercp.php?action=avatars{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_avatars.gif" border="0" alt="{$lang->items['LANG_USERCP_AVATARS']}" title="{$lang->items['LANG_USERCP_AVATARS']} - {$lang->items['LANG_USERCP_AVATARS_DESC']}" /></a><br/>
</td>
<td align="left">
<span class="normalfont"><b><a href="usercp.php?action=avatars{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_AVATARS']}</a></b></span><br/>
<span class="smallfont">{$lang->items['LANG_USERCP_AVATARS_DESC']}</span></td>
</tr>
<tr>
<td align="center" style="width:40px">
<a href="pms.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/usercp_pm.gif" border="0" alt="{$lang->items['LANG_GLOBAL_PMS']}" title="{$lang->items['LANG_GLOBAL_PMS']} - {$lang->items['LANG_USERCP_PMS_DESC']}" /></a><br/>
</td>
<td align="left">
<span class="normalfont"><b><a href="pms.php{$SID_ARG_1ST}">{$lang->items['LANG_GLOBAL_PMS']}</a></b></span><br/>
<span class="smallfont">{$lang->items['LANG_USERCP_PMS_DESC']}</span></td>
</tr>
<tr>
<td align="center" style="width:40px">
<a href="usercp.php?action=attachments{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_attachments.gif" border="0" alt="{$lang->items['LANG_USERCP_ATTACHMENTS']}" title="{$lang->items['LANG_USERCP_ATTACHMENTS']} - {$lang->items['LANG_USERCP_ATTACHMENTS_DESC']}" /></a><br/>
</td>
<td align="left">
<span class="normalfont"><b><a href="usercp.php?action=attachments{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_ATTACHMENTS']}</a></b></span><br/>
<span class="smallfont">{$lang->items['LANG_USERCP_ATTACHMENTS_DESC']}</span></td>
</tr>
<tr>
<td align="center" style="width:40px">
<a href="usergroups.php?action=groups{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_usergroups.gif" border="0" alt="{$lang->items['LANG_USERCP_USERGROUPS']}" title="{$lang->items['LANG_USERCP_USERGROUPS']} - {$lang->items['LANG_USERCP_USERGROUPS_DESC']}" /></a><br/>
</td>
<td align="left">
<span class="normalfont"><b><a href="usergroups.php?action=groups{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_USERGROUPS']}</a></b></span><br/>
<span class="smallfont">{$lang->items['LANG_USERCP_USERGROUPS_DESC']}</span></td>
</tr>
<if($wbbuserdata['isgroupleader']==1)>
<then>
<tr>
<td align="center" style="width:40px">
<a href="usergroups.php?action=groupleaders{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/usercp_groupleader.gif" border="0" alt="{$lang->items['LANG_USERCP_GROUPLEADER']}" title="{$lang->items['LANG_USERCP_GROUPLEADER']} - {$lang->items['LANG_USERCP_GROUPLEADER_DESC']}" /></a><br/>
</td>
<td align="left">
<span class="normalfont"><b><a href="usergroups.php?action=groupleaders{$SID_ARG_2ND}">{$lang->items['LANG_USERCP_GROUPLEADER']}</a></b></span><br/>
<span class="smallfont">{$lang->items['LANG_USERCP_GROUPLEADER_DESC']}</span>
</td>
</tr>
</then>
</if>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
$footer
</body>
</html> |
|
vielleicht kannste ja damit was anfangen ?
__________________ LG Martin
Grafix-Board
das wBB Coder Forum ist wieder da !!!! - Totgeglaubte leben länger !
mywbb goes to wbbCoderForum
|
|
28.07.2008 11:41 |
|
|
|
Sorry, ich war heute morgen wohl noch nicht so richtig wach.
Das Problem das ich auch nicht mehr genau wei0 was ich damals alles dazugebaut habe.
Aber versuch den Quellcode von mkkcs doch mal.
|
|
28.07.2008 19:16 |
|
|
|
Komm damit auch nicht richtig weiter, irgendwie wird da ja auch aus der Usercp ausgelesen. Und man sieht seine eigenen.
Ich bin auch noch in Urlaub mit einem Laptop. Werde mich am Wochenende von zuhause nochmal genauer drum kümmern.
Generell aber die Frage:
ich lese ja aus der DB in der bbx_users die zeile buddylist aus. Da steht eine ID. die liest er aus.
Nun müsste doch nur noch ein befehl rein der vor der Ausgabe die jeweilig User ID erneut in der bbx_users ausliest und anhand dieser ID die Tabelle username ausliest.
Bei anderen erweiterungen wie Buddy akzeptieren gehts ja auch irgendwie.
In die Zeile wird die ID eingetragen. Aber ausgegeben wird statt die ID der username. Hab schon versucht den Code zu zerstückeln und raus zu finden auf welche weiße. Aber meine PHP Kenntnisse reichen da wohl noch nicht so ganz für.
Naja danke chonmal für eure Hilfe. Werd mich am WE weiter damit beschäftigen.
LG
Andy
|
|
29.07.2008 10:45 |
|
|
|
|
|
|