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,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 606
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 249
  • Total: 249

removing "X comments | Write Comment" for forum post in main page

Started by nelsontyc, April 15, 2009, 02:42:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Zetan

I guess TP is using it elsewhere, I'll have a nose through the files.

ZarPrime

Z,

I thought it might have been in the ssi.php as well, but I got to looking in the TPortal.template.php and I think that's the file it's in, but I'm having trouble sorting it out.  It seems like it should be down around line 940 where is says "// any comments then?" or line 953, where it says "// show number of comments, and if new ones".  Everything around those lines that I try to comment out doesn't do the trick, so I'm somewhat stumped on this.  Thanks for stepping in here and taking a look.  I'll keep looking as well.

ZarPrime

Zetan

Thats the same file I'm looking in.. It is in that file, lol.. not sure where though.

JPDeni

In TPModules.php, there is an array created, which includes


'replies' => $row['numReplies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['ID_TOPIC'] . '.' . $row['numReplies'] . ';num_replies=' . $row['numReplies'],
'comment_link' => !empty($row['locked']) ? '' : '<a href="' . $scripturl . '?action=post;topic=' . $row['ID_TOPIC'] . '.' . $row['numReplies'] . ';num_replies=' . $row['numReplies'] . '">' . $txt['smf_news_3'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '<a href="' . $scripturl . '?action=post;topic=' . $row['ID_TOPIC'] . '.' . $row['numReplies'] . '">' . $txt['smf_news_3'] . '</a>',


I can't find any place that those are used, though.

Zetan

Gottcha

in

/Themes/default/TPortal.template.php

right at the bottom, find



elseif($story['is_boardnews'])
echo '
'.$story['link'].' | '.$story['new_comment'];




change to:




/* elseif($story['is_boardnews'])
echo '
'.$story['link'].' | '.$story['new_comment'];
*/


ZarPrime

Z,

OMG. ::)  That does indeed look like it.  I never would have looked down that far.

JPDeni. Thanks for your help as well, I don't think Zetan or me either one would have been able to find that if you hadn't have found that array.

ZP

Zetan

Quote from: ZarPrime on April 19, 2009, 04:34:01 PM
Z,

OMG. ::)  That does indeed look like it.  I never would have looked down that far.

JPDeni. Thanks for your help as well, I don't think Zetan or me either one would have been able to find that if you hadn't have found that array.

ZP

lol, I didn't realise Deni had posted a comment.

ZarPrime

Z,

:2funny: Ah, then you're still better at seeking out code than I am.  I fully admit that I'm still somewhat of a noobie when it come to that.

ZP

nelsontyc

Hi everyone,

Thanks a lot for the help! Zetan's code worked well. I am just so happy about it now!

Great job on the forum support!! =D

This website is proudly hosted on Crocweb Cloud Website Hosting.