Better looking WebMP | Page 2

Discussion in 'MPExtended' started by Dragy, November 30, 2012.

  1. Dragy

    Dragy Portal Pro

    Joined:
    April 27, 2009
    Messages:
    778
    Likes Received:
    303
    Gender:
    Male
    Occupation:
    Student
    Ratings:
    +332 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Ah I see, I don't use that service, because I use IIS :) So I have to restart IIS.


     
    Last edited: December 1, 2012
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. valtam

    valtam Portal Pro

    Joined:
    March 27, 2010
    Messages:
    94
    Likes Received:
    6
    Ratings:
    +6 / 0
    Home Country:
    New Zealand New Zealand
    I look forward to your final, my screenshot doesn't look like yours but I'm happy to wait.
     
    Last edited: December 2, 2012
  4. Dragy

    Dragy Portal Pro

    Joined:
    April 27, 2009
    Messages:
    778
    Likes Received:
    303
    Gender:
    Male
    Occupation:
    Student
    Ratings:
    +332 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Maybe a hard refresh works? It doensn't look anything has changed in the HTML
    As I said, I didn't test it as a skin yet.
     
    Last edited: December 1, 2012
  5. valtam

    valtam Portal Pro

    Joined:
    March 27, 2010
    Messages:
    94
    Likes Received:
    6
    Ratings:
    +6 / 0
    Home Country:
    New Zealand New Zealand
    Yeh I did a hard refresh, cache clean etc, as I said I'm happy to wait, keep up the great work :)
     
    • Like Like x 1
  6. valtam

    valtam Portal Pro

    Joined:
    March 27, 2010
    Messages:
    94
    Likes Received:
    6
    Ratings:
    +6 / 0
    Home Country:
    New Zealand New Zealand
    A bit more digging shows a 404 error in the ISS logs, the properties of the images read:

    [​IMG]

    Security issue perhaps?[DOUBLEPOST=1354409135][/DOUBLEPOST]Yeh I can't seem to 'unblock' those 2 image files, all the others are fine.
     
  7. Oxan
    • Premium Supporter

    Oxan Retired Team Member

    Joined:
    August 29, 2009
    Messages:
    1,730
    Likes Received:
    1,024
    Gender:
    Male
    Ratings:
    +1,115 / 2
    Home Country:
    Netherlands Netherlands
    Oh, I forgot to tell that creating a skin is a bit more complicated if you also want to change images or the HTML.

    If you want to change images, you've to put a file named Web.config with the following content in your Content folder:
    Code (Text):
    1. <?xml version="1.0"?>
    2. <configuration>
    3.   <system.web>
    4.     <httpHandlers>
    5.       <add path="*" verb="*" type="System.Web.StaticFileHandler" />
    6.     </httpHandlers>
    7.   </system.web>
    8.  
    9.   <system.webServer>
    10.     <handlers>
    11.       <add name="ContentHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.StaticFileHandler" />
    12.     </handlers>
    13.   </system.webServer>
    14. </configuration>
    If you want to change the HTML (the .cshtml files), you've to put a file named Web.config with the following content in your Skin folder (e.g. Skins/BetterWebMP):
    Code (Text):
    1. <?xml version="1.0"?>
    2.  
    3. <configuration>
    4.   <configSections>
    5.     <sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
    6.       <section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
    7.       <section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
    8.     </sectionGroup>
    9.   </configSections>
    10.  
    11.   <system.web.webPages.razor>
    12.     <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    13.     <pages pageBaseType="System.Web.Mvc.WebViewPage">
    14.       <namespaces>
    15.         <add namespace="System.Web.Mvc" />
    16.         <add namespace="System.Web.Mvc.Ajax" />
    17.         <add namespace="System.Web.Mvc.Html" />
    18.         <add namespace="System.Web.Routing" />
    19.         <add namespace="MPExtended.Applications.WebMediaPortal.Models"/>
    20.         <add namespace="MPExtended.Applications.WebMediaPortal.Mvc"/>
    21.         <add namespace="MPExtended.Applications.WebMediaPortal.Strings"/>
    22.       </namespaces>
    23.     </pages>
    24.   </system.web.webPages.razor>
    25.  
    26.   <system.web>
    27.     <pages
    28.         validateRequest="false"
    29.         pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
    30.         pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
    31.         userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
    32.       <controls>
    33.         <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.Mvc" tagPrefix="mvc" />
    34.       </controls>
    35.     </pages>
    36.   </system.web>
    37. </configuration>
    Everything will be explained in the skinners guide, but I haven't had time for that yet ;)
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!