![]() |
|
[Mod Request / Request] View Lockdown - Printable Version +- XBMC Community Forum (http://forum.xbmc.org) +-- Forum: Help and Support (/forumdisplay.php?fid=33) +--- Forum: Skin Help and Support (/forumdisplay.php?fid=67) +---- Forum: Alaska (/forumdisplay.php?fid=126) +---- Thread: [Mod Request / Request] View Lockdown (/showthread.php?tid=69521) |
[Mod Request / Request] View Lockdown - DurhamDev - 2010-02-04 16:32 As Mr. Hitcher has requested no more requests in his 'to do' list thread, I think it's smart if we give him some vacation time - I know he's earned it. ![]() So, I'm putting this out to any enterprising modder out there who might be able to point me in the right direction. Everything looks FANTASTIC, and I was wondering if it's possible to request one single, yet globally effective change. Is it easy (feasible and acceptable) to put in a radio button that can 'lock out' the users' ability to change the specific views? (Or, if there's simple code that can be edited, I'm happy with doing it myself. I just don't know where to look!) I usually use the 'Poster Wrap' view for both Movies and TV Shows and (now) 'Panel' for Music, and would prefer if I could lock out the viewers' ability to change the view. I always add new movies, and would still like the ability to use the arrow buttons to change media information (Get Fanart, Get Thumb, etc.) but I think locking down the views would be awesome. Cheers! - mcborzu - 2010-02-04 17:28 This should work, giving you a setting to check/uncheck under Settings/Alaska/General: CustomSettings.xml, insert around line 211: PHP Code: <control type="radiobutton" id="108">Includes.xml, anywhere I put it at line 21: PHP Code: <include name="nomenu">MyVideoNav.xml, 2 steps Overwrite these lines, should be lines 52 and 116- Quote:<visible allowhiddenfocus="true">ControlGroup(7000).HasFocus</visible> With these lines: PHP Code: <include condition="!Skin.HasSetting(LockViews)">allowmenu</include>Optional...for files mode-MyVideo.xml: Overwrite these lines, should be line 29 and 76 Quote:<visible allowhiddenfocus="true">ControlGroup(7000).HasFocus</visible> With these lines: PHP Code: <include condition="!Skin.HasSetting(LockViews)">allowmenu</include>Forgot about music, MyMusicNav.xml Overwrite these lines, should be line 30 and 94 Quote:<visible allowhiddenfocus="true">ControlGroup(7000).HasFocus</visible> With these lines: PHP Code: <include condition="!Skin.HasSetting(LockViews)">allowmenu</include>****For Total Lockdown**** Add this to Includes.xml along with what else you added: Quote:<include name="allowmenu_7001"> DialogVideoInfo.xml Overwrite these lines, should be around lines 316 and 381: Quote:<visible allowhiddenfocus="true">ControlGroup(7001).HasFocus</visible> With these lines: Quote:<include condition="!Skin.HasSetting(LockViews)">allowmenu_7001</include> FileBrowser.xml Overwrite these lines, should be around lines 95 and 135: Quote:<visible allowhiddenfocus="true">ControlGroup(7001).HasFocus</visible> With these lines: Quote:<include condition="!Skin.HasSetting(LockViews)">allowmenu_7001</include> - DurhamDev - 2010-02-04 17:40 That's the second time you've helped me out with the code. Thanks a bunch! (You should really write a book.) - mcborzu - 2010-02-04 17:49 Instead of a book, how about a new skin ...Ronie and Hitch answer alot of my skinning questions so I like to help out in their forums.
- DurhamDev - 2010-02-04 17:52 mcborzu Wrote:Instead of a book, how about a new skin Hmm... I'm listening... ![]() Hey, I'm full of good ideas (in my own head, anyway) so if you need some for any new projects, let me know. I'm making a personal repository of any code you post. You know, for when I accidentally reload the skin and lose everything. LOL. Thanks again! - Weavus - 2010-02-04 23:37 mcborzu Wrote:This should work, giving you a setting to check/uncheck under Settings/Alaska/GeneralThanks very much, works very nicely. - DurhamDev - 2010-02-05 00:10 Weavus Wrote:Thanks very much, works very nicely. I haven't had a chance to make the changes yet - does it also lock out the ability to update thumbs and/or backdrops? (Just a minor irritation, mind you, I would love it if everything is locked down, except for my ability to update TV backdrops - I use portrait, and I know Alaska doesn't use the context menu for those.) - mcborzu - 2010-02-05 00:49 Can still change thumb/fanart, this only makes (7000), the options screen, not visible if setting is checked... - DurhamDev - 2010-02-05 15:32 mcborzu Wrote:Can still change thumb/fanart, this only makes (7000), the options screen, not visible if setting is checked... Damn I love this. Thanks again. Hitcher - if you read this thread, is this something you might consider including in the build itself? - TheDuffMan - 2010-02-05 18:56 Cheers for this. It's almost exactly what I had in mind. I wanted a way to lock down the possible options so those that are not familiar (kids, non-techies) don't get lost. I've added to your changes to also remove the ability to change thumbnails, fanart, etc, when on the info screen. I can post the changes if anyone's interested. I'd love to see this "Kids Mode" kind of feature included in the build Hitcher. I think Alaska works best because of its simplicity and would really be complimented by adding an option to make it really user friendly. |