View soft deleted posts

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
Tarantino
Registered User
Posts: 874
Joined: Sat Feb 18, 2012 1:51 pm

Re: View soft deleted posts

Post by Tarantino »

The thing is when you use other styles that doesn't apply the same changes as prosilver because many times it doesn't make sense for the style in question.
User avatar
ssl
Registered User
Posts: 1606
Joined: Sat Feb 08, 2020 2:15 pm
Location: Le Lude, Pays de la Loire - France
Name: Fred Rimbert
Contact:

Re: View soft deleted posts

Post by ssl »

What sort of style?
Sorry for my English ... I do my best!

phpBB: 3.3.11 | PHP: 8.2.16
[Kill spam on phpBB] - [Some French translation of extensions]
"Mistress, Mistress someone is bothering me in pm"
User avatar
[Dimetrodon]
Registered User
Posts: 438
Joined: Tue Aug 30, 2022 3:29 am
Location: Paleozoic Era
Contact:

Re: View soft deleted posts

Post by [Dimetrodon] »

Tarantino wrote: Sun Jan 29, 2023 12:54 am The thing is when you use other styles that doesn't apply the same changes as prosilver because many times it doesn't make sense for the style in question.
I know it is a pain, but you need to either find the code needed and take it from prosilver to put it in your style or you need a more up to date style. One that is more actively maintained.
Avatar by someone named AdmiralRA on Reddit. (No, I don't have a Reddit account)
When seeking support, please consider filling out the Support Request Template. It makes it easier for anyone trying to help.
Tarantino
Registered User
Posts: 874
Joined: Sat Feb 18, 2012 1:51 pm

Re: View soft deleted posts

Post by Tarantino »

I already applied the changes myself. It's a self made style. ;)
I just wrote to help others.
Hervé
Registered User
Posts: 414
Joined: Tue Jun 04, 2019 7:51 am
Location: Belgium
Name: Rudy
Contact:

Re: View soft deleted posts

Post by Hervé »

Tarantino wrote: Sat Jan 28, 2023 7:42 pmSolution here: viewtopic.php?p=15923321#p15923321
Thanks a lot but in this link I don't understand what to do : 8 changed files with 13 additions and 14 deletions.
Should I make all 27 modifications or only those of /template/viewtopic_body.html in my personnal style ?
User avatar
ssl
Registered User
Posts: 1606
Joined: Sat Feb 08, 2020 2:15 pm
Location: Le Lude, Pays de la Loire - France
Name: Fred Rimbert
Contact:

Re: View soft deleted posts

Post by ssl »

Download the square version for your forum here
Sorry for my English ... I do my best!

phpBB: 3.3.11 | PHP: 8.2.16
[Kill spam on phpBB] - [Some French translation of extensions]
"Mistress, Mistress someone is bothering me in pm"
Hervé
Registered User
Posts: 414
Joined: Tue Jun 04, 2019 7:51 am
Location: Belgium
Name: Rudy
Contact:

Re: View soft deleted posts

Post by Hervé »

As SE_Square has not been updated since 3.2.9 I have created my own style as I have been advised many times.
So I don't intend to go back, I only want to know, to have the capability to view soft deleted posts, which modifications I have to do.
User avatar
ssl
Registered User
Posts: 1606
Joined: Sat Feb 08, 2020 2:15 pm
Location: Le Lude, Pays de la Loire - France
Name: Fred Rimbert
Contact:

Re: View soft deleted posts

Post by ssl »

So it's up to you to make the changes submitted from the link posted above. In red what is deleted, in green what replaces
Sorry for my English ... I do my best!

phpBB: 3.3.11 | PHP: 8.2.16
[Kill spam on phpBB] - [Some French translation of extensions]
"Mistress, Mistress someone is bothering me in pm"
Hervé
Registered User
Posts: 414
Joined: Tue Jun 04, 2019 7:51 am
Location: Belgium
Name: Rudy
Contact:

Re: View soft deleted posts

Post by Hervé »

Hervé wrote: Sun Jan 29, 2023 9:45 amI don't understand what to do : 8 changed files with 13 additions and 14 deletions.
Should I make all 27 modifications or only those of /template/viewtopic_body.html in my personnal style ?
User avatar
ssl
Registered User
Posts: 1606
Joined: Sat Feb 08, 2020 2:15 pm
Location: Le Lude, Pays de la Loire - France
Name: Fred Rimbert
Contact:

Re: View soft deleted posts

Post by ssl »

As already said elsewhere, on other discussions, you make the modifications to be made in the templates of your personal style
Sorry for my English ... I do my best!

phpBB: 3.3.11 | PHP: 8.2.16
[Kill spam on phpBB] - [Some French translation of extensions]
"Mistress, Mistress someone is bothering me in pm"
Hervé
Registered User
Posts: 414
Joined: Tue Jun 04, 2019 7:51 am
Location: Belgium
Name: Rudy
Contact:

Re: View soft deleted posts

Post by Hervé »

The modifications in the Gitub link concerns only one file which is in in my personal style : /template/viewtopic_body.html
It also concerns files which are NOT in my personnal style :
/language/en/common.php (I'm using fr language)
/template/posting_review.html
/template/posting_topic_review.html
/viewtopic.php

Which ones should I modify ?
Tarantino
Registered User
Posts: 874
Joined: Sat Feb 18, 2012 1:51 pm

Re: View soft deleted posts

Post by Tarantino »

Regarding this problem, only viewtopic_body.

But let say your style is on version 3.2.9 you should compare prosilver 3.2.9 with last version with let say winMerge, and then apply all changes to your style if it makes sense. If you don't have html/css knowledge, try to find a cheap dev to do it for you. There are many of freelancer websites.
Hervé
Registered User
Posts: 414
Joined: Tue Jun 04, 2019 7:51 am
Location: Belgium
Name: Rudy
Contact:

Re: View soft deleted posts

Post by Hervé »

Hi,
Thanks for your message, it works now : I can see and restore the soft deleted posts Image

Explanation : my forum is 3.3.9 my personnal style based on 3.3.8.
Except the wanted differences, fot instance locating the quote button at the end of the buttons list instead of at the begin,
the only difference in viewtopic_body concerns deleted posts :
in my style

Code: Select all

				<!-- IF postrow.S_POST_DELETED -->
					<div class="ignore" id="post_hidden{postrow.POST_ID}">
						{postrow.L_POST_DELETED_MESSAGE}<br />
						{postrow.L_POST_DISPLAY}
					</div>
				<!-- ELSEIF postrow.S_IGNORE_POST -->
					<div class="ignore" id="post_hidden{postrow.POST_ID}">
						{postrow.L_IGNORE_POST}<br />
						{postrow.L_POST_DISPLAY}
					</div>
				<!-- ENDIF -->
in Prosilver 3.3.9

Code: Select all

				<!-- IF postrow.S_POST_DELETED -->
					<div class="ignore" id="post_hidden{postrow.POST_ID}">
						{postrow.L_POST_DELETED_MESSAGE}<br>
						<a class="display_post" data-post-id="{{ postrow.POST_ID }}" href="{{ postrow.U_MINI_POST_VIEW }}">{{ lang('POST_DISPLAY') }}</a>
					</div>
				<!-- ELSEIF postrow.S_IGNORE_POST -->
					<div class="ignore" id="post_hidden{postrow.POST_ID}">
						{postrow.L_IGNORE_POST}<br>
						<a class="display_post" data-post-id="{{ postrow.POST_ID }}" href="{{ postrow.U_MINI_POST_VIEW }}">{{ lang('POST_DISPLAY') }}</a>
					</div>
				<!-- ENDIF -->
So I have copied these lines from Prosilver to my personnal style, purged the cache and Image
User avatar
ssl
Registered User
Posts: 1606
Joined: Sat Feb 08, 2020 2:15 pm
Location: Le Lude, Pays de la Loire - France
Name: Fred Rimbert
Contact:

Re: View soft deleted posts

Post by ssl »

This change was made when updating from phpBB 3.3.7 to 3.3.8, hence the importance of updating your personal style
Sorry for my English ... I do my best!

phpBB: 3.3.11 | PHP: 8.2.16
[Kill spam on phpBB] - [Some French translation of extensions]
"Mistress, Mistress someone is bothering me in pm"
Hervé
Registered User
Posts: 414
Joined: Tue Jun 04, 2019 7:51 am
Location: Belgium
Name: Rudy
Contact:

Re: View soft deleted posts

Post by Hervé »

At the beginning of my board I had to make some modifications to meet it's needs.
I have made a list of all modifications needed, which I was making at each version update.
One told me it was better to make my own style in order to avoid having to redo the same modifications each time.
Now you tell me I must apply the modifications of the new phpBB Prosilver style to my own style : I no longer understand the benefit of a personal style.
Anyway my problem is solved Image thanks again to Tarantino to have pointed the solution.
Post Reply

Return to “[3.3.x] Support Forum”