HCC
Ich habe es bei mir grad probiert. Geht leider nicht, hab die selbe Fehlermeldung :dead
Gruß
HCC
MrMind
Zitat: |
Original von HCC
Ich habe es bei mir grad probiert. Geht leider nicht, hab die selbe Fehlermeldung :dead
Gruß
HCC |
Habe grad meinen beitrag editiert. versuch es mal mit dem neuen Code
mfg
MrMind
Thorsten_2004
soory
Zitat: |
Parse error: parse error, unexpected '/' in /usr/export/www/vhosts/funnetwork/hosting/thorstensseite/ALLY_X/forum/profi
le.php on line 270 |
fehler gefunden
$wiw_profile_output = makehreftag($wiw_url,$wiw_text,'_blank');
#
# WIW-Profil-Anzeige von MrMind
# Ende
#
/pre>
/pre> muß weg ^^
hutzi
wie /pre muss weg ?
Ich kenn mich langsam nimmer aus *g*
Im 1/4 Stunden Takt kommen da neue Verbesserungen raus *help*
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
MrMind
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
# |
|
Thorsten_2004
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
MrMind
Ne ist in Ordnung, kannste so einbauen.
Mfg
MrMind
Thorsten_2004
ok danke
also kan man es einfach so weiter mach wie man es möchte
also z.B. noch eine galerie ecc. ecc.
Mfg
MrMind
Zitat: |
Original von Thorsten_2004
ok danke
also kan man es einfach so weiter mach wie man es möchte
also z.B. noch eine galerie ecc. ecc.
Mfg |
Genau. Du musst eine Variable $wiw_url und eine $wiw_text definieren wie du es gemacht hast.
Musst blos immer bedenken ob es was bringt wenn du mit $wiw_url auf diese Seite verweißt oder net, wenn net, dann nimm die index.php dafür.
Zum Beispiel, wenn die Gäste nicht in den Chat dürfen, würde es wenig bringen auf den Chat zu verweisen, wenn ein Gast das Profil anguckt, dann solltest du wie folgt ran gehen:
code: |
1:
2:
|
$wiw_url = ( ( $wbbuserdata['groupid'] != 5) ? 'chat.php?' : 'index.php?' ) .$wiw_sid:
$wiw_text = 'Chat'; |
|
Oder wenn es eine Funktion gibt bei den Gruppen: Darf Chat betreten oder so würde ich diese dann als überprüfung nehmen.
ICh hoffe du verstehst was ich damit meine.
Mfg
MrMind
Thorsten_2004
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
hutzi
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
MrMind
Zitat: |
Original von hutzi
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 |
Häng mal die profile.tpl hier an.
Mfg
MrMind
SnakeBlood
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 !
HCC
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.
MrMind
@hutzi
steht am Ende des Hacks auch das $wiw_profile_output = makehreftag($wiw_url, $wiw_text, '_blank');
???
Die Template ist in Ordnung.
Evtl. zeig mal URL zum Board.
@SnakeBlood
Viel spaß damit
mfg
MrMind
MrMind
häng mal die php-Datei an *komisch*
Mfg
MrMind