|
SnakeBlood
Mitglied
Dabei seit: 03.03.05
Beiträge: 433
|
|
Zitat: |
Original von hutzi
an der usercp wird doch gar nichts geändert ? |
Jo meinte die profile.php , war schon früh *g*
Komischerweise gehts jetzt , das muss an meinem Webspace gelegen haben , naja auf jeden Fall BIG THX !! Hab schon lang drauf gewartet den Hack zu bekommen , echt geile Arbeit !
|
|
22.06.05 13:19 |
E-Mail
Finden
Als Freund hinzufügen
|
|
MrMind
Sklave des Supportes
Dabei seit: 19.01.04
Beiträge: 3.349
Herkunft: Darmstadt/Odw.
Themenstarter
|
|
So nächstes Update ist draußen und nun sollten alle Bugs behoben sein (ein Versprechen das die Time Out Errors behoben sind, kann ich allerdings net machen).
Sucht in der profile.php nach:
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
|
#
# wiw-profil-anzeige von MrMind
# Anfang
#
....
#
# wiw-profil-anzeige von MrMind
#Ende
# |
|
Also wieder alles was dazwischen ist (mit den Kommentaren natürlich) suche und
hierdurch
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:
|
#
# WIW-Profil-Anzeige von MrMind
# Anfang
#
$sql = "SELECT s.request_uri, b.boardid, t.threadid, b.title, t.topic, u.invisible
FROM bb".$n."_sessions s
LEFT JOIN bb".$n."_users u USING (userid)
LEFT JOIN bb".$n."_permissions p ON (p.boardid=s.boardid AND p.groupid=$wbbuserdata[groupid] AND p.boardpermission=1)
LEFT JOIN bb".$n."_boards b ON (s.boardid=b.boardid AND p.boardpermission=1)
LEFT JOIN bb".$n."_threads t ON (s.threadid=t.threadid AND p.boardpermission=1)
WHERE s.userid = " . $userid . "
AND u.lastactivity >= " . (time() - $useronlinetimeout * 60);
$wiw_profil = $db->query_first($sql);
$wiw_uri = explode('?',$wiw_profil['request_uri']);
$wiw_sid = 'sid=' . $session['hash'];
if( empty($wiw_profil['invisible']) || $wbbuserdata['canuseacp'] )
{
switch($wiw_uri[0])
{
case 'index.php':
$wiw_url = 'index.php?'.$wiw_sid;
$wiw_text ='Forenindex';
break;
case 'memberslist.php':
$wiw_url = 'memberslist.php?'.$wiw_sid;
$wiw_text = 'Memberlist';
break;
case 'wiw.php':
$wiw_url = 'wiw.php?'.$wiw_sid;
$wiw_text = 'Wer ist Wo';
break;
case 'login.php':
$wiw_url = 'index.php?'.$wiw_sid;
$wiw_text = 'Anmeldung';
break;
case 'logout.php':
$wiw_url = 'index.php?'.$wiw_sid;
$wiw_text = 'Logout';
break;
case 'pms.php':
$wiw_pms = explode('action=',$wiw_profil['request_uri']);
$wiw_pms = explode('&',$wiw_pms[1]);
switch ($wiw_pms[0])
{
case 'newpm':
$wiw_text = 'Private Nachricht erstellen';
break;
case 'viewpm':
$wiw_text = 'Private Nachricht ansehen';
break;
case 'replypm':
$wiw_text = 'Private Nachricht beantworten';
break;
case 'forwardpm':
$wiw_text = 'Private Nachricht weiterleiten';
break;
default:
$wiw_text = 'Private Nachrichten';
break;
}
$wiw_url = 'index.php?'.$wiw_sid;
break;
case 'usercp.php':
$wiw_url = 'index.php?'.$wiw_sid;
$wiw_text = 'User CP';
break;
case 'profile.php':
$wiw_user = explode('userid=',$wiw_profil['request_uri']);
$wiw_user = substr($wiw_user[1],0,strpos($wiw_user[1],'&'));
$sql = "SELECT userid,username FROM bb".$n."_users WHERE userid = " . intval($wiw_user);
$wiw_user = $db->query_first($sql);
$wiw_url ='profile.php?useruid='.$wiw_user['userid'].'&'.$wiw_sid;
$wiw_text = 'Profil von ' . $wiw_user['username'];
break;
case 'register.php':
$wiw_url = 'index.php?'.$wiw_sid;
$wiw_text = 'Registrierung';
break;
case 'search.php':
$wiw_url = 'search.php?'.$wiw_sid;
$wiw_text = 'Boardsuche';
break;
case 'team.php':
$wiw_url = 'team.php?'.$wiw_sid;
$wiw_text = 'Teamansicht';
break;
case 'board.php':
$wiw_url = ( ( !empty($wiw_profil['boardid']) ) ? 'board.php?boardid=' . $wiw_profil['boardid'] . '&' : 'index.php?' ) . $wiw_sid;
$wiw_text = ( !empty($wiw_profil['boardid']) ) ? 'Im Board: ' . $wiw_profil['title'] : 'Sonstiges';
break;
case 'thread.php':
$wiw_url = ( ( !empty($wiw_profil['threadid']) ) ? 'thread.php?threadid=' . $wiw_profil['threadid'] . '&' : 'index.php?' ) . $wiw_sid;
$wiw_text = ( !empty($wiw_profil['threadid']) ) ? 'Thema ' . $wiw_profil['topic'] : 'Sonstiges';
break;
case 'addreply.php':
$wiw_url = ( ( !empty($wiw_profil['threadid']) ) ? 'thread.php?threadid=' . $wiw_profil['threadid'] . '&' : 'index.php?' ) . $wiw_sid;
$wiw_text = ( !empty($wiw_profil['threadid']) ) ? 'Antwort schreiben in: ' . $wiw_profil['topic'] : 'Sonstiges';
break;
case 'newthread.php':
$wiw_url = ( ( !empty($wiw_profil['boardid']) ) ? 'board.php?boardid=' . $wiw_profil['boardid'] . '&' : 'index.php?' ) . $wiw_sid;
$wiw_text = ( !empty($wiw_profil['boardid']) ) ? 'Neues Thema erstellen in ' . $wiw_profil['title'] : 'Sonstiges';
break;
case '':
$wiw_url = 'index.php?' . $wiw_sid;
$wiw_text = 'keine Angabe';
break;
default:
$wiw_url = 'index.php?'.$wiw_sid;
$wiw_text = 'Sonstiges';
break;
}
}
else
{
$wiw_url='index.php' . $wiw_sid;
$wiw_text = 'keine Angabe';
}
$wiw_profile_output = makehreftag($wiw_url,$wiw_text,'_blank');
#
# WIW-Profil-Anzeige von MrMind
# Ende
# |
|
Ersetzen.
Mfg
mrMind
__________________
Selbst ist der Coder
Coder under Linux
Ubuntu 5.10 Nutzer.
Meine Hacks
|
|
22.06.05 09:56 |
E-Mail
Finden
Als Freund hinzufügen
|
|
HCC
Mitglied
Dabei seit: 07.03.05
Beiträge: 64
Herkunft: Rantrum
|
|
Ich habe es bei mir grad probiert. Geht leider nicht, hab die selbe Fehlermeldung :dead
Gruß
HCC
|
|
22.06.05 10:21 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
hutzi
fighters-from-hell.de
Dabei seit: 13.03.05
Beiträge: 396
Fähigkeiten: WBB Lite 1 Fortgeschritten Forenversion: Lite 1.0
|
|
wie /pre muss weg ?
Ich kenn mich langsam nimmer aus *g*
Im 1/4 Stunden Takt kommen da neue Verbesserungen raus *help*
|
|
22.06.05 10:47 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
|
MrMind
Sklave des Supportes
Dabei seit: 19.01.04
Beiträge: 3.349
Herkunft: Darmstadt/Odw.
Themenstarter
|
|
Zitat: |
Original von Thorsten_2004
du hast ein Tip fehler gemacht
$wiw_url ='profile.php?useruid='.$wiw_user['userid'].'&'.$wiw_sid;
$wiw_text = 'Profil von ' . $wiw_user['username'];
das U muß da weg
zeile 78 glaube ich |
Danke hier nochmal der Code, wie gehabt:
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:
|
#
# WIW-Profil-Anzeige von MrMind
# Anfang
#
$sql = "SELECT s.request_uri, b.boardid, t.threadid, b.title, t.topic, u.invisible
FROM bb".$n."_sessions s
LEFT JOIN bb".$n."_users u USING (userid)
LEFT JOIN bb".$n."_permissions p ON (p.boardid=s.boardid AND p.groupid=$wbbuserdata[groupid] AND p.boardpermission=1)
LEFT JOIN bb".$n."_boards b ON (s.boardid=b.boardid AND p.boardpermission=1)
LEFT JOIN bb".$n."_threads t ON (s.threadid=t.threadid AND p.boardpermission=1)
WHERE s.userid = " . $userid . "
AND u.lastactivity >= " . (time() - $useronlinetimeout * 60);
$wiw_profil = $db->query_first($sql);
$wiw_uri = explode('?',$wiw_profil['request_uri']);
$wiw_sid = 'sid=' . $session['hash'];
if( empty($wiw_profil['invisible']) || $wbbuserdata['canuseacp'] )
{
switch($wiw_uri[0])
{
case 'index.php':
$wiw_url = 'index.php?'.$wiw_sid;
$wiw_text ='Forenindex';
break;
case 'memberslist.php':
$wiw_url = 'memberslist.php?'.$wiw_sid;
$wiw_text = 'Memberlist';
break;
case 'wiw.php':
$wiw_url = 'wiw.php?'.$wiw_sid;
$wiw_text = 'Wer ist Wo';
break;
case 'login.php':
$wiw_url = 'index.php?'.$wiw_sid;
$wiw_text = 'Anmeldung';
break;
case 'logout.php':
$wiw_url = 'index.php?'.$wiw_sid;
$wiw_text = 'Logout';
break;
case 'pms.php':
$wiw_pms = explode('action=',$wiw_profil['request_uri']);
$wiw_pms = explode('&',$wiw_pms[1]);
switch ($wiw_pms[0])
{
case 'newpm':
$wiw_text = 'Private Nachricht erstellen';
break;
case 'viewpm':
$wiw_text = 'Private Nachricht ansehen';
break;
case 'replypm':
$wiw_text = 'Private Nachricht beantworten';
break;
case 'forwardpm':
$wiw_text = 'Private Nachricht weiterleiten';
break;
default:
$wiw_text = 'Private Nachrichten';
break;
}
$wiw_url = 'index.php?'.$wiw_sid;
break;
case 'usercp.php':
$wiw_url = 'index.php?'.$wiw_sid;
$wiw_text = 'User CP';
break;
case 'profile.php':
$wiw_user = explode('userid=',$wiw_profil['request_uri']);
$wiw_user = substr($wiw_user[1],0,strpos($wiw_user[1],'&'));
$sql = "SELECT userid,username FROM bb".$n."_users WHERE userid = " . intval($wiw_user);
$wiw_user = $db->query_first($sql);
$wiw_url ='profile.php?userid='.$wiw_user['userid'].'&'.$wiw_sid;
$wiw_text = 'Profil von ' . $wiw_user['username'];
break;
case 'register.php':
$wiw_url = 'index.php?'.$wiw_sid;
$wiw_text = 'Registrierung';
break;
case 'search.php':
$wiw_url = 'search.php?'.$wiw_sid;
$wiw_text = 'Boardsuche';
break;
case 'team.php':
$wiw_url = 'team.php?'.$wiw_sid;
$wiw_text = 'Teamansicht';
break;
case 'board.php':
$wiw_url = ( ( !empty($wiw_profil['boardid']) ) ? 'board.php?boardid=' . $wiw_profil['boardid'] . '&' : 'index.php?' ) . $wiw_sid;
$wiw_text = ( !empty($wiw_profil['boardid']) ) ? 'Im Board: ' . $wiw_profil['title'] : 'Sonstiges';
break;
case 'thread.php':
$wiw_url = ( ( !empty($wiw_profil['threadid']) ) ? 'thread.php?threadid=' . $wiw_profil['threadid'] . '&' : 'index.php?' ) . $wiw_sid;
$wiw_text = ( !empty($wiw_profil['threadid']) ) ? 'Thema ' . $wiw_profil['topic'] : 'Sonstiges';
break;
case 'addreply.php':
$wiw_url = ( ( !empty($wiw_profil['threadid']) ) ? 'thread.php?threadid=' . $wiw_profil['threadid'] . '&' : 'index.php?' ) . $wiw_sid;
$wiw_text = ( !empty($wiw_profil['threadid']) ) ? 'Antwort schreiben in: ' . $wiw_profil['topic'] : 'Sonstiges';
break;
case 'newthread.php':
$wiw_url = ( ( !empty($wiw_profil['boardid']) ) ? 'board.php?boardid=' . $wiw_profil['boardid'] . '&' : 'index.php?' ) . $wiw_sid;
$wiw_text = ( !empty($wiw_profil['boardid']) ) ? 'Neues Thema erstellen in ' . $wiw_profil['title'] : 'Sonstiges';
break;
case '':
$wiw_url = 'index.php?' . $wiw_sid;
$wiw_text = 'keine Angabe';
break;
default:
$wiw_url = 'index.php?'.$wiw_sid;
$wiw_text = 'Sonstiges';
break;
}
}
else
{
$wiw_url='index.php' . $wiw_sid;
$wiw_text = 'keine Angabe';
}
$wiw_profile_output = makehreftag($wiw_url,$wiw_text,'_blank');
#
# WIW-Profil-Anzeige von MrMind
# Ende
# |
|
__________________
Selbst ist der Coder
Coder under Linux
Ubuntu 5.10 Nutzer.
Meine Hacks
|
|
22.06.05 10:59 |
E-Mail
Finden
Als Freund hinzufügen
|
|
Thorsten_2004
Mitglied
Dabei seit: 22.04.05
Beiträge: 243
Herkunft: Düsseldorf
|
|
ich weis nicht ob das richtig ist scheck das mal bitte
code: |
1:
2:
3:
4:
|
case 'portal.php':
$wiw_url = 'portal.php?'.$wiw_sid;
$wiw_text = 'Portal';
break; |
|
Zitat: |
case 'i4e_bc.php':
$wiw_url = 'i4e_bc.php?'.$wiw_sid;
$wiw_text = 'Chat';
break; |
kan man das so machen ?`
oder muß man noch was ändern und wen was
Mfg
|
|
22.06.05 11:06 |
WWW
Finden
Als Freund hinzufügen
|
|
Thorsten_2004
Mitglied
Dabei seit: 22.04.05
Beiträge: 243
Herkunft: Düsseldorf
|
|
ok danke
also kan man es einfach so weiter mach wie man es möchte
also z.B. noch eine galerie ecc. ecc.
Mfg
|
|
22.06.05 11:13 |
WWW
Finden
Als Freund hinzufügen
|
|
Thorsten_2004
Mitglied
Dabei seit: 22.04.05
Beiträge: 243
Herkunft: Düsseldorf
|
|
ok supper danke
nur das Gäste nicht in den Burning Chat Lite 1.0 Beta 1 rein können , was eigentlich schade ist und 2. können die Gäste bei mir auch nicht das Profil sehen aber es ist trozdem gut danke noch mal
|
|
22.06.05 11:36 |
WWW
Finden
Als Freund hinzufügen
|
|
hutzi
fighters-from-hell.de
Dabei seit: 13.03.05
Beiträge: 396
Fähigkeiten: WBB Lite 1 Fortgeschritten Forenversion: Lite 1.0
|
|
ich ändere immer schön brav die neuesten Erungenschaften hier - aber ich seh immer noch keinen Text im Feld "$wiw_profile_output" im jeweiligen Profil meiner Clientschaft
|
|
22.06.05 12:10 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
HCC
Mitglied
Dabei seit: 07.03.05
Beiträge: 64
Herkunft: Rantrum
|
|
Nun haut es bei mir auch alles hin. Ich hab noch einen Haufen dazu geschrieben damit nicht immer Snstige steht.
Klasse ich hab auch schon lange auf den Hack gewartet.
Vielen Dank
HCC
PS.Der Support von Dir ist echt super.
|
|
22.06.05 13:28 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
|