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

Caused by Guest Comments ???

Started by wildenborch, September 15, 2015, 09:21:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

illori

that is why you go to the showall action. that means for some reason the comments are not marked as unread or new.

wildenborch

Are you saying this is more of less by design?

illori

i dont think it is how it should work, but if it should be fixed further or looked into further it is out of my skill set.

illori

guest comments being 0... can you test out this?

Quote from: IchBin™ on January 06, 2012, 08:32:40 PM
Yeah, it's showing 0 if the user doesn't have a name.

Try to find this code in Sources/TPortal.php about line#778
Code (find) Select
'poster' => $row['realName'],

Code (replace with) Select
'poster' => !empty($row['realName']) ? $row['realName'] : $txt['tp-guest'];

That was just off the top of my head, so if it doesn't work go ahead and remove the code. It should say "Guest" instead of 0, assuming that is what you want?

wildenborch

Hi Ilori,

I get an error message and I think this is caused by the ; at the end of the code.
I think it should be an ,

After I changed this it didn't work.....  :(

Best regards,
Fred

illori

it maybe a start... i will have to see if i can make time to look into it further.

This website is proudly hosted on Crocweb Cloud Website Hosting.