TinyPortal

Development => Support => Topic started by: Rasyr on December 16, 2021, 02:59:21 PM

Title: Front page Comments question
Post by: Rasyr on December 16, 2021, 02:59:21 PM
Link to my forum: http://www.wizlair.net/
SMF version: 2.0.18
TP version: 2.1.0
Default Forum Language: English
Theme name and version: jane v0.1
Browser Name and Version: Opera (not sure of version, but it is recent) and Chrome (installed less than a month ago)
Mods installed: TinyPOrtal, Askimet Spam Stopper, Stop Spammer
Related Error messages: no error message



On the front page of my site, I am using Forum posts only, from a single Read Only forum.

However, the items listed on teh front page skill have the

"0 Comments | Write Comment"

links at the bottom of each post, is there a setting that I am misisng to remove that? Or would I need to go into the code for TP and take that out?
Title: Re: Front page Comments question
Post by: Rasyr on December 16, 2021, 10:37:36 PM
and if I do need to remove it from the code manually, where would I find it?

Thank you in advance for any answers
Title: Re: Front page Comments question
Post by: @rjen on December 18, 2021, 09:25:24 PM
First of all: the "Write comment" will only show to users that actually have the permissions to comment in the board in question. If it is a read only board you (as admin) will see the "Write comment"link, but alle other users will not...

There is no setting to disable the "0 Comments" string on the Frontpage for forum topics (you can disable it for artices though)
If you want you can play around with the "custom template code' on the frontpage but that takes some experimenting...
Title: Re: Front page Comments question
Post by: @rjen on December 18, 2021, 09:35:58 PM
and if you want to remove it manually you need to find the layout you are using on the frontpage, and then edit TPsubs.template.php

find this code and delete this line

            ' . (isset($context['TPortal']['article']['boardnews']) ? '{article_boardnews}' : '') . '

Note that there are a number of templates where this is used (one for each layout type you can choose on the frontpage) so you have to take is out of the layout template that you are using...
Title: Re: Front page Comments question
Post by: Rasyr on December 18, 2021, 09:45:29 PM
Thank you