News: April 7th, 2019, The Tinyportal team is pleased to announce the release of ~~ TinyPortal 1.6.3! GET IT NOW!!!

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

July 17, 2019, 06:29:36 PM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 188520
  • Total Topics: 20737
  • Online Today: 266
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 22
Total: 22

Author Topic: The NEW Button  (Read 740 times)

0 Members and 1 Guest are viewing this topic.

Offline Skb

  • Full Member
  • ***
  • Posts: 102
    • Metabolically Challenged
The NEW Button
« on: March 25, 2019, 04:59:01 PM »
I'm using SMF 2.1 RC1 / TP 1.6.2.
I have a Right Panel with the Recent Posts Block.
In this Block clicking the NEW button does not have the anticipated response.
It goes to the first post of the last page of the topic.
Whereas, clicking the NEW button in the SMF Board view takes you to your first unread post.

Anyone else experienced that ?
www.diabetic.pub/forum
because every diabetic needs help.
SMF 2.1 RC1 / TP 1.6.2

Offline lurkalot

  • Administrator
  • *
  • Posts: 6074
    • Camera Craniums
Re: The NEW Button
« Reply #1 on: March 26, 2019, 12:46:05 AM »
Thanks for the report.  We'll have to check that out and see what's going on.

I think 2.1 has had some issues where this stuff is pointing to the wrong place, including the alerts.  Not sure if they have sorted all this yet.

Offline @rjen

  • Support Team
  • *
  • Posts: 1695
    • FJR-club Nederland
Re: The NEW Button
« Reply #2 on: March 26, 2019, 01:37:02 AM »
It seems that you have a point...

The new link from the unread view uses another message id then the link from the recent block...

Recent block uses the message ID of the new message, SMF uses that of the last message read... not sure what is causing this and why it did not pop-up before..

Unread link SMF:
https://test2.fjr-club.nl/index.php?topic=23259.msg327172;topicseen#new

Unread link Recent block:
https://test2.fjr-club.nl/index.php?topic=23259.msg327173;topicseen#new

Will have to check it out later...

Just did some checks on 2.0 and even though the same links are used there in 2.0.15 both links bring you to the first new post. In 2.1 the recent block drops you on the first message on the page that holds the new post...
« Last Edit: March 26, 2019, 02:11:01 AM by @rjen »
Running TP1.6.3 on SMF2.0 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 RC2
Want to check what php version I am testing on? See: PHP Info

Offline Skb

  • Full Member
  • ***
  • Posts: 102
    • Metabolically Challenged
Re: The NEW Button
« Reply #3 on: March 27, 2019, 12:34:04 AM »
On this site if I click the NEW button in the Recent Posts block to the left, it takes me to the first unread post, which is how it should be.
www.diabetic.pub/forum
because every diabetic needs help.
SMF 2.1 RC1 / TP 1.6.2

Offline @rjen

  • Support Team
  • *
  • Posts: 1695
    • FJR-club Nederland
Re: The NEW Button
« Reply #4 on: March 27, 2019, 12:39:31 AM »
True, it is only not working correctly on 2.1.

This site is on 2.0.15
Running TP1.6.3 on SMF2.0 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 RC2
Want to check what php version I am testing on? See: PHP Info

Offline @rjen

  • Support Team
  • *
  • Posts: 1695
    • FJR-club Nederland
Re: The NEW Button
« Reply #5 on: March 27, 2019, 03:55:55 AM »
Caused by changes in SMF's SSI.php

function ssi_recentTopics

The field id_msg is populated differently in 2.1 then in 2.0...
No idea if this is something that is a bug or intentional...
Running TP1.6.3 on SMF2.0 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 RC2
Want to check what php version I am testing on? See: PHP Info

Offline tino

  • Developer
  • *
  • Posts: 1573
Re: The NEW Button
« Reply #6 on: March 27, 2019, 01:01:25 PM »
If it’s in SSI.php please raise it with SMF. It’s not a issue with TinyPortal.

Offline @rjen

  • Support Team
  • *
  • Posts: 1695
    • FJR-club Nederland
Re: The NEW Button
« Reply #7 on: March 27, 2019, 01:07:41 PM »
It must be: we are using the href link generated by the SSI function.

It seems to be different with 2.1 from 2.0.
Can’t put my finger on the exact cause though ..,
Running TP1.6.3 on SMF2.0 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 RC2
Want to check what php version I am testing on? See: PHP Info

Offline @rjen

  • Support Team
  • *
  • Posts: 1695
    • FJR-club Nederland
Re: The NEW Button
« Reply #8 on: March 27, 2019, 03:34:52 PM »
Running TP1.6.3 on SMF2.0 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 RC2
Want to check what php version I am testing on? See: PHP Info

Offline lurkalot

  • Administrator
  • *
  • Posts: 6074
    • Camera Craniums
Re: The NEW Button
« Reply #9 on: March 29, 2019, 01:17:50 AM »
I assume this is related to this problem? https://github.com/SimpleMachines/SMF2.1/pull/5478/files

Though it's scheduled for RC3