News: When asking for support, it helps us and you, if you read the Posting Guidelines

Login  |  Register
* *
TinyPortal on Twitter
Welcome, Guest. Please login or register.
Did you miss your activation email?
January 22, 2019, 04:11:19 PM

Login with username, password and session length

Recent

Members
  • Total Members: 3735
  • Latest: xMaster
Stats
  • Total Posts: 187126
  • Total Topics: 20629
  • Online Today: 49
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 1
Guests: 19
Total: 20

Author Topic: Articles problem  (Read 507 times)

0 Members and 1 Guest are viewing this topic.

Offline Skb

  • Jr. Member
  • **
  • Posts: 98
    • Metabolically Challenged
Articles problem
« on: January 10, 2019, 12:18:52 AM »
I'm using TP 1.5.0
I've been using the Front Panel / Front Page on the Forum. Initially, the Front Panel content had links to our Articles which were placed on our website (not forum).

Now, I've used the TP Articles feature and moved them to the forum. My Category is known as General Articles. I want only 1 Article to display at a time. If I use the display LinkTree option, the Category link is displayed there and when clicked it will show all the Articles together. If I disable the LinkTree option, only the Home page button shows in the LinkTree (which is fine) but it links to the displayed Article and not the Home page.

Am I missing some option ?   
« Last Edit: January 12, 2019, 06:31:07 AM by @rjen »
www.diabetic.pub/forum
because every diabetic needs help.
SMF 2.0.15 / TP 1.3R

Offline @rjen

  • Support Team
  • *
  • Posts: 1254
    • FJR-club Nederland
Re: Articles problem
« Reply #1 on: January 10, 2019, 12:58:33 AM »
I cannot understand what situation you are having. Can we see it on your forum?
Running TP1.6.1 on SMF2.0 at: www.fjr-club.nl

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

Offline Skb

  • Jr. Member
  • **
  • Posts: 98
    • Metabolically Challenged
Re: Articles problem
« Reply #2 on: January 10, 2019, 01:50:20 AM »
I hope the screen shot can explain better.
www.diabetic.pub/forum
because every diabetic needs help.
SMF 2.0.15 / TP 1.3R

Offline @rjen

  • Support Team
  • *
  • Posts: 1254
    • FJR-club Nederland
Re: Articles problem
« Reply #3 on: January 10, 2019, 02:17:45 AM »
As far as I can see you are not on the Home page, but on an articles pages...

The link is supposed to direct to the current page (which it does), disabling the setting to show the linktree on the article seems to just remove the 'path to the article', but does not change the destination of the remaining link.

I can see that this is confusing, but I am not sure if this is intended or not...
Running TP1.6.1 on SMF2.0 at: www.fjr-club.nl

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

Offline @rjen

  • Support Team
  • *
  • Posts: 1254
    • FJR-club Nederland
Re: Articles problem
« Reply #4 on: January 10, 2019, 02:25:12 AM »
Funny thing: just checked the code:

in 2.0 the remaining link still points to the article, in 2.1 (due to different approach using hooks) the remaining link points to /forum... (which may be not what you want, but that is the default link SMF creates)

So it is definitely something that is worth looking into, since it is not consistent...
Running TP1.6.1 on SMF2.0 at: www.fjr-club.nl

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

Offline Skb

  • Jr. Member
  • **
  • Posts: 98
    • Metabolically Challenged
Re: Articles problem
« Reply #5 on: January 10, 2019, 04:40:25 AM »
Funny thing: just checked the code:

in 2.0 the remaining link still points to the article, in 2.1 (due to different approach using hooks) the remaining link points to /forum...

Yes, that is what I want (as in 2.1). That the link to home (Diabetic Pub in our case) should go back to Home and not remain on the article page.

If you could suggest the code changes, I could look into that. 
www.diabetic.pub/forum
because every diabetic needs help.
SMF 2.0.15 / TP 1.3R

Offline @rjen

  • Support Team
  • *
  • Posts: 1254
    • FJR-club Nederland
Re: Articles problem
« Reply #6 on: January 10, 2019, 10:05:10 AM »
These code changes are a bit too complex for me atm. Maybe Tino can offer something...

Logged in GH: https://github.com/Tinyportal/TinyPortal/issues/282
Running TP1.6.1 on SMF2.0 at: www.fjr-club.nl

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

Offline tino

  • Developer
  • *
  • Posts: 1401
Re: Articles problem
« Reply #7 on: January 10, 2019, 02:18:59 PM »
If I disable the linktree I get no linktree? Which is what I would expect.

That's no link to the home page or anything. I have fixed the bug with SMF2.1 where it was adding the forum to the link tree unnecessarily.

Offline @rjen

  • Support Team
  • *
  • Posts: 1254
    • FJR-club Nederland
Re: Articles problem
« Reply #8 on: January 10, 2019, 02:28:00 PM »
What Exactly do you mean by that? The linktree itself is active but you set the linktree to not show for this specific article: when viewing the article the category and page info is removed from the linktree, but the forum name remains ... see the screenshot...
Running TP1.6.1 on SMF2.0 at: www.fjr-club.nl

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

Offline tino

  • Developer
  • *
  • Posts: 1401
Re: Articles problem
« Reply #9 on: January 10, 2019, 02:30:36 PM »
See the attachments. With the linktree setting enabled and then cleared, for SMF2.0