Enable HTML in ranks

For support and discussion related to templates and themes in phpBB 3.3.
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6436
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Enable HTML in ranks

Post by thecoalman »

Support for extensions should be asked in the extensions topic/discussion area.

https://www.phpbb.com/customise/db/exte ... ng/support
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
TerrorZone
Registered User
Posts: 9
Joined: Sat Sep 21, 2024 4:21 pm

Re: Enable HTML in ranks

Post by TerrorZone »

I don't neccessary need ext for this, I will try also less gracefull methods if anyone could point me where I should look. By checking in adm/acp_ranks.html I do not see major difference between 3.1.5 and 3.3.12 which would explain why forum do not take html in this field now
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6436
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Enable HTML in ranks

Post by thecoalman »

Input of HTML anywhere hasn't been allowed in phpBB since 2007 with the original release of 3.0 if I recall correctly. If that was possible then it was a bug. You must of either had extension or modification to allow it. There has been extensions/modifications in the past but those were never available here. Because it's security issue we don't allow support for it of any kind.

Try this in template:

Code: Select all

<!-- IF postrow.RANK_TITLE == 'Something' -->
HTML
<!-- ENDIF -->
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
TerrorZone
Registered User
Posts: 9
Joined: Sat Sep 21, 2024 4:21 pm

Re: Enable HTML in ranks

Post by TerrorZone »

thecoalman wrote: Sat Sep 21, 2024 10:44 pm Input of HTML anywhere hasn't been allowed in phpBB since 2007 with the original release of 3.0 if I recall correctly. If that was possible then it was a bug. You must of either had extension or modification to allow it. There has been extensions/modifications in the past but those were never available here. Because it's security issue we don't allow support for it of any kind.

Try this in template:

Code: Select all

<!-- IF postrow.RANK_TITLE == 'Something' -->
HTML
<!-- ENDIF -->
We used bold and br tags in ranks on 3.1.5 and it worked fine. If that was a bug, then it was a fine one and I need it back in my life ;)
Only admins have access to ACP and as I know and trust my admins from over 18 years I do not consider them having this option as security risk ;)

Okay, sorry if it is stupid question - where in template I should put it?
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6436
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Enable HTML in ranks

Post by thecoalman »

If you want to apply to all ranks you don't need code above, open /styles/prosilver/template/viewtopic_body.html and around line 157 find:

Code: Select all

		<!-- IF postrow.RANK_TITLE or postrow.RANK_IMG --><dd class="profile-rank">{postrow.RANK_TITLE}<!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br /><!-- ENDIF -->{postrow.RANK_IMG}</dd><!-- ENDIF -->
Replace with:

Code: Select all

		<!-- IF postrow.RANK_TITLE or postrow.RANK_IMG --><dd class="profile-rank"><strong>{postrow.RANK_TITLE}</strong><br><!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br /><!-- ENDIF -->{postrow.RANK_IMG}</dd><!-- ENDIF -->
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
TerrorZone
Registered User
Posts: 9
Joined: Sat Sep 21, 2024 4:21 pm

Re: Enable HTML in ranks

Post by TerrorZone »

Okay I did fix it in other way. In case someone is interested:

<code removed>

and simple tags like bold or br works now (but if soemone needs more complicated html codes like colors, etc those do not work)
Last edited by thecoalman on Sat Sep 21, 2024 11:46 pm, edited 1 time in total.
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6436
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Enable HTML in ranks

Post by thecoalman »

As I already mentioned there is no support given here for HTML inputs and that applies to asking for it or giving it. Additionally If you are going to go through the effort of editing php files you might as well just do it right in the template.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
TerrorZone
Registered User
Posts: 9
Joined: Sat Sep 21, 2024 4:21 pm

Re: Enable HTML in ranks

Post by TerrorZone »

thecoalman wrote: Sat Sep 21, 2024 11:48 pm As I already mentioned there is no support given here for HTML inputs and that applies to asking for it or giving it. Additionally If you are going to go through the effort of editing php files you might as well just do it right in the template.
It was a small edit, but guess so you are also right with the template file
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26874
Joined: Fri Aug 29, 2008 9:49 am

Re: Enable HTML in ranks

Post by Mick »

If your having an issue with an extension (or a style) you should contact the author of the extension (or style) in the dedicated discussion/support forum of the extension or style.
  • "The more connected we get the more alone we become” - Kyle Broflovski© 🇬🇧

Return to “[3.3.x] Styles Support & Discussion”