News: TinyPortal Release Schedule. Please read this update for More Info.

Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

December 10, 2019, 03:14:12 PM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 189279
  • Total Topics: 20775
  • Online Today: 386
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 49
Total: 49

Author Topic: article comments 2 bugs  (Read 12621 times)

0 Members and 1 Guest are viewing this topic.

Offline zalias7

  • Jr. Member
  • **
  • Posts: 11
Re: article comments 2 bugs
« Reply #10 on: January 05, 2012, 01:46:35 PM »
Yesterday, I did not attach a file, and add links. Today I can not attach files Thank you  ::)

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: article comments 2 bugs
« Reply #11 on: January 05, 2012, 04:41:53 PM »
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.

Offline zalias7

  • Jr. Member
  • **
  • Posts: 11
Re: article comments 2 bugs
« Reply #12 on: January 06, 2012, 07:17:49 AM »
I do not understand how it happened, but thanks.
As with the other problem: removed user name in article comments?

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: article comments 2 bugs
« Reply #13 on: January 06, 2012, 09:05:04 AM »
I don't understand what you are saying about that issue, can you explain how to replicate the issue? Show a screenshot or something?

Offline zalias7

  • Jr. Member
  • **
  • Posts: 11
Re: article comments 2 bugs
« Reply #14 on: January 06, 2012, 10:56:49 AM »
removed users seen as 0

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: article comments 2 bugs
« Reply #15 on: January 06, 2012, 01: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?

Offline zalias7

  • Jr. Member
  • **
  • Posts: 11
Re: article comments 2 bugs
« Reply #16 on: January 08, 2012, 09:57:55 AM »
Thanks !

and last problem:

this footer with tiniportal logo and with default theme.



this footer with tiniportal logo and green_theme_rc5.zip theme http://custom.simplemachines.org/themes/index.php?lemma=2265



What to do? :)

Offline Lesmond

  • Do what you have to!
  • Administrator
  • *
  • Posts: 3129
    • Tiny Pix... Free Image Hosting and Sharing.
Re: article comments 2 bugs
« Reply #17 on: January 08, 2012, 10:11:27 AM »
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;
Please don't PM me for support without an invitation.


Offline zalias7

  • Jr. Member
  • **
  • Posts: 11
Re: article comments 2 bugs
« Reply #18 on: January 08, 2012, 10:25:26 AM »
prefect, big , big thanks !