HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media


Welcome to TinyPortal. Please login or sign up.

April 16, 2024, 09:41:49 PM

Login with username, password and session length
  • Total Members: 3,885
  • Latest: Growner
  • Total Posts: 195,162
  • Total Topics: 21,219
  • Online today: 106
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 75
  • Total: 76
  • @rjen

article comments 2 bugs

Started by zalias7, January 03, 2012, 10:13:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


Yesterday, I did not attach a file, and add links. Today I can not attach files Thank you  ::)


You removed a couple of characters when you edited the file.

This part:
WHERE i= {int:artid}',

Needs to have been this:
WHERE id = {int:artid}',

I have attached your fixed file.


I do not understand how it happened, but thanks.
As with the other problem: removed user name in article comments?


I don't understand what you are saying about that issue, can you explain how to replicate the issue? Show a screenshot or something?



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?


Thanks !

and last problem:

this footer with tiniportal logo and with default theme.

this footer with tiniportal logo and theme

What to do? :)


in index.css

Code (find) Select
#footerarea ul li.copyright
display: block;
line-height: 0;
font-size: small;
padding: 1em;

Code (Change to) Select
#footerarea ul li.copyright
display: block;
line-height: 1;
font-size: small;
padding: 1em;