Hat jemand diesen Mod "Display Pictures in Profile and on Posts" unter 2.0.11 Erfolgreich am Laufen?
Hab Ihn eingebaut und bekomme einen Fehler in der Viewtopic (Linie 921).
Fehlermeldung:
In der Linie 921 steht der folgende Eintrag:Parse error: parse error, unexpected T_VARIABLE in /is/htdocs/xxxx/www.xxxx.de/forum/viewtopic.php on line 921
Welche T_Variable ist jetzt hier falsch?$poster_posts .= "<br />Pictures: $pictures";
Hier nochmal der ganze Mod auf einen Blick:
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$poster_posts = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Posts'] . ': ' . $postrow[$i]['user_posts'] : '';
#
#-----[ AFTER, ADD ]------------------------------------
#
//Pictures: hack by DENZO
define('ALBUM_TABLE', $table_prefix.'album');
$query = "SELECT pic_username FROM " . ALBUM_TABLE . " WHERE pic_username='".$poster."'";
$query_result = @$db->sql_query($query);
$pictures = 0;
$pictures = $db->sql_numrows($query_result)
$poster_posts .= "<br />Pictures: $pictures";
//Pictures: hack by DENZO
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------
#
//
// Generate page
//
#
#-----[ BEFORE, ADD ]-----------------------------------
#
//Pictures: hack by DENZO
$query = "SELECT pic_username FROM " . ALBUM_TABLE . " WHERE pic_username='".$profiledata['username']."'";
$query_result = @$db->sql_query($query);
$pictures = 0;
$pictures = $db->sql_numrows($query_result)
$pics = '<span class="gen">Total pictures: </span></td>
<td><b><span class="gen">'.$pictures.'</b></td>
</tr>
<td align="right" nowrap="nowrap"><span class="gen">';
$lang['Location'] = $pics.$lang['Location'];
//Pictures: hack by DENZO
#
#-----[ SAVE/CLOSE ALL FILES AND ENJOY ]----------------
Thx, Gruss Joe