TinyPortal

Development => Support => Topic started by: Wichtlmex on May 29, 2019, 09:38:34 PM

Title: Single Article in Block does not show on Frontpanel, Title is showin
Post by: Wichtlmex on May 29, 2019, 09:38:34 PM
Hi,
fortunately I am getting closer to some basic knowledge, but again some inexplainable happens:
I try to show a block with an article inside.
The block type = Single Article

The article inside is this one:
http://www.ecotec2000.de/forum/index.php?page=coro-novedades (http://www.ecotec2000.de/forum/index.php?page=coro-novedades)

But on the HOME page you can only see the title of that block "Single Article Block Test - no article only title shows up!" (language = Emglish) but not the article.

It took me a few hours already trying things but I could not find any problem in the settings.

Refards
Michael
Title: Re: Single Article in Block does not show on Frontpanel, Title is showin
Post by: @rjen on May 29, 2019, 09:55:59 PM
The article is showing fine on the frontpage...
Title: Re: Single Article in Block does not show on Frontpanel, Title is showin
Post by: Wichtlmex on May 30, 2019, 11:48:54 AM
Hmmm... theer are several articles showing up under five different categories. But the one you show, is not the article I linked in my post.
There is an article which is showing up as an article quite well (category "enCanto info", article "proximas fechas de ensayo"), but the article does not show inside a block assigned to the front panel. The block looks fine in the editor, but on the "frontpanel only"-frontpage only the title is appearing "Single Article Block Test - no article only title shows up!" not the contents.
Title: Re: Single Article in Block does not show on Frontpanel, Title is showin
Post by: @rjen on May 30, 2019, 12:03:04 PM
As I guest I guess I cannot see the block you are working with, hence I cannot help you...

Title: Re: Single Article in Block does not show on Frontpanel, Title is showin
Post by: @rjen on May 30, 2019, 12:08:47 PM
Hmm, you whole layout looks funky tbh... any chance you can give me admin access to that test site, so I can check the settings?
Title: Re: Single Article in Block does not show on Frontpanel, Title is showin
Post by: Wichtlmex on May 31, 2019, 06:12:08 AM
Hi @rjen: I sent the access data by PM.
Meanwhile I will not do any changes,
Title: Re: Single Article in Block does not show on Frontpanel, Title is showin
Post by: @rjen on May 31, 2019, 07:20:42 AM
Ok, I had a look in the site and managed to fix it.
I also managed to reproduce it in my test site using 2.0.15...

It looks like you stumbled across a bug that was never reported before  O0

Problem: creating a new block with a single article in the frontpanel, some settings are not initialized, causing the articlenot to show in the block.

Workaround: create the block in another panel first, then move it to the front panel...

WE'll log this to be fixed in a next release...

What did I do:
Checked out some settings on blocks and articles, and to be honest found nothing really wrong. What I did notice was that somehow the article in question did not have an author set (it stated author ID '0') that is something I have not seen before. Did you manually set it to 0?

Then I moved the block to a side panel to test: block moved, then it was not showing at all, because there are no page assignments (not needed when creating a front page block), I then edited the block to show on all pages and it showed up fine! I then moved the block back to the front panel and the block is fine now...

Note: I noticed you set your frontpage to show 'Frontpanel only'. Given your other question about showing all articles I changed it to 'Only Articles': the frontpage now shows the frontpanel first, then all articles...
Title: Re: Single Article in Block does not show on Frontpanel, Title is showin
Post by: @rjen on May 31, 2019, 07:25:13 AM
By the way: you are on TP 1.6.2 still, recommend to update to 1.6.3, it has some layout fixes for SMF2.1...
Title: Re: Single Article in Block does not show on Frontpanel, Title is showin
Post by: lurkalot on May 31, 2019, 07:32:14 AM
Quote from: @rjen on May 31, 2019, 07:20:42 AM
Ok, I had a look in the site and managed to fix it.
I also managed to reproduce it in my test site using 2.0.15...

It looks like you stumbled across a bug that was never reported before  O0

Problem: creating a new block with a single article in the frontpanel, some settings are not initialized, causing the articlenot to show in the block.

Workaround: create the block in another panel first, then move it to the front panel...

WE'll log this to be fixed in a next release...


Nice catch.  I have to be honest and say I've not seen this happen before either, but as more and more users use TP in different ways it's bound to turn up a few oddities.  Glad you found a workaround for it too.  ;)
Title: Re: Single Article in Block does not show on Frontpanel, Title is showin
Post by: Wichtlmex on May 31, 2019, 07:44:30 AM
Thanks for you taking so much time.... it was funny seeing you working around my page online!

>It looks like you stumbled across a bug that was never reported before<

I am always happy, when the error is not located in front of the screen, but behind ;-)

There are some leftovers I will have to fix, but this is not any problem.

>Workaround: create the block in another panel first, then move it to the front panel...<

Fine.... I will take care of it.

>Checked out some settings on blocks and articles, and to be honest found nothing really wrong. What I did notice was that somehow the article in question did not have an author set (it stated author ID '0') that is something I have not seen before. Did you manually set it to 0?<

I don't remember ever having touched that setting.... I will keep an eye on that.

>I noticed you set your frontpage to show 'Frontpanel only'. Given your other question about showing all articles I changed it to 'Only Articles'<

I saw that, but I was just asking about that.... it is not helping me because it is tricky to sort articles then. Therefor my solution would be using only blocks.

Thanks for the hint to update to 1.6.3 ..... as this is a running system, I was hoping to do a common updare together with SMF 2.1 ;-) but I will follow your recommendation.

Thanks again a lot!

Michael



Title: Re: Single Article in Block does not show on Frontpanel, Title is showin
Post by: @rjen on May 31, 2019, 07:49:10 AM
An upgrade for Tinyportal is very simple:

1. Upload the new package
2. Uninstall the old one (do NOT delete existing data)
3. Install the new one

An everything is fine...

Updating from RC1 to RC2... not so simple!
You will have copy the whole new source to your forum directories and run upgrade.php

Then you will have to reinstall TinyPortal (your TinyPortal content wil be fine though)
Title: Re: Single Article in Block does not show on Frontpanel, Title is showin
Post by: @rjen on May 31, 2019, 08:45:19 AM
Just a heads up: I have trying to reproduce the issue and solution in my testsite, and I am not sure that my 'workaround' will consistently work (it does not for me)...
Title: Re: Single Article in Block does not show on Frontpanel, Title is showin
Post by: Wichtlmex on May 31, 2019, 01:51:53 PM
>Updating from RC1 to RC2... not so simple!

I prefer waiting for the final update and stick to RC1 meanwhile.

I just updated to TP 1.6.3 -> Really very easy to do!


regards
Michael




Title: Re: Single Article in Block does not show on Frontpanel, Title is showin
Post by: Wichtlmex on May 31, 2019, 04:02:41 PM
Quote from: @rjen on May 31, 2019, 08:45:19 AM
Just a heads up: I have trying to reproduce the issue and solution in my testsite, and I am not sure that my 'workaround' will consistently work (it does not for me)...

It does not for me either :-(
I tidied up some leftovers from you (showing the article on top panel also) and can confirm: The workaround does not work for me anymore! Same problem as experienced before !
Title: Re: Single Article in Block does not show on Frontpanel, Title is showin
Post by: @rjen on May 31, 2019, 04:17:56 PM
Quite frankly I do not see why you want to use blocks to show articles on the frontpage. The sorting can be addressed easily with the position numbers.

If you really insist on putting every article in a block You can consider using the Upper or lower panelinstead of the frontpanel. That will work. You just need to flag the blocks in the settings to show only on the frontpage.
Title: Re: Single Article in Block does not show on Frontpanel, Title is showin
Post by: Wichtlmex on May 31, 2019, 07:49:01 PM
Exactly thay is what I am doing right now. The Article Sorting on the Frontpage is not really helpful e.g. if different with less knowledge are working on the WEB page. Sorting really is not useful if you want to arrange the articles however you like to.
Now I am building individual article blocks  on the upper panel. Works good enough for me.