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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 101
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 137
  • Total: 137

No Article Comment Message

Started by rjholla2003, June 06, 2007, 03:25:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rjholla2003

Hello all.  I was wondering if there was a way to add a message to an article with no comments, asking people to sign in and comment on it.  Even if I'd have to code it in myself, some pointers on where to edit and what kind of script to enter would work fine.  Thanks.

Zetan

How to add a message to an Article with no comments?

Allow to comment... in each Articles options. Or do you not want to use the comments feature?


Can you explain a little more?

rjholla2003

I knew it was confusing, but I was hoping that I explained it well enough.  One of the sites I visit often, www.thrillnetwork.com, has news articles featured on the homepage.  When you read an article, if there are no comments, there is a message that says, "There are no comments for this story. Please log in and comment on this story."  I want to do something like that.

Zetan

Articles have Comment options.. you just need to turn the feature on.
By default, if guests are not allowed to comment, a message is displayed

ââ,¬Å"Commenting option has been turned off for this article.ââ,¬Â

Which in my opinion is a little misleading.. That message can probably be edited. Iââ,¬â,,¢m at work and canââ,¬â,,¢t currently look at files on my server.

Lesmond

If you open up TPortal.english.php in your text editor, and find this line, you can change it to your own wording, find this file in... \Themes\default\languages

$txt['tp-cannotcomment'] = 'Commenting option has been turned off for this article.';

rjholla2003

I'm assuming I could add a string after that one such as:

$txt ['tp-nocoment'] = 'This article has no comments.  Feel free to leave one.';

If so, that's perfect.  If not, at least changing that one string will be good.

rjholla2003

I finally got to try adding the no comment string and that failed.  Is there any way I could do something like that as well?

This website is proudly hosted on Crocweb Cloud Website Hosting.