Play in website ...... HELP PLEASE

Need help? Post your questions here.

Moderator: moderators

Postby odiousfunk » Tue Jun 29, 2010 6:11 pm

I agree... Why don't you wrap it up and present it. :wink:

Let me know if you need any input.
odiousfunk
 
Posts: 12
Joined: Tue Mar 09, 2010 5:58 pm
Location: ADK Mountains, USA

Postby woohah » Tue Jun 29, 2010 6:53 pm

Didn't you see the fine print. I clearly put: Not it!

:)
woohah
 
Posts: 10
Joined: Tue Sep 22, 2009 1:12 pm

Postby theacoustician » Thu Nov 18, 2010 8:05 pm

I'd like to say thank you to all who posted in this thread. It's been a big help to me so far.

I was able to get the login dialog embedded into an iframe in index.html. I was able to keep the login iframe from taking over the whole screen. This is good so far. What happens next is what I'd like to fix. After login, the interface is still locked into the iframe. It's entirely too small to be useful. If you hit log out, the iframe takes over the whole browser window. What I would like to have happen is once the user hits log in, the subsonic interface pops out of the iframe and takes over the whole browser window so it's usable. Once the user hits log out, it would take the user back to index.html with the login window tucked back into it's little iframe.

Anyone have any thoughts on how to do this?
theacoustician
 
Posts: 4
Joined: Thu Nov 18, 2010 7:56 pm

Postby odiousfunk » Sun Nov 21, 2010 12:56 am

theacoustician wrote:...What I would like to have happen is once the user hits log in, the subsonic interface pops out of the iframe and takes over the whole browser window so it's usable. Once the user hits log out, it would take the user back to index.html with the login window tucked back into it's little iframe.

Anyone have any thoughts on how to do this?


Why not simply have a login screen on your website which takes the guest to your full screen subsonic install and then modify the logout piece (can't recall where that is atm) to bring them back to your html where the iframe login screen is.

Maybe I am missing something.
odiousfunk
 
Posts: 12
Joined: Tue Mar 09, 2010 5:58 pm
Location: ADK Mountains, USA

Postby theacoustician » Sun Nov 21, 2010 5:05 am

Eh, that's exactly what I thought I was describing.

Anyhow, I just moved the bit of Javascript that made the login.jsp pop to the top into index.jsp and that worked perfectly. login.jsp stays put in it's iframe and after I log in, Subsonic goes full screen.

I'm still stuck on the logout part though. If anyone has any ideas on changing that or even what file I should be looking in, it would be most welcome.
theacoustician
 
Posts: 4
Joined: Thu Nov 18, 2010 7:56 pm

Postby theacoustician » Mon Nov 22, 2010 5:16 pm

I WIN!

I finally figured it out. If you'd like to have the logout redirect to someplace other than login.jsp, here's how you do it.

Open /WEB-INF/applicationContext-security.xml

Go down 22 lines in that file and you should see :

Code: Select all

    <bean id="logoutFilter" class="org.acegisecurity.ui.logout.LogoutFilter">
        <constructor-arg value="/login.view?logout"/>



That constructor-arg value is what the logout script will dump to. I have mine set for

Code: Select all
    <bean id="logoutFilter" class="org.acegisecurity.ui.logout.LogoutFilter">
        <constructor-arg value="http://mywebsitename.com/index.html"/>


But you can have it set for anything. Once you edit this file, you need to restart Subsonic for the changes to take effect. I hope this helps some of you and saves you from some beating your head into a desk like I did for several days until I figured this out.
theacoustician
 
Posts: 4
Joined: Thu Nov 18, 2010 7:56 pm

Re: Play in website ...... HELP PLEASE

Postby sonicpm » Thu Dec 11, 2014 11:27 am

Thanks everybody, this topic helped me a lot !
sonicpm
 
Posts: 2
Joined: Thu Dec 11, 2014 11:24 am

Previous

Return to Help

Who is online

Users browsing this forum: No registered users and 13 guests