Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 1936

[3.3.x] Styles in Development • Re: [RC] Zeina theme for phpBB 3.3.12

$
0
0
Hi Donell,
After reviewing this issue is also exist in the original theme "prosilver", it has nothing to do with the theme.

We also found this topic talking about the same problem:
viewtopic.php?t=2617736

This text is quoted from an answer from a member of the support team (From the topic attached above):
As a moderator you have the choice to add the reason or not. As a user if your post is the last in the topic you can edit it without leaving a reason. If it’s not the last the time, date and edit count is automatically added.
These are the cases in which the modification information appears or does not appear:
  • If edit reason is given always display edit info
  • If editing last post then display no edit info
  • If m_edit (Moderator edit) permission then display no edit info
  • If normal edit display edit info
You can suggest to the phpbb development team to add this as an option in the control panel in the future.

However, there is a solution but we do not recommend it.

Open the file "includes/functions_posting.php" and find this code:

Code:

if ($data_ary['post_edit_reason'] || (!$auth->acl_get('m_edit', $data_ary['forum_id']) && ($post_mode == 'edit' || $post_mode == 'edit_first_post'))){$data_ary['post_edit_reason']= truncate_string($data_ary['post_edit_reason'], 255, 255, false);$sql_data[POSTS_TABLE]['sql']= array('post_edit_time'=> $current_time,'post_edit_reason'=> $data_ary['post_edit_reason'],'post_edit_user'=> (int) $data_ary['post_edit_user'],);$sql_data[POSTS_TABLE]['stat'][] = 'post_edit_count = post_edit_count + 1';}else if (!$data_ary['post_edit_reason'] && $mode == 'edit' && $auth->acl_get('m_edit', $data_ary['forum_id'])){$sql_data[POSTS_TABLE]['sql'] = array('post_edit_reason'=> '',);}
Replace it with this:

Code:

$data_ary['post_edit_reason']= truncate_string($data_ary['post_edit_reason'], 255, 255, false);$sql_data[POSTS_TABLE]['sql']= array('post_edit_time'=> $current_time,'post_edit_reason'=> $data_ary['post_edit_reason'],'post_edit_user'=> (int) $data_ary['post_edit_user'],);$sql_data[POSTS_TABLE]['stat'][] = 'post_edit_count = post_edit_count + 1';
Regards,
Leenoz Team

Statistics: Posted by Leenoz — Fri Jul 26, 2024 3:57 am



Viewing all articles
Browse latest Browse all 1936

Trending Articles