TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 28, 2024, 08:22:33 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,104
  • Total Topics: 21,212
  • Online today: 152
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 164
  • Total: 165
  • tino

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.

zalias7

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

IchBin

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.

zalias7

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

IchBin

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

zalias7


IchBin

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?

zalias7

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? :)

Lesmond

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;

zalias7