You don't need to use PHP for HTML.halil16 wrote: Sat Sep 21, 2024 6:08 pm Any html can be used for a rank by using PHP for the rank in the template file; It can be done for all ranks.
As far as I know, PHP templates such as "if rank x" can be used in the template. I've used it many times. They had a name but I couldn't remember it.
paybas/rankpoststyling/config/services.yml
with:
Code: Select all
services:
paybas.rankpoststyling.listener:
class: paybas\rankpoststyling\event\listener
arguments:
- '@cache'
- '@request'
- '@user'
tags:
- { name: event.listener }
I did tried paybas mod, but with 3.3.12 it didn't work (threw a lot of errors) - so with this change it can work?Anișor wrote: Sat Sep 21, 2024 6:27 pm Template statements. But if they rename the ranks they need to edit the templates again. Not a long term solution.
Edit (NOT RECOMMENDED):
You can force the extension by replacingpaybas/rankpoststyling/config/services.yml
with:Tested & working with 3.3.13.Code: Select all
services: paybas.rankpoststyling.listener: class: paybas\rankpoststyling\event\listener arguments: - '@cache' - '@request' - '@user' tags: - { name: event.listener }
Yes, tested with 3.3.13.
You should be able to do that with the template variable 'halil16 wrote: Sat Sep 21, 2024 6:26 pm As far as I know, PHP templates such as "if rank x" can be used in the template. I've used it many times. They had a name but I couldn't remember it.
RANK_TITLE
'.Code: Select all
<!-- IF postrow.RANK_TITLE == 'Something' -->
HTML
<!-- ENDIF -->
in 3.3.12 it didn't work. Extension is enabled but ranks still do not take html code
https://prnt.sc/NCnZO-XNctTyTerrorZone wrote: Sat Sep 21, 2024 8:49 pmin 3.3.12 it didn't work. Extension is enabled but ranks still do not take html code
okay after cleaning cache there is "Rank Style (CSS class)" however I have no idea where to set up styling (maybe I am to stupid to use this ext..) so the forum understands br tag, users need something likeAnișor wrote: Sat Sep 21, 2024 8:56 pmhttps://prnt.sc/NCnZO-XNctTyTerrorZone wrote: Sat Sep 21, 2024 8:49 pm
in 3.3.12 it didn't work. Extension is enabled but ranks still do not take html code
https://prnt.sc/Z2cr_a2n16wp
Are you sure? Did you clear the cache?
I didn't had any extension. Previously if you were creating ranks you could just use directly br tag when you did create rank from acpAnișor wrote: Sat Sep 21, 2024 9:53 pm I've never used this extension, I thought you are familiar with it. Which was your extension for this specific task before you've updated to 3.3?