TinyPortal

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

Title: Levgal block code question
Post by: njtweb on April 21, 2022, 05:33:15 AM
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.


Code: [Select]
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);
}

Code: [Select]
youthhockeyinfo(dot)com
Title: Re: Levgal block code question
Post by: @rjen on April 21, 2022, 06:49:08 AM
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, 06:52:33 AM
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, 06:56:13 AM
Is that the full blockcode you posted?
Title: Re: Levgal block code question
Post by: njtweb on April 21, 2022, 07:43:25 AM
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, 08:27:22 AM
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, 08:35:05 AM
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.