Remove blocks from categories

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
MrAnonymous
Registered User
Posts: 25
Joined: Tue Oct 13, 2020 3:01 pm

Remove blocks from categories

Post by MrAnonymous »

Hi all,

How can I remove the topics / post / last posts blocks from a particular topic on my forum. See my picture what i mean. is there an extension who can do that for me or have i to edit files for this.
Screenshot
Screenshot
Knipsel.JPG (9.81 KiB) Viewed 829 times
Last edited by thecoalman on Tue Nov 17, 2020 9:36 am, edited 1 time in total.
Reason: Moved to Styles Support & Discussion
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 4259
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Re: Remove blocks from categories

Post by thecoalman »

You wish to remove this for just a single topic?
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
MrAnonymous
Registered User
Posts: 25
Joined: Tue Oct 13, 2020 3:01 pm

Re: Remove blocks from categories

Post by MrAnonymous »

yes that is the plan.
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 4259
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Re: Remove blocks from categories

Post by thecoalman »

I haven't tested this but it should work.

Open /styles/prosilver/template/viewforum_body.html and find:

Code: Select all

				<dd class="posts">{topicrow.REPLIES} <dfn>{L_REPLIES}</dfn></dd>
Before add:

Code: Select all

					<!-- IF topicrow.TOPIC_ID != 123456 -->
A little ways down find:

Code: Select all

						<br />{topicrow.LAST_POST_TIME}
					</span>
				</dd>
After add:

Code: Select all

				<!-- ENDIF -->

You need to replace 123456 with the topic ID you want. Purge the cache after uploading edited file.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
MrAnonymous
Registered User
Posts: 25
Joined: Tue Oct 13, 2020 3:01 pm

Re: Remove blocks from categories

Post by MrAnonymous »

Ok later this day i gonna try it out. Thanks for the help so far.
MrAnonymous
Registered User
Posts: 25
Joined: Tue Oct 13, 2020 3:01 pm

Re: Remove blocks from categories

Post by MrAnonymous »

Where can i find the topic ID ?
User avatar
warmweer
Jr. Extension Validator
Posts: 6149
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: Remove blocks from categories

Post by warmweer »

MrAnonymous wrote:
Tue Nov 17, 2020 5:22 pm
Where can i find the topic ID ?
Look at the topic title of this topic: it's a link

Code: Select all

https://www.phpbb.com/community/viewtopic.php?f=591&t=2574601
2574601 is the topic_id
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.
MrAnonymous
Registered User
Posts: 25
Joined: Tue Oct 13, 2020 3:01 pm

Re: Remove blocks from categories

Post by MrAnonymous »

So i find viewforum.php?f= 14, i change the number to 14 ?
User avatar
warmweer
Jr. Extension Validator
Posts: 6149
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: Remove blocks from categories

Post by warmweer »

MrAnonymous wrote:
Tue Nov 17, 2020 5:30 pm
So i find viewforum.php?f=14, i change the number to 14 ?
I have no idea why you would need the forum_id (nor why you would want to change it).
A topic_id is unique to a topic, even a link topic has a different topic_id than the topic it links to (which is something to take into account if the topic you want to obscure has a link topic).
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.
MrAnonymous
Registered User
Posts: 25
Joined: Tue Oct 13, 2020 3:01 pm

Re: Remove blocks from categories

Post by MrAnonymous »

Ok now i understand and yes it is working on post level. I want that this is also is working on the forum_id because i don't want to show how many downloads are in my categories are who posted it. So maybe i have to change something else for this to work.

If I don't want 1 post to work like this but several, what should I adjust. Now I am using id 465 and it works fine. But now say I want item 465,464,463 to do the same. What do I need to adjust for that to make it work also on the other posts ?
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 4259
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Re: Remove blocks from categories

Post by thecoalman »

MrAnonymous wrote:
Tue Nov 17, 2020 5:30 pm
So i find viewforum.php?f= 14, i change the number to 14 ?
If you wanted to remove this for all topics in a forum instead try:

Code: Select all

<!-- IF topicrow.FORUM_ID != 14 -->

To specify a group of topic ID's try:

Code: Select all

<!-- IF topicrow.TOPIC_ID != 123 or topicrow.TOPIC_ID != 456 or topicrow.TOPIC_ID != 789 -->
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
MrAnonymous
Registered User
Posts: 25
Joined: Tue Oct 13, 2020 3:01 pm

Re: Remove blocks from categories

Post by MrAnonymous »

Super i have a look :) And thanks for helping me out much appreciated.
MrAnonymous
Registered User
Posts: 25
Joined: Tue Oct 13, 2020 3:01 pm

Re: Remove blocks from categories

Post by MrAnonymous »

If i put behind the single line of 456 or topicrow.TOPIC_ID != 454, both posts the blocks are not removed if i look at the forum
MrAnonymous
Registered User
Posts: 25
Joined: Tue Oct 13, 2020 3:01 pm

Re: Remove blocks from categories

Post by MrAnonymous »

If i replace the line <!-- IF topicrow.TOPIC_ID != 456 --> for <!-- IF topicrow.FORUM_ID != 14 --> nothing is happening.
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 4259
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Re: Remove blocks from categories

Post by thecoalman »

Did you purge cache?
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
Post Reply

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