Using Subsonic in Joomla - Separate the flash player?

Need help? Post your questions here.

Moderator: moderators

Using Subsonic in Joomla - Separate the flash player?

Postby braddyo » Sun Nov 18, 2007 3:19 am

I'm setting up a family website using Joomla. I'm a total beginner, so I'll just try to say what I want.

I would like to have subsonic wrapped in the Joomla site, so that it is accessible while still maintaining the consistent look of the website.

Ideally, the users would be able to login, access the Subsonic site (without having to log in with separate credentials), set up their own unique playlist (based on their IP), and stream music.

This can be done easily through wrapping the subsonic URL. What I would like, though, is to have the flash player located at the bottom of the page in the footer, wrapped all the same, but in a separate frame. Is that at all possible? To reference the flash player and not include the flash player (or playlist editor) in the main window? :?: :?:
User avatar
braddyo
 
Posts: 97
Joined: Mon Oct 29, 2007 10:27 pm
Location: UT

Postby braddyo » Tue Nov 20, 2007 12:04 am

Joomla has a feature called a wrapper, so that you can wrap an external site in an iframe. The problem with subsonic is that it breaks out often. I've been having the URL http://yourhost/subsonic/j_acegi_securi ... me=checked wrapped but it breaks out, saying that the login credentials are invalid. It DOES work, for a little bit, but after returning after a little bit it breaks the iframe and takes over the entire page. Of course, I have a 'guest' user with password 'guest'.

Also, I would like to have the player/playlist detatched by default and come up in a new window when subsonic is opened. Is that possible?
User avatar
braddyo
 
Posts: 97
Joined: Mon Oct 29, 2007 10:27 pm
Location: UT

Postby sindre_mehus » Tue Nov 20, 2007 6:16 am

I'll investigate the problem you mention about invalid credentials.

As for your original post: The level of customization you're requesting is not supported "out-of-the-box", and would require modifying the source code on your end.

Having said that: I hope to implement a simple Flash-based Subsonic interface (with integrated player), which might be suitable for your setup.

Sindre :-)
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby braddyo » Wed Nov 21, 2007 9:18 am

Sindre,

Thanks for your response. I'm looking forward to the flash-based upgrade! If you're looking for anyone to test it, let me know. Thanks again for all you do.

Bradford
User avatar
braddyo
 
Posts: 97
Joined: Mon Oct 29, 2007 10:27 pm
Location: UT

Postby matthew » Wed Nov 21, 2007 7:08 pm

braddyo wrote:Sindre,

Thanks for your response. I'm looking forward to the flash-based upgrade! If you're looking for anyone to test it, let me know. Thanks again for all you do.

Bradford


Me too :)
matthew
 
Posts: 59
Joined: Thu Jan 25, 2007 9:59 pm
Location: USA - Glendora, Californina

Got it!

Postby willyho1 » Wed Jul 02, 2008 4:30 pm

I was wondering how to do this as well, because i have friends who'd like to access my Subsonic and i hate giving them an IP Address when i'd rather embed in a known URL.

ANYWAY...

In the webapps\subsonic\WEB-INF\jsp directory, find login.jsp and (after making a backup copy just in case) edit in wordpad, removing this bit o' code:

<script type="text/javascript">
if (window != window.top) {
top.location.href = location.href;
}
</script>

save that file, and Subsonic will not "break out" of your iframe!


will
willyho1
 
Posts: 4
Joined: Wed Feb 07, 2007 5:26 pm

Re: Got it!

Postby braddyo » Thu Sep 11, 2008 4:50 am

willyho1 wrote:save that file, and Subsonic will not "break out" of your iframe!
will


Thanks for your reply! I have given up on Joomla for my purpose and settled with Wordpress, which because of its relative simplicity and the needs of the application is much better. But, I'm having the same problem. I have a page with some html that has an iFrame using the Auto-Login url given by Sindre and some html below it.

In Firefox this works beautifully, and the iframe logs into Subsonic automatically.

In IE, the iframe breaks out without logging in. Entering the correct credentials allows the user to log in.

So, I followed your wonderful advice willyho1 and commented out that section of javascript. Now, in IE, it does not break out, however nor does it automatically log in. In fact, manual login doesn't work at all. Entering in credentials and clicking login refreshes the page, without an error, which leads me to assume it isn't an authentication issue.

I got an email from my brother leading me to believe the same behavior is evident in Safari.

What do y'all think?
User avatar
braddyo
 
Posts: 97
Joined: Mon Oct 29, 2007 10:27 pm
Location: UT


Return to Help

Who is online

Users browsing this forum: No registered users and 16 guests