Modifiable files in phpBB

When updating phpbb forum versions to a more recent one, previously changed files are overwritten with new ones. That is, for example, the files responsible for the appearance of the forum have been changed or some changes have been made to improve seo.

What I usually do before updating the forum: I download the entire site from the hosting, although I don’t need it, because. I always have a version of the forum in reserve, from where I upload all my edits and improvements to the core. But still. Below is a list of what and in what “picking” was made. Next, I update the engine and then upload back what has changed.

forum\styles\prosilver\template\overall_footer.html
forum\styles\prosilver\template\overall_header.html
forum\styles\prosilver\template\index_body.html
forum\styles\prosilver\theme\common.css
forum\styles\prosilver\theme\colours.css
forum\styles\prosilver\theme\imageset.css
forum\posting.php
forum\styles\prosilver\template\viewtopic_body.html
forum\styles\prosilver\template\viewforum_body.html
forum\styles\prosilver\template\bbcode.html
forum\viewtopic.php
forum\index_body.html

But what exactly has changed, apart from the design theme:

We insert ads or something after the first message in the topic
forum\styles\prosilver\template\viewtopic_body.html

right after <!– IF postrow.SIGNATURE –><div id=”sig{postrow.POST_ID}”>{postrow.SIGNATURE}</div><!– ENDIF –>
вставить <!– IF postrow.S_FIRST_ROW –> paste code here <!– ENDIF –>
If required after each message in the topic, then remove <!– IF postrow.S_FIRST_ROW –>    <!– ENDIF –> leaving the ad code

Advertising on the forum page (list of topics), the code after this fragment in the file forum\styles\prosilver\template\viewforum_body.html:
<!– INCLUDE overall_header.html –>

Closing the indexing of external links
forum\styles\prosilver\template\bbcode.html

<!– BEGIN url –><noindex><a href=”/{URL}” rel=”nofollow”>{DESCRIPTION}</a></noindex><!– END url –>

Improving the SEO of the forum, namely, we make the heading h1
forum\styles\prosilver\template\viewforum_body.html
forum\styles\prosilver\template\viewtopic_body.html
just find <h2></h2> and replace with <h1></h1>

HOW TO REMOVE RE IN RESPONSE HEADER

forum\posting.php
528 Find   $post_data[‘post_subject’]        = (in_array($mode, array(‘quote’, ‘edit’))) ? $post_data[‘post_subject’] : ((isset($post_data[‘topic_title’])) ? $post_data[‘topic_title’] : ”);
528 Replace   $post_data[‘post_subject’]        = (in_array($mode, array(‘quote’, ‘edit’))) ? $post_data[‘post_subject’] : (/*(isset($post_data[‘topic_title’])) ? $post_data[‘topic_title’] : */”);

1601 Find   if (($mode == ‘reply’ || $mode == ‘quote’) && !$submit && !$preview && !$refresh)
1601 Replace  if ((/*$mode == ‘reply’ ||*/ $mode == ‘quote’) && !$submit && !$preview && !$refresh)

forum\viewtopic.php

2115 Find    ‘SUBJECT’                => ‘Re: ‘ . censor_text($topic_data[‘topic_title’]),
2115 Replace   ‘SUBJECT’                => censor_text($topic_data[‘topic_title’]),

I have line 372 responsible for sorting messages, I don’t need it in this forum
forum\styles\prosilver\template\viewtopic_body.html

<!– IF S_NUM_POSTS > 1 or .pagination –>
<form id=”viewtopic” method=”post” action=”{S_TOPIC_ACTION}”>
<fieldset style=”margin-top: 0; “>
<!– IF not S_IS_BOT –>
<label>{L_DISPLAY_POSTS}{L_COLON} {S_SELECT_SORT_DAYS}</label>
<label>{L_SORT_BY} {S_SELECT_SORT_KEY}</label> <label>{S_SELECT_SORT_DIR}</label>
<input type=”submit” name=”sort” value=”{L_GO}” />
<!– ENDIF –>
</fieldset>
</form>
<hr />
<!– ENDIF –>

SORTING TOPICS

I don’t need it in this forum either
forum\styles\prosilver\template\viewforum_body.html
line 235

<!– IF S_SELECT_SORT_DAYS and not S_DISPLAY_ACTIVE –>
<form method=”post” action=”{S_FORUM_ACTION}”>
<fieldset>
<!– IF not S_IS_BOT –>
<label>{L_DISPLAY_TOPICS}{L_COLON} {S_SELECT_SORT_DAYS}</label>
<label>{L_SORT_BY} {S_SELECT_SORT_KEY}</label>
<label>{S_SELECT_SORT_DIR}</label>
<input type=”submit” name=”sort” value=”{L_GO}” />
<!– ENDIF –>
</fieldset>
</form>
<hr />
<!– ENDIF –>

forum\styles\prosilver\template\viewforum_body.html строка <!– INCLUDE jumpbox.html –>(Back to the list of forums) replaced by an ad block

At the very bottom of the forum, access rights to the forum are shown, I don’t need to show these rights, I delete

forum\styles\prosilver\template\viewforum_body.html

removed:

<!– IF S_DISPLAY_POST_INFO –>
<div>
<h3>{L_FORUM_PERMISSIONS}</h3>
<p><!– BEGIN rules –>{rules.RULE}<br /><!– END rules –></p>
</div>
<!– ENDIF –>