TinyPortal

Development => Support => Topic started by: nomadic on July 06, 2011, 09:37:53 AM

Title: Removing timestamp from shoutbox
Post by: nomadic on July 06, 2011, 09:37:53 AM
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)
Title: Re: Removing timestamp from shoutbox
Post by: WillyP on July 06, 2011, 12:42:03 PM
The file you want is TPshout.template.php. Find it in the default theme folder. The single shout code is at the bottom.
Title: Re: Removing timestamp from shoutbox
Post by: nomadic on July 06, 2011, 11:44:44 PM
Awesome that worked perfectly. You guys have been a great help for me :)