How to add a Trakt dashboard on BasicHome (1 Viewer)

ltfearme

Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,751
    7,196
    Sydney
    Home Country
    Australia Australia
    @catavolt , did you know know you can put a trakt dashboard on any skin window including BasicHome? The dashboard can include User Statistics, Trending Shows, Movies or User Activity. If you look at Titan Extended Two, you can see it has Trending Shows/Movies on the BasicHome dashboard.

    The windows you want to have a dashboard is defined in trakt.skinsettings.xml, it will let the plugin know when to update data based on where the user navigates to in your skin.
     

    Attachments

    • Home.jpg
      Home.jpg
      443.6 KB

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    14,428
    10,455
    Königstein (Taunus)
    Home Country
    Germany Germany
    The windows you want to have a dashboard is defined in trakt.skinsettings.xml, it will let the plugin know when to update data based on where the user navigates to in your skin.
    Could you send me the relevant xmls to see how it works? THX in advance ;)
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,751
    7,196
    Sydney
    Home Country
    Australia Australia
    • Thread starter
    • Moderator
    • #3
    Hey catavolt,

    I have uploaded an example for you of a dashboard on basichome (BasicHome.Trakt.xml is just an import to BasicHome.xml), it only displays trending shows and movies but you can also display activities and or statistics. The facade controls will only get populated based on your settings defined in Trakt.SkinSettings.xml e.g.

    Code:
      <activities>
        <!-- Control what GUI windows the dashboard should be displayed on -->
        <!-- Separate multiple window id's with pipe '|' separator -->
        <!-- e.g. <windows>35|87258</windows> for BasicHome.xml and Trakt.xml -->
        <windows>87258</windows>
        <!-- Facade Type e.g. Filmstrip, LargeIcons, SmallIcons, List -->
        <!-- set facade to None if not using a facade -->
        <facadetype>List</facadetype>
        <!-- Set the Max number of items to show in facade -->
        <!-- If you dont expect the user to scroll then set to the viewable amount -->
        <facademaxitems>45</facademaxitems>
        <!-- Number of properties to push to skin for Activity Stream -->
        <!-- Use this to set skin properties independent of the facade or selected item -->
        <!-- if not using properties, then set to 0 -->
        <propertiesmaxitems>0</propertiesmaxitems>
      </activities>

    This says load the activities only on Window 87258, if you want to display on BasicHome you can change the Windows property to 87258|35 which means both windows. You can add as many windows as you want.

    Code:
      <trending>
        <facadetype>Filmstrip</facadetype>
        <facademaxitems>5</facademaxitems>
        <propertiesmaxitems>5</propertiesmaxitems>
        <shows>
          <windows>87258</windows>
        </shows>
        <movies>
          <windows>87258</windows>
        </movies>
      </trending>
      <trending>
        <facadetype>Filmstrip</facadetype>
        <facademaxitems>3</facademaxitems>
        <propertiesmaxitems>3</propertiesmaxitems>
        <shows>
          <windows>35</windows>
        </shows>
        <movies>
          <windows>35</windows>
        </movies>
      </trending>
      <!-- User Statistics e.g. No of Episodes collected/watched -->
      <statistics>false</statistics>

    This example from Titans Trakt.SkinSettings.xml shows that we want to have Trending on 87258 and 35 (Basichome) but we want to load it a bit differently on BasicHome i.e. we want to show 5 items on window 87258 and 3 items on BasicHome. Also note that we define both movies and shows, we don't have to, we may only want to display movies e.g. you could show what movies are trending when entering any movie window.

    If we want the exact same details loaded then we can just have one Trending section e.g.

    Code:
      <trending>
        <facadetype>Filmstrip</facadetype>
        <facademaxitems>5</facademaxitems>
        <propertiesmaxitems>5</propertiesmaxitems>
        <shows>
           <windows>87258|35</windows>
        </shows>
        <movies>
          <windows>87258|35</windows>
        </movies>
      </trending>
      <!-- User Statistics e.g. No of Episodes collected/watched -->
      <statistics>false</statistics>

    Code:
      <statistics>false</statistics>

    Stats can also be displayed if you set to true, the following stats properties are available:

    Code:
    #Trakt.Statistics.Friends
    #Trakt.Statistics.Followers
    #Trakt.Statistics.Following
    #Trakt.Statistics.Shows.Collection
    #Trakt.Statistics.Shows.Watched
    #Trakt.Statistics.Shows.Shouts
    #Trakt.Statistics.Shows.Loved
    #Trakt.Statistics.Shows.Hated
    #Trakt.Statistics.Shows.Ratings
    #Trakt.Statistics.Episodes.Collection
    #Trakt.Statistics.Episodes.Loved
    #Trakt.Statistics.Episodes.Hated
    #Trakt.Statistics.Episodes.Ratings
    #Trakt.Statistics.Episodes.Shouts
    #Trakt.Statistics.Episodes.Plays
    #Trakt.Statistics.Episodes.WatchedUnique
    #Trakt.Statistics.Movies.Collection
    #Trakt.Statistics.Movies.Ratings
    #Trakt.Statistics.Movies.Loved
    #Trakt.Statistics.Movies.Hated
    #Trakt.Statistics.Movies.Shouts
    #Trakt.Statistics.Movies.Plays
    #Trakt.Statistics.Movies.WatchedUnique
    #Trakt.Statistics.Ratings.Total
    #Trakt.Statistics.Ratings.Distribution.1
    #Trakt.Statistics.Ratings.Distribution.2
    #Trakt.Statistics.Ratings.Distribution.3
    #Trakt.Statistics.Ratings.Distribution.4
    #Trakt.Statistics.Ratings.Distribution.5
    #Trakt.Statistics.Ratings.Distribution.6
    #Trakt.Statistics.Ratings.Distribution.7
    #Trakt.Statistics.Ratings.Distribution.8
    #Trakt.Statistics.Ratings.Distribution.9
    #Trakt.Statistics.Ratings.Distribution.10
     

    Attachments

    • BasicHome.Trakt.xml
      8.6 KB
    • Trakt.SkinSettings.xml
      2.9 KB
    Last edited:

    Users who are viewing this thread

    Top Bottom