Luistert nu naar...
Tot mijn eigen verbazing kreeg ik het uiteindelijk werkend, precies zoals ik het hebben wou. Het probleem is alleen dat het forum er langzamer door lijkt te worden en dat is nou ook weer niet de bedoeling.
Dus mijn vraag is eigenlijk of iemand met meer verstand van mods schrijven eens zou willen meekijken of ik wat belangrijks gemist heb/teveel heb gedaan/fout heb gedaan/overslagen... wat dan ook. Iets waardoor ik het werkend krijg zonder dat het de snelheid beïnvloedt
Dit is wat ik heb gedaan:
SQL
Code: Selecteer alles
ALTER TABLE `phpbb_posts` ADD `post_listening` VARCHAR( 255 ) NOT NULL DEFAULT '';
Code: Selecteer alles
Copy: root/images/cddisc.gif
To: images/cddisc.gif
Find
Code: Selecteer alles
$uninit = array('post_attachment' => 0, 'poster_id' => $user->data['user_id'], 'enable_magic_url' => 0, 'topic_status' => 0, 'topic_type' => POST_NORMAL, 'post_subject' => '', 'topic_title' => '', 'post_time' => 0, 'post_edit_reason' => '', 'notify_set' => 0);
Code: Selecteer alles
, 'post_time' => 0
Code: Selecteer alles
, 'post_listening' => ''
Code: Selecteer alles
$post_data['post_subject'] = utf8_normalize_nfc(request_var('subject', '', true));
Code: Selecteer alles
// Now Listening to
$post_data['post_listening'] = utf8_normalize_nfc(request_var('listening', '', true));
// Now Listening to --- end
Code: Selecteer alles
'post_edit_reason' => $post_data['post_edit_reason'],
Code: Selecteer alles
// Now Listening to
'post_listening' => $post_data['post_listening'],
// Now Listening to --- end
Code: Selecteer alles
$preview_subject = censor_text($post_data['post_subject']);
Code: Selecteer alles
$preview_listening = censor_text($post_data['post_listening']);
Code: Selecteer alles
'PREVIEW_SIGNATURE' => $preview_signature,
Code: Selecteer alles
'PREVIEW_LISTENING' => $preview_listening,
Code: Selecteer alles
'EDIT_REASON' => $post_data['post_edit_reason'],
Code: Selecteer alles
// Now Listening to
'LISTENING' => ($mode == 'quote') ? '' : $post_data['post_listening'],
// Now Listening to --- end
Find
Code: Selecteer alles
'post_edit_reason' => $row['post_edit_reason'],
Code: Selecteer alles
'post_listening' => $row['post_listening'],
Code: Selecteer alles
'EDIT_REASON' => $row['post_edit_reason'],
Code: Selecteer alles
'LISTENING' => $row['post_listening'],
Find
Code: Selecteer alles
$post_subject = $row['post_subject'];
Code: Selecteer alles
$post_listening = $row['post_listening'];
Code: Selecteer alles
'post_subject' => $subject,
Code: Selecteer alles
'post_listening' => $data['post_listening'],
Open: language/en/posting.php
Find
Code: Selecteer alles
));
?>
Code: Selecteer alles
// Now Listening to
'LISTENING' => 'Now listening to',
// Now Listening to --- end
Find
Code: Selecteer alles
));
?>
Code: Selecteer alles
// Now Listening to
'LISTENING' => 'Now listening to',
// Now Listening to --- end
Open: styles/subsilver2/template/posting_body.html
Find
Code: Selecteer alles
<!-- IF S_INLINE_ATTACHMENT_OPTIONS -->
Code: Selecteer alles
<tr>
<td class="row1" width="22%"><b class="genmed">{L_LISTENING}:</b></td>
<td class="row2" width="78%"><input class="post" style="width:450px" type="text" name="listening" size="45" maxlength="65" tabindex="2" value="{LISTENING}" /></td>
</tr>
Find
Code: Selecteer alles
<!-- IF PREVIEW_SIGNATURE --><span class="postbody"><br />_________________<br />{PREVIEW_SIGNATURE}</span><!-- ENDIF --></td>
Code: Selecteer alles
<tr>
<td class="row1" width="22%"><b class="genmed">{L_LISTENING}:</b></td>
<td class="row2" width="78%"><input class="post" style="width:450px" type="text" name="listening" size="45" maxlength="65" tabindex="2" value="{LISTENING}" /></td>
</tr>
Find
Code: Selecteer alles
<!-- IF postrow.SIGNATURE -->
Code: Selecteer alles
<!-- IF postrow.LISTENING -->
<table width="100%" cellspacing="0">
<tr>
<td align="right" class="gensmall"><img src="images/cddisc.gif" alt="" /> <em><strong>{L_LISTENING}:</strong> {postrow.LISTENING} </em></td>
</tr>
</table>
<!-- ENDIF -->
http://img249.imageshack.us/img249/1636/postnew.jpg
http://img169.imageshack.us/img169/2553/viewnew.jpg
Ik zou er heel blij mee zijn als iemand me kan vertellen waar het fout gaat...