Back to top

Autore Topic: Errore usando recent topics  (Letto 1710 volte)

Offline Matteo

  • Esploratore
  • **
  • Post: 87
  • Sesso: Maschio
    • Mostra profilo
Errore usando recent topics
« il: 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? :(


Offline miki89

  • Abituale
  • ****
  • Post: 1163
  • Sesso: Maschio
  • Michele
    • Mostra profilo
Re: Errore usando recent topics
« Risposta #1 il: 08 Feb 2006, 18:00:00 »
scrivi la riga 121 e vediamo cosa si riesce a fare

Offline Matteo

  • Esploratore
  • **
  • Post: 87
  • Sesso: Maschio
    • Mostra profilo
Re: Errore usando recent topics
« Risposta #2 il: 09 Feb 2006, 09:32:02 »
Questa è la parte di codice che genera l'errore...

Codice: [Seleziona]
'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']


Offline miki89

  • Abituale
  • ****
  • Post: 1163
  • Sesso: Maschio
  • Michele
    • Mostra profilo
Re: Errore usando recent topics
« Risposta #3 il: 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 :(

 



Web Design Bolzano Kreatif