TinyPortal

Development => Block Codes => Topic started by: Dimitar12 on October 20, 2019, 11:42:09 AM

Title: Lost Classic Stats Blockcode
Post by: Dimitar12 on October 20, 2019, 11:42:09 AM
Hello,

I have lost the classic Stats Block code with Members, Stats, Users Online after installing the latest Tiny Portal.

Will appreciate if someone can provide it.

Kind regards,
Title: Re: Lost Classic Stats Blockcode
Post by: @rjen on October 20, 2019, 12:20:57 PM
What do you mean you 'lost' it? The Stats block is a standard block you can just select as a block type...

Or do you mean a different block?

Do you see the stats block on this site?
Title: Re: Lost Classic Stats Blockcode
Post by: lurkalot on October 20, 2019, 12:25:19 PM
Quote from: @rjen on October 20, 2019, 12:20:57 PM
What do you mean you 'lost' it? The Stats block is a standard block you can just select as a block type...

Or do you mean a different block?

Do you see the stats block on this site?

I was about to ask the same, not really sure what Dimitar12 is asking.  The stats block works fine, and so does stats from the user block.  I even went through the snippets just in case it was a custom block code.
Title: Re: Lost Classic Stats Blockcode
Post by: Dimitar12 on October 20, 2019, 12:49:18 PM
Hello,

Thank you. Yes, everything is working fine. :doh: :)

You can delete or close the topic.

Thanks,
Dimitar
Title: Re: Lost Classic Stats Blockcode
Post by: lurkalot on October 20, 2019, 01:41:51 PM
Thanks, marking solved. 

Still a bit confused as to what happened, but glad whatever it was is working.  ;)
Title: Re: Lost Classic Stats Blockcode
Post by: Dimitar12 on October 20, 2019, 05:29:22 PM
...well long story. Briefly I reinstalled a new SMF and latest TP as something went wrong when I installed 1.6.4 on my old forum. So I made a new installation and lost the old settings.

Strangely, I don't remember this in 1.6.3, but if a Block is added and "english" language is not ticked in the Edit Block the Block is not appearing. I don't know is this a bug or a feature I don't understand. 

Nevertheless Tiny Portal in an incredible software and I wish you luck in continuing developing it.  O0

https://iotbg.eu/index.php
Title: Re: Lost Classic Stats Blockcode
Post by: lurkalot on October 20, 2019, 05:51:32 PM
Ah, I see.  Then you must have "Use language visibility option for blocks?" set to yes in TP settings. that would be the reason for needing the language box ticked on the block. So it will only display for a particular language. 
Title: Re: Lost Classic Stats Blockcode
Post by: @rjen on October 20, 2019, 06:00:13 PM
That makes sense... there was a bug in versions prior to 164, that was fixed...

- fixed language visibility for blocks not working correctly

Indeed the setting that was mentioned did not work properly before. Now if you set the language visibility for blocks option you MUST set the language to show. If you uncheck the language visibility for blocks option the languages set in the block will not matter, the block will always show..