home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Talk
Calling all MP New Zealanders (Both of you!!)
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mcraenz" data-source="post: 311081" data-attributes="member: 54136"><p>You'd need to make changes to code and re-compile. Quick and dirty patch, replace client1 and client2 with your client names:</p><p>[CODE]</p><p></p><p>Index: AdvancedCardAllocation.cs</p><p>===================================================================</p><p>--- AdvancedCardAllocation.cs (revision 20343)</p><p>+++ AdvancedCardAllocation.cs (working copy)</p><p>@@ -125,6 +125,13 @@</p><p> Log.Info("Controller: card:{0} type:{1} is disabled", cardId, tvcard.Type);</p><p> continue;</p><p> }</p><p>+ </p><p>+ if ((user.Name.ToLower() == "[I][COLOR="Red"]client1[/COLOR][/I]" || user.Name.ToLower() == "[I][COLOR="Red"]client2[/COLOR][/I]") && (cardId == 2 || cardId == 3))</p><p>+ {</p><p>+ //Don't use this card for this client.</p><p>+ Log.Info("Controller: card:{0} type:{1} is Not for this client", cardId, tvcard.Type);</p><p>+ continue;</p><p>+ }</p><p> </p><p> try</p><p> {</p><p></p><p>[/CODE]</p><p></p><p>Not sure when I can get around to writing a proper feature, and even then it has to be considered by the dev team which they probably won't want to do until after the release of version 1.0 since they are only doing bug fixes not new feature,</p></blockquote><p></p>
[QUOTE="mcraenz, post: 311081, member: 54136"] You'd need to make changes to code and re-compile. Quick and dirty patch, replace client1 and client2 with your client names: [CODE] Index: AdvancedCardAllocation.cs =================================================================== --- AdvancedCardAllocation.cs (revision 20343) +++ AdvancedCardAllocation.cs (working copy) @@ -125,6 +125,13 @@ Log.Info("Controller: card:{0} type:{1} is disabled", cardId, tvcard.Type); continue; } + + if ((user.Name.ToLower() == "[I][COLOR="Red"]client1[/COLOR][/I]" || user.Name.ToLower() == "[I][COLOR="Red"]client2[/COLOR][/I]") && (cardId == 2 || cardId == 3)) + { + //Don't use this card for this client. + Log.Info("Controller: card:{0} type:{1} is Not for this client", cardId, tvcard.Type); + continue; + } try { [/CODE] Not sure when I can get around to writing a proper feature, and even then it has to be considered by the dev team which they probably won't want to do until after the release of version 1.0 since they are only doing bug fixes not new feature, [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Talk
Calling all MP New Zealanders (Both of you!!)
Contact us
RSS
Top
Bottom