MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Help on Development » Improvement Suggestions


Improvement Suggestions You have an idea how MediaPortal could be improved? Post it in here.

Reply
 
Thread Tools Display Modes
Old 2006-07-31, 00:41   #1 (permalink)
von
Portal Member
 
von's Avatar
 
Join Date: Jul 2006
Location: Iowa, USA
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts


Default Configuration Feature Request



First off, I just downloaded MediaPortal yesterday, and it's absolutely awesome. Amazing features, pretty intuative interface, and opensource!!! Great job on an a sweet product. Being a new user, I do have a request or two...

1) Can the configuration be different for individual users (tied to their profile)??? I made a limited account on my PC just to run MediaPortal. I would like to be able to have it startup on login and start fullscreen. I still use media portal occasionally on my normal user account, but I don't want that one to startup fullscreen, or when I login. Can these configuration settings be stored in separate files for each user? That way multiusers could have different paths for file, use different skins, etc.

2) It seems that when you switch to VideoOverlay/Background thingy, it automatically goes to "Stretch" aspect ratio. Can it be defaulted to use "normal" aspect ratio??? I like navigating around and watching, but the stretching of non 4:3 movies is a little annoying.


Again, I love this thing!!! Thanks for all the work that must has gone into it.

von is offline   Reply With Quote
Old 2006-07-31, 01:34   #2 (permalink)
Portal Member
 
zombiepig's Avatar
 
Join Date: Mar 2005
Location: Melb, Aus
Age: 27
Posts: 408
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default Re: Configuration Feature Request

Quote:
Originally Posted by von

1) Can the configuration be different for individual users (tied to their profile)??? I made a limited account on my PC just to run MediaPortal. I would like to be able to have it startup on login and start fullscreen. I still use media portal occasionally on my normal user account, but I don't want that one to startup fullscreen, or when I login. Can these configuration settings be stored in separate files for each user? That way multiusers could have different paths for file, use different skins, etc.
it's not supported at the moment - but you could do it in a workaround way. you could rename the mediaportal.xml file something like user1.xml, then make a little bat file which copies user1.xml to mediaportal.xml, and place that in the startup group for each user. same thing with automatically starting mp for just one user - put a shortcut to mediaportal in the startup group for that user.
if i've lost you, let me know and i'll flesh it out a little
__________________
my ongoing htpc project!

my music taste last week was:
zombiepig is offline   Reply With Quote
Old 2006-07-31, 02:12   #3 (permalink)
von
Portal Member
 
von's Avatar
 
Join Date: Jul 2006
Location: Iowa, USA
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts


Default

That sound's like a possibility. I cuold use help with the code though. Also, can a user make a bat to run at logout? That way it could pull the MediaPortal.xml file and write it over the users one, basically saving any changes made during that session...

I would appreciate the help if you have time. I'm not all that experienced at writing code, but I can sometimes figure it out after many failed attempts.
von is offline   Reply With Quote
Old 2006-07-31, 02:31   #4 (permalink)
Super Moderator
 
Join Date: Feb 2005
Location: Melbourne
Posts: 1,936
Thanks: 67
Thanked 28 Times in 28 Posts

Country:

My System

Send a message via ICQ to Marcusb
Default

You can't simply run a script at logout, but you can include in your batch file a way to change the file when MP ends. You can also get MP to run a script at exit, which may be the best solution.

Also, if you plan on running MP as a limited user (IE not admin) then you'll need to modify the rights to a few files and registry keys. MP uses the MS Stream Buffer aproach (for the moment at least) and these files are classed as system files by Windows.

There are a few threads on this, so a quick seartch for terms like admin sbe and rights should turn up the answers you need.
Marcusb is offline   Reply With Quote
Old 2006-07-31, 02:58   #5 (permalink)
Portal Member
 
zombiepig's Avatar
 
Join Date: Mar 2005
Location: Melb, Aus
Age: 27
Posts: 408
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

actually there is a way to run a script on logout, but it involves fiddling around with group policy and registry keys. give me some time to clear some of my work backlog and i'll try to write it up for you!
__________________
my ongoing htpc project!

my music taste last week was:
zombiepig is offline   Reply With Quote
Old 2006-07-31, 03:17   #6 (permalink)
von
Portal Member
 
von's Avatar
 
Join Date: Jul 2006
Location: Iowa, USA
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Thanks Werewolf, I've been trying to figure out the login bat file. I thought the following might work, but it just runs and I have to break it. I will be running these scripts as both an admin and a limited user, so I don't know if I want the user writing to the registry. Thanks for helping me though, and I love you LCD on the wall. My wife would kill me if I tried to do that, but then fall in love with it after it's done.

Code:
MediaPortalMove.bat
move c:\Documents and Settings\HP_Owner\My Documents\MediaPortal.xml c:\Program Files\Team MediaPortal\MediaPortal\MediaPortal.xml
What would also be cool if one of the MP powerdown options was to logout the current user? That would fit in nicely with the restart, shutdown, sleep, hibernate...
von is offline   Reply With Quote
Old 2006-07-31, 04:54   #7 (permalink)
von
Portal Member
 
von's Avatar
 
Join Date: Jul 2006
Location: Iowa, USA
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts


Default



I put the following bat script in each of my user's startup folders. This will take "their" configuration file and write it over the current one in the folder. It will make the change and start MP with "their" settings.


Code:
copy "c:\Documents and Settings\%username%\My Documents\MediaPortal.xml" "c:\Program Files\Team MediaPortal\MediaPortal\MediaPortal.xml"
"c:\Program Files\Team MediaPortal\MediaPortal\MediaPortal.exe"

Now, I need to figure out how to get MP to run the following script when MP exits, which would essentially save any changes made to "their" settings while they were running MP, to the file in "their" directory.


Code:
copy "c:\Program Files\Team MediaPortal\MediaPortal\MediaPortal.xml" "c:\Documents and Settings\%username%\My Documents\MediaPortal.xml"

MarcusB, I know you said there's a way to have MP run a script when it exits, but I can't find it in the forums anywhere. I'd love some help, and I'm sorry if I'm wasting anyones time.

von
von is offline   Reply With Quote
Old 2006-07-31, 05:04   #8 (permalink)
Portal Member
 
zombiepig's Avatar
 
Join Date: Mar 2005
Location: Melb, Aus
Age: 27
Posts: 408
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

try this - should work

login.bat
Code:
copy "%userprofile%\my documents\mediaportal.xml" "c:\program files\team mediaportal\mediaportal\mediaportal.xml" /y
logout.bat
Code:
copy "c:\program files\team mediaportal\mediaportal\mediaportal.xml" "%userprofile%\my documents\mediaportal.xml"  /y
if you want the database to be different for each user (ie, different music tracks, videos, recordings, etc), you'd need to do this:
first, make a folder under each user's my documents called 'mp database'.

then the login.bat would be:
Code:
copy "%userprofile%\my documents\mediaportal.xml" "c:\program files\team mediaportal\mediaportal\mediaportal.xml" /y
copy "%userprofile%\my documents\mp database\*.*" "c:\program files\team mediaportal\mediaportal\database" /y
logout.bat
Code:
copy "c:\program files\team mediaportal\mediaportal\mediaportal.xml" "%userprofile%\my documents\mediaportal.xml"  /y
copy "c:\program files\team mediaportal\mediaportal\database\*.*" "%userprofile%\my documents\mp database" /y

as for getting the scripts to run on logon/logoff, the following link should tell you all you need to know!
http://www.microsoft.com/resources/d....mspx?mfr=true
(go start -> run -> "gpedit.msc" to open group policy editor). You'll probably need to reboot to get the group policy changes to take effect.

and as marcusb said, if you want to run mp as a limited user you'll need to do a bit of tweaking of security permissions

thanks for the compliment on the lcd setup i'm pretty lucky in that my wife basically gives me free range to 'renovate' whatever i want
__________________
my ongoing htpc project!

my music taste last week was:
zombiepig is offline   Reply With Quote
Old 2006-07-31, 05:28   #9 (permalink)
von
Portal Member
 
von's Avatar
 
Join Date: Jul 2006
Location: Iowa, USA
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Thanks man, but I would still like to see if I can go the route of having MP run the script on exit. Then I shouldn't have to worry about group policy's and stuff. I'm running Windows XP home, and it was nice enough to inform me that those kind of options aren't available unless I have pro.

I've haven't had any real problems at all running MP as a limited user.?.... After installing it as admin and creating a limited account, when I first tried to run it, it seemed very confused and went looking for the msi file from install. I just put that in the directory temporarily and told it were it was, and now it works like a charm.

I also moved the bat file to the \Program Files\Team MediaPortal\ folder. When I launched MP with the bat script, it was dumping the logs in the bat's current directory. This way I won't get the logs showing up outside of their normal directory. Then I just added shortcuts to this file in my user's startup folders. I also added in an IF statement at the bottom to determine the user. That way it will still copy over the newly logged in users settings, but only launch MP, if it's my limited account. Normal users will just get their settings moved and can then open it whenever they may need it.

Code:
copy "c:\Documents and Settings\%username%\My Documents\MediaPortal.xml" "c:\Program Files\Team MediaPortal\MediaPortal\MediaPortal.xml"
if "%username%"="MediaPortal" "c:\Program Files\Team MediaPortal\MediaPortal\MediaPortal.exe"
[/code]
von is offline   Reply With Quote
Old 2006-07-31, 06:36   #10 (permalink)
von
Portal Member
 
von's Avatar
 
Join Date: Jul 2006
Location: Iowa, USA
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts


Default

:!: Should be "==" vice "=" in the IF statement. That's what happens when I post something before actually running it.
von is offline   Reply With Quote
Reply

Bookmarks

Tags
configuration, feature, request

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Feature Request: Play trailer for a movie file Bitkeeper Improvement Suggestions 11 2006-03-13 18:17
Feature request - shut down via EPG vlad2902 Improvement Suggestions 2 2006-02-05 01:35
MP-PVRX Host Server Plugin Niall Plugins 22 2005-09-16 09:38
Feature request from the Mrs.... dman_lfc Improvement Suggestions 17 2004-11-25 10:28
Feature Request: External Program Interface and HDTV suppor Anonymous Improvement Suggestions 0 2004-06-27 09:27


All times are GMT +1. The time now is 16:34.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden