Site Crashed - HTTP ERROR 500 - Please Help

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
User avatar
Talk19Zehn
Registered User
Posts: 846
Joined: Tue Aug 09, 2011 1:10 pm
Contact:

Re: Show no_avatar.gif (viewtopic_body.html)

Post by Talk19Zehn »

Hello DBG1, I hope to understand you correctly - Show no_avatar.gif (viewtopic_body.html), No. 4:
DBG1 wrote: Wed Mar 24, 2021 7:27 am 4 - Is there an updated version of the code edit on the link below that I could make instead of installing an extension for simply setting up a default avatar?
viewtopic.php?p=13070397#p13070397
Also, I assume that the current phpBB-version 3.3.3 is used.

So test this simple HTML-workaround. Download the current template = viewtopic_body.html phpBB-Version 3.3.3 - Prosilver and *upload this to the template directory of your design: (path) prosilver_dark / template

viewtopic_body.html (line 146 - 148 (!!)) find:

Code: Select all

					<!-- IF postrow.POSTER_AVATAR -->
						<!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}" class="avatar">{postrow.POSTER_AVATAR}</a><!-- ELSE --><span class="avatar">{postrow.POSTER_AVATAR}</span><!-- ENDIF -->
					<!-- ENDIF -->
change to:

Code: Select all

					<!-- IF postrow.POSTER_AVATAR -->
						<!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}" class="avatar">{postrow.POSTER_AVATAR}</a><!-- ELSE --><span class="avatar">{postrow.POSTER_AVATAR}</span><!-- ENDIF -->
					<!-- ELSEIF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}" class="avatar"><img src="{T_THEME_PATH}/images/no_avatar.gif" alt="" /></a>
					<!-- ENDIF -->
After your works clear all caches, also browser-caches and please check the result.

Best regards


Edit: *Please remember to maintain this HTML-template yourself if this is relevant (style code changes (updates for new phpBB-versions)).
Best regards
phpBB3 Designs - My own works: Stylearea Ongray-Designs, Adventinducement-Calendar for phpBB
User avatar
DBG1
Registered User
Posts: 94
Joined: Fri Jun 12, 2020 11:05 pm

Re: Site Crashed - HTTP ERROR 500 - Please Help

Post by DBG1 »

Thank you for your suggestion and sorry for the late reply. We are only running 3.3.0. Are these changes still possible? Thank you.
User avatar
warmweer
Jr. Extension Validator
Posts: 11234
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: Site Crashed - HTTP ERROR 500 - Please Help

Post by warmweer »

DBG1 wrote: Mon May 10, 2021 10:17 am Thank you for your suggestion and sorry for the late reply. We are only running 3.3.0. Are these changes still possible? Thank you.
Check the 3.3.0 files.
If they contain those lines, try it.
If they don't, the lines will probably be very similar and adapting the edits shouldn't be a problem.

As always: keep a backup of your current files in case something goes wrong.
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
User avatar
DBG1
Registered User
Posts: 94
Joined: Fri Jun 12, 2020 11:05 pm

Re: Site Crashed - HTTP ERROR 500 - Please Help

Post by DBG1 »

Thank you. Will try as you suggested.
Post Reply

Return to “[3.3.x] Support Forum”