Page 1 of 1

share links without use of subsonic.org

PostPosted: Sat Sep 01, 2012 8:29 pm
by pir8radio
i would like to be able to put my own domain name in the settings page instead of having to use XXXXXX.subsonic.org

It would be nice just to have an empty field that we could use for either "mydomain.com" or still be able to enter, "myname.subsonic.org" not quite sure why this restriction has been coded in?


Thanks!!!

Re: share links without use of subsonic.org

PostPosted: Sat Sep 01, 2012 10:55 pm
by GJ51
This has been requested before. Although the shortcuts generated are for the Subsonic.org address, you can still use any valid address to get to your site and get to the shortcut.

http://74.110.53.107:8088/subsonic/share/jNpkr

Re: share links without use of subsonic.org

PostPosted: Thu Sep 20, 2012 2:33 am
by pir8radio
i understand the links work.. . but when my users want to just click the share on facebook link its not automatic... i want them to be able to click SHARE ON FACEBOOK and be done... thanks for the input though.. well i would think the code to change this wouldnt be more than deleting the automatic addition of subsonic.org from the existing code... maybe only take a second... is there any reason users are forced to use subsonics redirect service? don't get me wrong i appreciate the ability to use subsonic resources.... but you know...

Re: share links without use of subsonic.org

PostPosted: Thu Sep 20, 2012 5:16 am
by GJ51
Use MadEvil's Madsonic Mashup Mod. It allows you to put your own URL into the Network settings. The mod is outstanding and very stable and easy to install now. Just like doing any Subsonic upgrade. I just did a standard Windows upgrade from ver 4.6 in just a couple minutes. It has great features and appears to be every bit as stable as the standard Subsonic release.

I've switch all my Subsonic sites to the Madsonic mod except one to keep as a baseline for comparison.

Send me a PM if you want to look at a live preview before you decide, but I think you'll really like it.

Re: share links without use of subsonic.org

PostPosted: Sat Sep 22, 2012 12:51 am
by pir8radio
i found a fix.... i just put "www" in the settings page, so the share link would be http://www.subsonic.org/share/XXXXX then i changed the jsp in the createShare.jsp anywhere there was ${model.playUrl} and replaced them with ${fn:replace(model.playUrl,'www.subsonic.org','somewebsite.com')} where somewebsite.com is my actual url. what that bit of code does is finds "www.subsonic.org" and replaces it with "somewebsite.com" so all of the share links will point to somewebsite.com/share/XXXXX . Now all of the share links point to the correct place... for anyone else looking to do this.. easy to do... i also changed the sharesettings.jsp so those links were correct.

Re: share links without use of subsonic.org

PostPosted: Sat Oct 27, 2012 9:01 pm
by manwithaplan
pir8radio kind sir,

I have modified the createshare.jsp just as you prescribe, but am not sure what exactly to change in sharesettings.jsp. Can you elaborate on that? Thanks much.

Re: share links without use of subsonic.org

PostPosted: Sat Oct 27, 2012 9:59 pm
by hakko
find /Library/Application\ Support/Subsonic/jetty/ -name '*jsp'

Re: share links without use of subsonic.org

PostPosted: Sat Oct 27, 2012 10:15 pm
by manwithaplan
hakko wrote:find /Library/Application\ Support/Subsonic/jetty/ -name '*jsp'


got it, yeah, I was being an idiot. I found all the jsp's now, all is well there. I've modified createshare.jsp but not quite sure what I should change in sharesettings.jsp. Thanks Hakko, much appreciated!

Re: share links without use of subsonic.org

PostPosted: Mon Nov 05, 2012 11:19 pm
by pir8radio
In the sharesettings.jsp page change the one instance of ${model.shareBaseUrl} to ${fn:replace(model.shareBaseUrl,'www.subsonic.org','somewebsite.com')} again where "somewebsite.com" is your own url.

Re: share links without use of subsonic.org

PostPosted: Tue Nov 06, 2012 12:38 pm
by manwithaplan
Thank you sir! Works perfectly. I love having my share links all work for my local domain like this. Absolutely perfect. Cheers!