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,234
  • Total Topics: 21,353
  • Online today: 606
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online

Removing timestamp from shoutbox

Started by nomadic, July 06, 2011, 09:37:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nomadic

Link to my site: thecbg (dot) org/SMF
SMF version: SMF 1.1.14
TP version: TinyPortal 1.0 RC1.1
Default Forum Language: English
Theme name and version: Silverpluss1
Browser Name and Version: Firefox 5.0

This should be fairly simple to solve I'm sure, though so far I haven't been able to track it down myself. Basically I want shoutbox posts to be displayed with a left aligned username below which is the shoutbox text. No avatar, no timestamp, nothing fancy beyond that. I've managed to track down the proper stylesheet so that I can remove the box and little chat bubble arrow and I've found in the code what I need to blank out in order to remove the avatar...

However, I have not found what I need to remove or alter in order to get rid of the timestamp and I'd really like to do that. I've searched around and the only things I could find were for outdated versions of tp that are no good for what I'm using. From what I've seen I suspect it has something to do with:

$ns[] = template_singleshout($row);

Beyond that though I'm stuck, I obviously can't remove that as it controls the entire display of individual shouts. I need to break it apart and alter it but I can't find where or what template_singleshout is or how to dig into it and pull out the timestamp. I've also tried removing time => timeformat() etc but that didn't do anything. Anyhow any help in removing the timestamp from the shoutbox would be appreciated. Thanks.

(also could you please fix the no external links thing as it's disallowing me from using the code tag for some reason)

WillyP

The file you want is TPshout.template.php. Find it in the default theme folder. The single shout code is at the bottom.

nomadic

Awesome that worked perfectly. You guys have been a great help for me :)

This website is proudly hosted on Crocweb Cloud Website Hosting.