TinyPortal

Development => Block Codes => Topic started by: njtweb on April 21, 2022, 12:33:15 PM

Title: Levgal block code question
Post by: njtweb on April 21, 2022, 12:33:15 PM
Hello, I'm testing out the levgal mod on the front panel block on my site index. It works as designed but I'd like to see if there is a way to add code to this php snippet to make it responsive when viewed on mobile. Currently, the title text does not scale down when viewed on handhelds. Thank you for any help in advance.


if (defined('LEVGAL_VERSION'))
{
// Displaying rows and columns of items. For example 1 row of 4 items would be $columns = 4; and $rows = 1;
$columns = 1;
$rows = 3;
LevGal_Portal_TinyPortal::getLatestItems($columns, $rows);
}


youthhockeyinfo(dot)com
Title: Re: Levgal block code question
Post by: @rjen on April 21, 2022, 01:49:08 PM
Seriously, I have no clue what you expect us to do...

You have a mod in a block and the mod is not responsive: that is not something we can fix with TinyPortal.

I am personally not familiar with Levgal at all, and the code you are posting does not mean anything from a layout perspective. It just call some other mod in a block. I for one cannot help you with this...

Perhaps Lurkalot has any idea what you can do, but that is outside of TinyPortal support imo...
Title: Re: Levgal block code question
Post by: njtweb on April 21, 2022, 01:52:33 PM
Feel free to delete, I thought the block code that is enabled in TP is related, apparently not. Sorry for the inquiry.
Title: Re: Levgal block code question
Post by: @rjen on April 21, 2022, 01:56:13 PM
Is that the full blockcode you posted?
Title: Re: Levgal block code question
Post by: njtweb on April 21, 2022, 02:43:25 PM
Quote from: @rjen on April 21, 2022, 01:56:13 PM
Is that the full blockcode you posted?

That's all of it.
Title: Re: Levgal block code question
Post by: tino on April 21, 2022, 03:27:22 PM
It is all done in this function.

LevGal_Portal_TinyPortal::getLatestItems($columns, $rows);

Which is outside of TinyPortal, we just call it.
Title: Re: Levgal block code question
Post by: njtweb on April 21, 2022, 03:35:05 PM
Quote from: tino on April 21, 2022, 03:27:22 PM
It is all done in this function.

LevGal_Portal_TinyPortal::getLatestItems($columns, $rows);

Which is outside of TinyPortal, we just call it.

There's got to be some sort of lag with my hosting, like a full day before it catches up to changes I've made. The code is working now in the block on the front page. I made the changes around 11am est yesterday and just now they started working on both FF and Chrome on handheld. Sorry.