Removing {{ postrow.POST_SUBJECT }}

For support and discussion related to templates and themes in phpBB 3.3.
Terrio
Registered User
Posts: 2
Joined: Wed Feb 28, 2024 6:07 am

Removing {{ postrow.POST_SUBJECT }}

Post by Terrio »

Hi, I'm creating a new style based on prosilver.

The question is, сan I remove {{ postrow.POST_SUBJECT }} from viewtopic_body.html?
Specifically in this part:

Code: Select all

<h3>
    {% if postrow.POST_ICON_IMG %}
        <img src="{{ T_ICONS_PATH }}{{ postrow.POST_ICON_IMG }}" width="{{ postrow.POST_ICON_IMG_WIDTH }}" height="{{ postrow.POST_ICON_IMG_HEIGHT }}" alt="{{ postrow.POST_ICON_IMG_ALT }}" title="{{ postrow.POST_ICON_IMG_ALT }}">
    {% endif %}
    <a {% if postrow.S_FIRST_UNREAD %}class="first-unread" {% endif %}href="{{ postrow.U_MINI_POST }}">{{ postrow.POST_SUBJECT }}</a>
</h3>
Won't that cause problems with the database in the future? Just to be sure.
User avatar
Madalin10
Registered User
Posts: 116
Joined: Wed Jun 18, 2014 2:42 pm
Name: Madalin C.

Re: Removing {{ postrow.POST_SUBJECT }}

Post by Madalin10 »

You can remove it without causing issues with your db, but I don't see why would you remove the title of the subject.
https://awesome-web.design - I offer phpBB & web design services at fair prices.
User avatar
Mannix_
Registered User
Posts: 2028
Joined: Sun Oct 25, 2015 2:56 pm
Name: Matt

Re: Removing {{ postrow.POST_SUBJECT }}

Post by Mannix_ »

The only thing that you shouldn't remove are EVENTS if you want to submit your style for validation anything else is free to do as you please :)
Did I helped You? Consider a donation.
New version of phpBB has been released? My styles aren't validated for it yet? Check my page for the latest downloads!
User avatar
Steve
Registered User
Posts: 1549
Joined: Tue Apr 07, 2009 7:48 pm
Location: Co. Durham, England
Name: Steven Clark

Re: Removing {{ postrow.POST_SUBJECT }}

Post by Steve »

I'm mobile view the topic/post titles are huge. Possibly a reason to remove it.
@ The Chief Medical Officers guideline for men is that: You are safest not to drink regularly more than 14 units per week.
- I drank that today++ :lol: 🍺
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53563
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: Removing {{ postrow.POST_SUBJECT }}

Post by Brf »

Madalin10 wrote: Thu Nov 14, 2024 7:21 pm I don't see why would you remove the title of the subject.
Probably because it is redundant, unless you have users who like to change the subject on the individual posts.
User avatar
Madalin10
Registered User
Posts: 116
Joined: Wed Jun 18, 2014 2:42 pm
Name: Madalin C.

Re: Removing {{ postrow.POST_SUBJECT }}

Post by Madalin10 »

Steve wrote: Thu Nov 14, 2024 7:33 pm I'm mobile view the topic/post titles are huge. Possibly a reason to remove it.
Instead of removing he may adjust the font-size of it then, so it can look good on mobile. Or he may just visually hide it, but keeping it for screen readers.
https://awesome-web.design - I offer phpBB & web design services at fair prices.
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53563
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: Removing {{ postrow.POST_SUBJECT }}

Post by Brf »

Madalin10 wrote: Thu Nov 14, 2024 7:38 pm keeping it for screen readers.
This is the _Post_ subject, not the Topic subject. There is no real need to have it repeated 20 times down the page.
Terrio
Registered User
Posts: 2
Joined: Wed Feb 28, 2024 6:07 am

Re: Removing {{ postrow.POST_SUBJECT }}

Post by Terrio »

Great, thanks!

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