totttilamo
Mitglied
Dabei seit: 11.08.04
Beiträge: 70
|
|
moin!
auf dem fb4y wurde mir ein hack erstellt, aber da ich irgendwie keinen support bekomme, was solls
ich habe auf jedenfall in der bb1_threads eine spalte namens showindex. beim erstellen eines neuen threads wird unter optionen eine option angezeigt "auf index anzeigen" und wenn diese aktiviert ist soll in der db unter showindex, wo standartmäßig 0 steht, 1 eingetragen werden.
soweit die theorie.
ich habe in der newthread.php stehen:
unter
php: |
1:
|
$topic = wbb_trim($_POST['topic']); |
|
steht
php: |
1:
|
$showindex = intval($_POST['showindex']); |
|
(...)
diese stelle:
php: |
1:
|
$db->query("INSERT INTO bb".$n."_threads (boardid,prefix,topic,iconid,starttime,starterid,starter,lastposttime,lastposterid,lastposter,attachments,pollid,important ,visible) VALUES ('$boardid','".addslashes($prefix)."','".addslashes($topic)."','$iconid','$time','$wbbuserdata[userid]','".addslashes($wbbuserdata['username'])."','$time','$wbbuserdata[userid]','".addslashes($wbbuserdata['username'])."','".count($attachmentids)."','$poll_id','$important' ,'".(($board['moderatenew'] == 10 || $board['moderatenew'] == 11) ? (0) : (1))."')"); |
|
wird ersetzt durch:
php: |
1:
|
$db->query("INSERT INTO bb".$n."_threads (boardid,prefix,topic,iconid,starttime,starterid,starter,lastposttime,lastposterid,lastposter,attachments,pollid,important ,visible,showindex) VALUES ('$boardid','".addslashes($prefix)."','".addslashes($topic)."','$iconid','$time','$wbbuserdata[userid]','".addslashes($wbbuserdata['username'])."','$time','$wbbuserdata[userid]','".addslashes($wbbuserdata['username'])."','".count($attachmentids)."','$poll_id','$important' ,'".(($board['moderatenew'] == 10 || $board['moderatenew'] == 11) ? (0) : (1))."', '$showindex')"); |
|
demnach sieht das ganze so aus:
php: |
1:
2:
3:
4:
|
$topic = wbb_trim($_POST['topic']);
$showindex = intval($_POST['showindex']);
(...)
$db->query("INSERT INTO bb".$n."_threads (boardid,prefix,topic,iconid,starttime,starterid,starter,lastposttime,lastposterid,lastposter,attachments,pollid,important ,visible,showindex) VALUES ('$boardid','".addslashes($prefix)."','".addslashes($topic)."','$iconid','$time','$wbbuserdata[userid]','".addslashes($wbbuserdata['username'])."','$time','$wbbuserdata[userid]','".addslashes($wbbuserdata['username'])."','".count($attachmentids)."','$poll_id','$important' ,'".(($board['moderatenew'] == 10 || $board['moderatenew'] == 11) ? (0) : (1))."', '$showindex')"); |
|
er trägt unter showindex nichts ein. was soll ich jetz umstellen?^^
|
|