במאמר זה נלמד איך למחוק את RE: מתגובה בנושא או לחלופין לתרגם אותו ל"תגובה:".
בואו נתחיל .
פתח את קובץ: posting.php
חפש:
קוד: בחר הכל
if (($mode == 'reply' || $mode == 'quote') && !$submit && !$preview && !$refresh)
{
$post_data['post_subject'] = ((strpos($post_data['post_subject'], 'Re: ') !== 0) ? 'Re: ' : '') . censor_text($post_data['post_subject']);
}
על מנת לשנות ל"תגובה:" החלף ב: (שימו לב שיש לשמור את הקובץ בפורמט UTF-8 ללא BOM)
קוד: בחר הכל
if (($mode == 'reply' || $mode == 'quote') && !$submit && !$preview && !$refresh)
{
$post_data['post_subject'] = ((strpos($post_data['post_subject'], 'Re: ') !== 0) ? 'תגובה: ' : '') . censor_text($post_data['post_subject']);
}
על מנת למחוק את "Re:" החלף ב:
קוד: בחר הכל
if (($mode == 'reply' || $mode == 'quote') && !$submit && !$preview && !$refresh)
{
$post_data['post_subject'] = ((strpos($post_data['post_subject'], 'Re: ') !== 0) ? '' '') . censor_text($post_data['post_subject']);
}
מקווה שהמאמר תרם לכם.
כתובת המאמר המקורי באתר העולמי: http://www.phpbb.com/kb/article/remove-re-from-replies/