Joomla.it Forum

Componenti per Joomla! => Gestione Forum => : Matteo 08 Feb 2006, 17:50:24

: Errore usando recent topics
: Matteo 08 Feb 2006, 17:50:24
Ho installato il modulo in subject, ma ottengo il seguente errore...

Notice: Undefined index: ID_MEMBER in d:\webroot\www\modules\mod_smf_recent_topics.php on line 121

qualche idea? :(

: Re: Errore usando recent topics
: miki89 08 Feb 2006, 18:00:00
scrivi la riga 121 e vediamo cosa si riesce a fare
: Re: Errore usando recent topics
: Matteo 09 Feb 2006, 09:32:02
Questa è la parte di codice che genera l'errore...

:
'member' => array(
'username' => $row['memberName'],
'name' => $row['realName'],
'id' => $row['ID_MEMBER'],
'href' => !empty($row['ID_MEMBER']) ? $smfurl . '?action=profile;u=' . $row['ID_MEMBER'] : '',
'link' => !empty($row['ID_MEMBER']) ? '<a href="' . $smfurl . '?action=profile;u=' . $row['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $row['memberName'] . '">' . ($namedisplay == 1 ? $row['realName'] : $row['memberName']) . '</a>' : ($namedisplay == 1 ? $row['realName'] : $row['memberName'])
),
'subject' => $row['subject'],
'short_subject' => strlen(un_htmlspecialchars($row['subject'])) > 25 ? htmlspecialchars(substr(un_htmlspecialchars($row['subject']), 0, 22) . '...') : $row['subject'],
'time' => timeformat($row['posterTime']),
'timestamp' => $row['posterTime'],
'href' => $posthref,
/* 1.6 link compatibility changes (-Wolverine)*/
'link' => '<a href="' . $smfurl . '?topic=' . $row['ID_TOPIC'] . ($row['numReplies'] == 0 ? '.0' : '.msg' . $row['ID_LAST_MSG']) . '#new">' . $row['subject'] . '</a>',
/* 1.6 Use the msg id to determine if the post is new (-Wolverine)*/
'new' => $row['new_from'] <= $row['ID_MSG_MODIFIED'],
'replies' => $row['numReplies']

: Re: Errore usando recent topics
: miki89 09 Feb 2006, 13:55:21
mmmmmmm   non ho guardato bene bene ma ID_MEMBER dovrebbe essere un record (riga) di un  database, probabilmente della tabella di quel componente (questo non si vede da questa porzione di codice)

mi dispiace altro non so dirti :(