Digi

Post deleted "display message" not showing - Digi

Post deleted "display message" not showing

by Lord Phobos » Tue May 14, 2024 2:02 pm

Hi

Phpbb has a function in which a user can delete an own post. Moderators can view the post clicking on the "display post" that shows on the deleted message.

However, in Digi style this won't show. You only see "User has deleted his post".

Examples from the lines in viewtopic-body.html:

All styles:

Code: Select all

			<!-- IF postrow.S_POST_HIDDEN -->
				<!-- 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 -->
			<!-- ENDIF -->
ì
Digi style:

Code: Select all

			<!-- IF postrow.S_POST_HIDDEN -->
				<!-- 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 -->
			<!-- ENDIF -->
How can I solve this?
This complicates the work of moderators if they choose to use the nice Digi style.

Thanks in advance.
Lord Phobos
Registered User
Posts: 935
Joined: Tue May 18, 2004 11:41 pm

Re: Post deleted "display message" not showing

by Lord Phobos » Tue May 14, 2024 2:04 pm

Sorry, already solved, I just copied and pasted the code and that fixed the problem.
Lord Phobos
Registered User
Posts: 935
Joined: Tue May 18, 2004 11:41 pm