YourWBB


yourWBB » WoltLab Burning Board Generation 2 * » Alles von und für das WBB Lite 1.0.x » [WBB Lite 1.0.x] Allg. Fragen und Probleme » GB im Profil geht nicht~wieder wir~ » Hallo Gast [Anmelden|Registrieren]
Letzter Beitrag | Erster ungelesener Beitrag 1.883 Views | | Thema zu Favoriten hinzufügen

Neues Thema erstellen Antwort erstellen

Dieses Thema wurde als unerledigt markiert. Thread unerledigt

Zum Ende der Seite springen GB im Profil geht nicht~wieder wir~
Autor
Beitrag « Vorheriges Thema | Nächstes Thema »
VRH Ponyhof Naeve VRH Ponyhof Naeve ist weiblich
Mitglied


Dabei seit: 30.04.07
Beiträge: 27
Forenversion: Lite 1.0

 GB im Profil geht nicht~wieder wir~ Antworten Zitieren Editieren Melden       UP

Dies ist eine vorgefertigte Schablone.
Bitte fülle soviel aus, wie dir nur Möglich ist, du kannst auch gerne noch mehr Angaben machen.


Problembeschreibung:Wir haben versucht einen Hack einzubauen (GB im Profil) und das hat alles auch soweit eigentlich geklappt...Als erstes wurde das GB nicht angezeigt und nun wird nichmal mehr das Profil angezeigt...nur noch eine weiße Seite =(


Fehlermeldung:
Parse error: syntax error, unexpected $end in /usr/export/www/vhosts/funnetwork/hosting/vrhponyhofnaeve/wbblite/profile.p
hp on line 144



Link zum Forum oder Screenshot:
http://vrhponyhofnaeve.vr.funpic.de/wbblite

Was wurde zuletzt geändert oder eingebaut?
Der Hack von dem GB im Profil...


VLG VRH Ponyhof Naeve

__________________
-folgt-
08.05.07 17:58 VRH Ponyhof Naeve ist offline E-Mail WWW Finden Als Freund hinzufügen
WDB WDB ist männlich
Mitglied


Dabei seit: 30.04.07
Beiträge: 134
Herkunft: Oberhausen
Forenversion: Lite 1.0

Antworten Zitieren Editieren Melden       UP

Es scheint ein Problem mit einem hack zu sein, frag' also am besten im Supportthread nach. Augenzwinkern
08.05.07 20:28 WDB ist offline E-Mail WWW Finden Als Freund hinzufügen Füge WDB in deine Kontaktliste ein MSN Passport-Profil von WDB anzeigen
DJ Yoshi
Mitglied


Dabei seit: 07.06.04
Beiträge: 108
Forenversion: 2.3; 2.2

Antworten Zitieren Editieren Melden       UP

Häng mal Bitte deine:
profile.php und die profile.tpl hier an Augenzwinkern
Ich werf mal ein Blick drüber.
---------------------------------------------------------------------
Deine Fehlermeldung sagt nähmlich aus:
"Unerwartetes Ende in Zeile 144 in der profil.php"

Mfg DJ Yoshi
09.05.07 01:20 DJ Yoshi ist offline E-Mail Finden Als Freund hinzufügen
VRH Ponyhof Naeve VRH Ponyhof Naeve ist weiblich
Mitglied


Dabei seit: 30.04.07
Beiträge: 27
Forenversion: Lite 1.0

Themenstarter Thema begonnen von VRH Ponyhof Naeve
Antworten Zitieren Editieren Melden       UP

@WDB haben wir schon gemacht, allerdings keine Antwort bekommen...

@Yoshi: Hier profile.php:

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:
<?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'];
$last_activity = tag($user_info['last_activity']);

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['gender']) {
 if($user_info['gender']==1) eval ("\$gender = \"".$tpl->get("profile_male")."\";");
 else eval ("\$gender  = \"".$tpl->get("profile_female")."\";");
}
else eval ("\$gender = \"".$tpl->get("profile_nodeclaration")."\";");

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")."\";");
}

if($user_info['showemail']==1) $useremail = makehreftag("mailto:$user_info[email]",$user_info['email']);
else eval ("\$useremail = \"".$tpl->get("profile_nodeclaration")."\";");

if($user_info['homepage']) $userhomepage = makehreftag($user_info['homepage'],$user_info['homepage'],"_blank");
else eval ("\$userhomepage = \"".$tpl->get("profile_nodeclaration")."\";");

if(!$user_info['icq']) eval ("\$user_info[icq] = \"".$tpl->get("profile_nodeclaration")."\";");
if(!$user_info['aim']) eval ("\$user_info[aim] = \"".$tpl->get("profile_nodeclaration")."\";");
if(!$user_info['yim']) eval ("\$user_info[yim] = \"".$tpl->get("profile_nodeclaration")."\";");
if(!$user_info['msn']) eval ("\$user_info[msn] = \"".$tpl->get("profile_nodeclaration")."\";");

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 eval ("\$birthday = \"".$tpl->get("profile_nodeclaration")."\";");

$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]) eval ("\$user_info[$fieldid] = \"".$tpl->get("profile_nodeclaration")."\";");
 else $user_info[$fieldid]=parse::textwrap($user_info[$fieldid],50);
 eval ("\$profilefields .= \"".$tpl->get("profile_userfield")."\";");
}
if($profilefields) eval ("\$hr = \"".$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")."\";");

/** Kiss-Hack Start **/

if($action == kiss_who){
 eval("\$tpl->output(\"".$tpl->get("profile_kiss_who")."\");");
 exit;
}
elseif($action == kiss_give){
 if($wbbuserdata['userid'] AND $wbbuserdata['userid'] != $user_info['userid']){
  $kiss = $user_info['kiss'] + 1;
  $db->query("UPDATE bb".$n."_users SET kiss='$kiss' WHERE userid = '$user_info[userid]'");
  if($user_info['kiss_who'] == "") $user = $wbbuserdata['username'];
  else $user = $user_info['kiss_who'] . ", " . $wbbuserdata['username'];
  $db->query("UPDATE bb".$n."_users SET kiss_who='$user' WHERE userid = '$user_info[userid]'");
  eval("\$tpl->output(\"".$tpl->get("profile_kiss_give")."\");");
  exit;
 }
 else eval("\$tpl->output(\"".$tpl->get("profile_kiss_error")."\");");
 exit;
}
/** Kiss-Hack Ende **/

/* Gästebuch Anfang */
$canusegbook = $db->query_first("SELECT * FROM bb".$n."_groups WHERE groupid='".$user_info['groupid']."'");
if($canusegbook['canusegbook']=="1") {
$zusatz = $canusegbook['postspersite'];
$gbook_entrys = $db->query_first("SELECT COUNT(id)as anzahl FROM bb".$n."_gbook WHERE profileid='".$_GET['userid']."'");
$seiten = $gbook_entrys['anzahl'] / $zusatz;
$seiten = ceil($seiten);
$seitenav = "";

if($_GET['letzt']=="") $letzt="0";
if($_GET['seite']=="") $seite="1";

eval ("\$seitenav .= \"".$tpl->get("profile_gbook_navi1")."\";");

for($i = 1; $i <= $seiten; $i++) {
 $neuletzt = ($i * $zusatz) - $zusatz;
 eval ("\$seitenav .= \"".$tpl->get("profile_gbook_navi2")."\";");
}

$result = mysql_query("SELECT * FROM bb".$n."_gbook WHERE profileid='".$user_info['userid']."' ORDER BY timestamp DESC LIMIT $letzt, $zusatz");
if(mysql_num_rows($result)){
 while($zeile = mysql_fetch_assoc($result)){
  $user = $db->query_first("SELECT * FROM bb".$n."_users WHERE userid='".$zeile['userid']."'");
  $username = $user['username'];
  $ava = $db->query_first("SELECT * FROM bb".$n."_avatars WHERE avatarid='".$user['avatarid']."'");
  $avatar = "avatar-".$ava['avatarid'].".".$ava['avatarextension'];
  $datum = date("d.m.Y",$zeile['timestamp']);
  $zeit = date("H:i", $zeile['timestamp']);
  $userid = $zeile['userid'];
  $gbentryid = $zeile['id'];

  $parse = new parse(1,75,1,1,1,1);
  $kommentar=$parse->doparse($zeile['kommentar'],1,0,1,1);

  if($user_info['userid']==$wbbuserdata['userid']) eval ("\$del_gbentry_btn = \"".$tpl->get("profile_del_gbentry_btn")."\";");
  eval ("\$gbentrys .= \"".$tpl->get("profile_gbentry")."\";");
 }
}
if($wbbuserdata['userid']) eval ("\$gbentry_btn .= \"".$tpl->get("profile_gbentry_btn")."\";");
eval ("\$gbook = \"".$tpl->get("profile_gbook")."\";");
}
/* Gästebuch Ende */
eval("\$tpl->output(\"".$tpl->get("profile")."\");");
?>



und profile.tpl

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:
{!DOCTYPE}
<html>
<head>
<title>$master_board_name - Profil von $user_info[username]</title>
$headinclude
<script language="Javascript">
   <!--
    function kiss() {
     window.open("profile.php?userid=$user_info[userid]&action=kiss_who&sid=$session[hash]", "kiss", "toolbar=no,scrollbars=yes,resizable=no,width=600,height=300");
    }
   //-->
  </script>
</head>

<body id="bg">
 $header
 <tr bgcolor="{tablecolora}" id="tablea">
  <td><table cellpadding=0 cellspacing=0 border=0 width="100%">
   <tr>
    <td><smallfont><b><a href="index.php?sid=$session[hash]">$master_board_name</a> » Profil von $user_info[username]</b></font></td>
    <td align="right"><smallfont><b>$usercbar</b></font></td>
   </tr>
  </table></td>
 </tr>
</table><br>
<table cellpadding=4 cellspacing=1 border=0 width="{tableinwidth}" bgcolor="{tableinbordercolor}">
 <tr bgcolor="{tabletitlecolor}" id="tabletitle">
  <td colspan=2><table width="100%" border=0 cellpadding=0 cellspacing=0>
   <tr>
    <td width="100%"><normalfont color="{fontcolorsecond}"><b>Profil von $user_info[username]</b></font></td>
    <td width="200" align="center" nowrap><normalfont color="{fontcolorsecond}"><b>Avatar/Infotext</b></font></td>
   <tr>
  </table></td>
 </tr>
 <tr bgcolor="{tablecolora}" id="tablea">
  <td width="100%"><table width="100%">
   <tr>
    <td><normalfont><B>Registriert am:</B></font></td>
    <td><normalfont>$regdate</font></td>
   </tr>
   <tr>
    <td valign="top"><normalfont><B>Rang:</B></font></td>
    <td><normalfont>$user_info[ranktitle] $rankimages</font></td>
   </tr>
<tr>
    <td valign="top"><normalfont><B>Letzte Aktivität:</B></font></td>
    <td><normalfont>$last_activity</font></td>
   </tr>
   <tr>
    <td><normalfont><B>Beitr&auml;ge:</B></font></td>
    <td><normalfont>$user_info[userposts] ($postperday pro Tag)</font></td>
   </tr>
<tr>
    <td><normalfont><B>K&uuml;sse erhalten:</B></font></td>
    <td><normalfont>$user_info[kiss] <a href="javascript:kiss();">[WOHER]</a></font></td>
   </tr>
   <tr>
    <td colspan=2><hr width="100%" color="{tableinbordercolor}" noShade size=1></td>
   </tr>
   <tr>
    <td><normalfont><B>ICQ Nummer:</B></font></td>
    <td><normalfont>$user_info[icq]</font></td>
   </tr>
   <tr>
    <td><normalfont><B>AIM Screenname:</B></font></td>
    <td><normalfont>$user_info[aim]</font></td>
   </tr>
   <tr>
    <td><normalfont><B>YIM Screenname:</B></font></td>
    <td><normalfont>$user_info[yim]</font></td>
   </tr>
   <tr>
    <td><normalfont><B>MSN Screenname:</B></font></td>
    <td><normalfont>$user_info[msn]</font></td>
   </tr>
   <tr>
    <td><normalfont><B>eMail:</B></font></td>
    <td><normalfont>$useremail</font></td>
   </tr>
   <tr>
    <td><normalfont><B>Homepage:</B></font></td>
    <td><normalfont>$userhomepage</font></td>
   </tr>
   <tr>
    <td colspan=2><hr width="100%" color="{tableinbordercolor}" noShade size=1></td>
   </tr>
   <tr>
    <td><normalfont><b>Geschlecht:</b></font></td>
    <td><normalfont>$gender</font></td>
   </tr>
   <tr>
    <td><normalfont><b>Geburtstag:</b></font></td>
    <td><normalfont>$birthday</font></td>
   </tr>
   $hr
   $profilefields
   <tr>
    <td colspan=2><hr width="100%" color="{tableinbordercolor}" noShade size=1></td>
   </tr>
   <tr>
    <td><normalfont><b>Aktionen:</b></font></td>
    <td><normalfont></font></td>
   </tr>
   <tr>
    <td><normalfont></font></td>
    <td><normalfont><img src="{imagefolder}/kiss.gif" border="0" alt="" title="Kuss geben" /> <a href="profile.php?userid=$user_info[userid]&action=kiss_give&sid=$session[hash]">User küssen</a></font></td></font></td>
   </tr>
  </table></td>
  <td width="200" align="center" nowrap>$useravatar<br><normalfont>$user_text</font><p>$user_online</p></td>
 </tr>
 <tr bgcolor="{tabletitlecolor}" id="tabletitle">
  <td colspan=2><table width="100%" border=0 cellpadding=0 cellspacing=0>
   <tr>
    <td><normalfont color="{fontcolorsecond}"><B>Kontaktaufnahme:</B></font>
    <td align="right">$btn_email $btn_pm $btn_search <a href="usercp.php?action=buddy&add=$user_info[userid]&sid=$session[hash]"><img src="{imagefolder}/homie.gif" border=0 alt="Nehmen Sie $user_info[username] in Ihre Freundesliste auf"></a></td>
   </tr>
  </table></td>
 </tr>
</table>
$gbook
$footer
</body>
</html>



VLG VRH Ponyhof Naeve

PS: Ins Profil kommen wir wieder ohne Fehlermeldung...allerdings wird das GB immer noch nicht angezeigt =(

__________________
-folgt-
09.05.07 14:21 VRH Ponyhof Naeve ist offline E-Mail WWW Finden Als Freund hinzufügen
DJ Yoshi
Mitglied


Dabei seit: 07.06.04
Beiträge: 108
Forenversion: 2.3; 2.2

Antworten Zitieren Editieren Melden       UP

Hmm ansich ist alles richtig.

Sind die Templates vom GB in allen Styles vertreten?

(/templates <- hier einmal
/templates/deinstyle/ <- und hier
etc.pp)

Rechte gesetzt ?

Mfg DJ Yoshi

PS: Kannst ja diese Profil wahlweise mal nutzen. denke aber mal das deine korrekt ist.

Dateianhang:
unknown profile.php (7 KB, 2 mal heruntergeladen)
09.05.07 14:44 DJ Yoshi ist offline E-Mail Finden Als Freund hinzufügen
VRH Ponyhof Naeve VRH Ponyhof Naeve ist weiblich
Mitglied


Dabei seit: 30.04.07
Beiträge: 27
Forenversion: Lite 1.0

Themenstarter Thema begonnen von VRH Ponyhof Naeve
Antworten Zitieren Editieren Melden       UP

ähm...ja...eigentlich schon...haben aber nur die 2 templates ordner die vorher auch schon da waren.../templates und /acp/templates ...
mhm...geht auch mit deinem profile.php nicht =(

__________________
-folgt-

Dieser Beitrag wurde 1 mal editiert, zum letzten Mal von VRH Ponyhof Naeve: 09.05.07 15:05.

09.05.07 15:01 VRH Ponyhof Naeve ist offline E-Mail WWW Finden Als Freund hinzufügen
DJ Yoshi
Mitglied


Dabei seit: 07.06.04
Beiträge: 108
Forenversion: 2.3; 2.2

Antworten Zitieren Editieren Melden       UP

Ok.
Hmm. Kann man sich das mal richtig vor Ort mal anschauen ?
Also einmal auf dem FTP ?
09.05.07 15:03 DJ Yoshi ist offline E-Mail Finden Als Freund hinzufügen
VRH Ponyhof Naeve VRH Ponyhof Naeve ist weiblich
Mitglied


Dabei seit: 30.04.07
Beiträge: 27
Forenversion: Lite 1.0

Themenstarter Thema begonnen von VRH Ponyhof Naeve
Antworten Zitieren Editieren Melden       UP

Hast PN

__________________
-folgt-
09.05.07 15:09 VRH Ponyhof Naeve ist offline E-Mail WWW Finden Als Freund hinzufügen
DJ Yoshi
Mitglied


Dabei seit: 07.06.04
Beiträge: 108
Forenversion: 2.3; 2.2

Antworten Zitieren Editieren Melden       UP

Hab gemerkt das du die Templates vergessen hattest in den Template Ordner zu packen und die gbook.php fehlte auch im Hauptverzeichniss.

Hab aber gleichzeitig ein kleinen Fehler in der acp/group.php behoben Augenzwinkern

Die install_gbook.php hattest du bestimmt schon ausgeführt gehabt ?
Frage nur smile

Aber jetzt müsste eigentlich alles normal laufen Augenzwinkern

Mfg DJ Yoshi
09.05.07 15:30 DJ Yoshi ist offline E-Mail Finden Als Freund hinzufügen
VRH Ponyhof Naeve VRH Ponyhof Naeve ist weiblich
Mitglied


Dabei seit: 30.04.07
Beiträge: 27
Forenversion: Lite 1.0

Themenstarter Thema begonnen von VRH Ponyhof Naeve
Antworten Zitieren Editieren Melden       UP

ups.... Floeten Peinlich
ja, die install_gbook.php hat ich schon ausgeführt...

es geht alles, dankeschön Knutsch


VLG VRH Ponyhof Naeve

__________________
-folgt-
09.05.07 15:40 VRH Ponyhof Naeve ist offline E-Mail WWW Finden Als Freund hinzufügen
Baumstruktur | Brettstruktur
Gehe zu:

Neues Thema erstellen Antwort erstellen

yourWBB » WoltLab Burning Board Generation 2 * » Alles von und für das WBB Lite 1.0.x » [WBB Lite 1.0.x] Allg. Fragen und Probleme » GB im Profil geht nicht~wieder wir~