TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,990
  • Total Topics: 21,323
  • Online today: 1,050
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 338
  • Total: 339
  • lurkalot

Front page Comments question

Started by Rasyr, December 16, 2021, 02:59:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rasyr

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?

Rasyr

and if I do need to remove it from the code manually, where would I find it?

Thank you in advance for any answers

@rjen

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...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

@rjen

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...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Rasyr


This website is proudly hosted on Crocweb Cloud Website Hosting.