PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Impex mehr Thread felder importieren


Netware
05.05.2005, 15:45
Ich wollte via Impex einen Import machen, allerdings lässt mir dieser bei der Thread Tabelle 3 Felder weg die durch Hacks entstanden sind, diese würde ich aber gerne mit importieren, doch habe ich es nicht hinbekommen das er diese mit übernimmt.

in der 008.php habe ich folgendes eingefügt


$try->set_value('nonmandatory', 'attach', $details['attach']);
$try->set_value('nonmandatory', 'similar', $details['similar']);
$try->set_value('nonmandatory', 'feld1', $details['feld1']);
$try->set_value('nonmandatory', 'feld2', $details['feld2']);
$try->set_value('nonmandatory', 'feld3', $details['feld3']);



und bei der impexdatabase.php


INSERT INTO " . $tableprefix . "thread
(
forumid, title, importforumid,
importthreadid, firstpostid, lastpost,
pollid, open, replycount,
postusername, postuserid, lastposter,
dateline, views, iconid,
notes, visible, sticky,
votenum, votetotal, attach, similar, feld1, feld2, feld3
)
VALUES
(
'" . $this->get_value('mandatory', 'forumid') . "',
'" . addslashes($this->get_value('mandatory', 'title')) . "',
'" . $this->get_value('mandatory', 'importforumid') . "',
'" . $this->get_value('mandatory', 'importthreadid') . "',
'" . $this->get_value('nonmandatory', 'firstpostid') . "',
'" . addslashes($this->get_value('nonmandatory', 'lastpost')) . "',
'" . $this->get_value('nonmandatory', 'pollid') . "',
'" . $this->get_value('nonmandatory', 'open') . "',
'" . $this->get_value('nonmandatory', 'replycount') . "',
'" . addslashes($this->get_value('nonmandatory', 'postusername')) . "',
'" . $this->get_value('nonmandatory', 'postuserid') . "',
'" . addslashes($this->get_value('nonmandatory', 'lastposter')) . "',
'" . $this->get_value('nonmandatory', 'dateline') . "',
'" . $this->get_value('nonmandatory', 'views') . "',
'" . $this->get_value('nonmandatory', 'iconid') . "',
'" . addslashes($this->get_value('nonmandatory', 'notes')) . "',
'" . $this->get_value('nonmandatory', 'visible') . "',
'" . $this->get_value('nonmandatory', 'sticky') . "',
'" . $this->get_value('nonmandatory', 'votenum') . "',
'" . $this->get_value('nonmandatory', 'votetotal') . "',
'" . addslashes($this->get_value('nonmandatory', 'attach')) . "',
'" . addslashes($this->get_value('nonmandatory', 'similar')) . "',
'" . $this->get_value('nonmandatory', 'feld1') . "',
'" . $this->get_value('nonmandatory', 'feld2') . "',
'" . $this->get_value('nonmandatory', 'feld3') . "'
)


Allerdings blieb das alles ohne erfolg, muss ich noch irgendwo etwas ändern ??