WebMediaPortl x64 with IISExpress 10 (2 Viewers)

BCEly

Member
January 29, 2025
20
19
Home Country
Great Britain (UK) Great Britain (UK)
I can make a separate repository for the skin and you can make a PR for other people.
I'm not sure I have the required skills for that. I'm happy to tinker with this skin and try to get it working as intended but I'm unable to find any documentation about developing skins other than the very simple page here...


There's nothing that actually explains the 'Model' or the 'ViewBag' etc

I'd just be fumbling in the dark!
 

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    16,104
    11,192
    Kyiv
    Home Country
    Ukraine Ukraine
    I'd just be fumbling in the dark!
    Well, I'm in the same situation as you. I looked at all the skins that exist and tried to do it by analogy, Visual Studio helped a little, Google a little.
    That's the one I took and had to modify as per my previous posts so there isn't a newer one then!
    After I compiled the x64 version, that version of the skin worked for me. But I didn't check it much.
     

    BCEly

    Member
    January 29, 2025
    20
    19
    Home Country
    Great Britain (UK) Great Britain (UK)
    Well, I'm in the same situation as you. I looked at all the skins that exist and tried to do it by analogy, Visual Studio helped a little, Google a little.

    After I compiled the x64 version, that version of the skin worked for me. But I didn't check it much.
    I think it's a JQuery / Bootleg 2.3.2 issue - when the href target is '#'.

    I have made a change to the Recording\Details page so that the duration is actually correct. As stands in .255, it reports the mins but ignores the hours so a show that is 1 hour, 15 mins only shows as 15 mins - With my new code I take the Unix Timestamps of the start and end and calculate the minutes correctly.

    Code was;
    C#:
    <dt>Duration:</dt>
    <dd>@(String.Format("{0:mm}", (Model.EndTime - Model.StartTime))) min.</dd>

    but it's now...

    C#:
    @{
        DateTimeOffset dtos = new DateTimeOffset(Model.StartTime);
        DateTimeOffset dtoe = new DateTimeOffset(Model.EndTime);
        var mins = (dtoe.ToUnixTimeSeconds() - dtos.ToUnixTimeSeconds()) / 60;
    }         
    <dt>Duration:</dt>         
    @if (mins == 1)
    {
        <dd>@mins min</dd>
    }
    else
    {
        <dd>@mins mins</dd>
    }

    I've removed the button group on the Status page which change the 'Refresh Rate' as I felt it wasn't really something I needed.

    Finally, I've Changed the 'Expand Groups' button on the Recordings page so it toggles between 'Expand Groups' and 'Collapse Groups' when active/deactive.

    Code was;

    JavaScript:
    $('#groupbutton').click(function() {
        //wordt uitgezet
        if($(this).hasClass('active')) {
            $('#grouplist ul.group').hide();
            $('#grouplist li').removeClass("open");
        }else {
            $('#grouplist ul.group').fadeIn();
            $('#grouplist li').addClass("open");
            forceImageLoading('#grouplist ul.group');
        }
    });

    but it's now...

    JavaScript:
    $('#groupbutton').click(function() {
        //wordt uitgezet
        if($(this).hasClass('active')) {
            $(this).html('Expand Groups');
            $('#grouplist ul.group').hide();
            $('#grouplist li').removeClass('open');
        } else {
            $(this).html('Collapse Groups');
            $('#grouplist ul.group').fadeIn();
            $('#grouplist li').addClass('open');
            forceImageLoading('#grouplist ul.group');
        }
    });
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,104
    11,192
    Kyiv
    Home Country
    Ukraine Ukraine
    I'm not sure I have the required skills for that.
    You can always publish files here on the forum, if there are many changes and there is interest from other users, I will make a repository and I will be able to merge your changes into it. But when you make changes, it is better to also take a screenshot so that people understand what is happening.
     

    BCEly

    Member
    January 29, 2025
    20
    19
    Home Country
    Great Britain (UK) Great Britain (UK)
    You can always publish files here on the forum, if there are many changes and there is interest from other users, I will make a repository and I will be able to merge your changes into it. But when you make changes, it is better to also take a screenshot so that people understand what is happening.
    I’ll bear that in mind. I kinda have the skin where I want it now as I only use it for TV Recordings as everything else is done thru Plex.

    I’ve mainly for remotely setting up TV Recordings when away from home.
     

    Users who are viewing this thread

    Top Bottom