Disable Links to Songs?

Sukh
Sukh
Offline
0
Hi

Can anyone tell me how to disable a link to a song?

So I add artist, then I add a ablum and songs for this ablum. When you view the ablum you can click on the songs. Any way to disable clicking on the songs that sits on its own page?
Responses (10)
  • Accepted Answer

    Thursday, April 12 2012, 10:15 AM - #Permalink
    0
    I too would like this function. Am still searching the boards however for an answer and will report back.

    In addition, is it possible to use these song links to play on the album player above, as well as using the skip track feature on the JW player, or using the play symbol on the right hand side?

    Thanks in advance for any help.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, April 12 2012, 10:57 AM - #Permalink
    0
    For some reason the code isn't showing properly, try refering to default.php for the actual code. Apologies

    Progress!

    On lines 84-86;


    $song = $this->songs[$i];
    # $song_link = MusColHelper::routeSong($song->id);
    # $file_link = MusColHelper::create_file_link($song);


    I commented out the last two lines. Which prevents the redirect to the song page, instead redirecting the link to the homepage. Still searching for a way to actually remove the link altogether.

    But as mentioned, I'd like it to play the song instead. I assume that lies within the code at lines 95-103;


    id && $this->params->get('displayplayer')) || $this->params->get('displayplayer') == 2 ){ echo $song->player; } ?>
    filename != "" && $this->params->get('allowsongdownload')){
    if( $user->id || $this->params->get('allowsongdownload') == 2 ){ ?>

    JText::_("FILE_REGISTERED_USERS")));
    } ?>
    params->get('allowsongbuy') && $song->buy_link != ""){ ?>
    " title="" target="_blank">



    As this is the table column where the play button is found. Obviously we can eliminate some of those, such as the buy and download links, but I'm not sure what php calls the javascript to play the song...even if I did, I'm not sure how to adapt it to make the link play the song!

    Any assistance would be appreciated!
    The reply is currently minimized Show
  • Accepted Answer

    Friday, April 13 2012, 03:29 PM - #Permalink
    0
    I've found this;

    http://www.joomlamusicsolutions.com/en/forum/general-off-topic/how-to-delete-song-link.html#13363

    But that started promising, but the guy ran off cause he hadn't paid for it (tight bas....)

    And this;

    http://www.joomlamusicsolutions.com/en/forum/version-1-5/disable-song-list-clicking.html#2725

    Again though unsolved...and posted by the same guy that started this post!

    So any php gurus can help/explain what I can do to;

    1. Disable the link to the song page.
    2. Make the link play the song instead.

    I would give you a big hug.

    If not, a forum post explaining this would also be helpful!

    Regards,

    W38
    The reply is currently minimized Show
  • Accepted Answer

    Friday, April 13 2012, 04:22 PM - #Permalink
    0
    hello everybody,

    to disable the link: you are very close to it! you simply need to get ride of the [a] element (the html element, [a] means the hiperlink element)... that's all! you already found it!

    to make the link play the song instead is more complicated than taht because that link would depend on the POSITION of the song in the list.. not easily doable.
    The reply is currently minimized Show
  • Accepted Answer

    Sukh
    Sukh
    Offline
    Friday, April 13 2012, 06:01 PM - #Permalink
    0
    w38 wrote:
    On lines 84-86;


    $song = $this->songs[$i];
    # $song_link = MusColHelper::routeSong($song->id);
    # $file_link = MusColHelper::create_file_link($song);


    I commented out the last two lines. Which prevents the redirect to the song page, instead redirecting the link to the homepage. Still searching for a way to actually remove the link altogether.

    But as mentioned, I'd like it to play the song instead. I assume that lies within the code at lines 95-103;

    [code]


    Thanks for that, I commented out those two lines and then as germi said a few lines down I removed and the at the end of this line and it has worked :)
    The reply is currently minimized Show
  • Accepted Answer

    Monday, April 16 2012, 10:29 AM - #Permalink
    0
    Hi guys, still struggling where to find the sed the find option within dreamweaver and can't place the correct one, most of those a tags are for download songs or buy songs options.

    Secondly, Germi how complicated is it to make the link play the song instead? Without being a php programmer, I wouldn't know, but couldn't you just use the same code that is used for the play icon at the end of the row?

    Thanks for any help
    The reply is currently minimized Show
  • Accepted Answer

    Monday, April 16 2012, 02:02 PM - #Permalink
    0
    Excuse my idiocy, removed the link I just wasn't paying attention. Question still remains regarding getting the link it play instead...
    The reply is currently minimized Show
  • Accepted Answer

    Sukh
    Sukh
    Offline
    Monday, April 16 2012, 02:32 PM - #Permalink
    0
    Hi glad you got that sorted mate :)

    Seems my post missed the code aspect of things but when I previewed it before posting it was appearing in the preview...

    On the artists page it has the albums and songs tab do you know where the songs file is so that we can remove the html links on the songs from this tab as well?
    The reply is currently minimized Show
  • Accepted Answer

    Monday, April 16 2012, 02:49 PM - #Permalink
    0
    @w38 no I can't do that because the play link is created byt the PLUGIN (player), while the other one is built in into the component... I know from an external point of view can seem easy, just "copy paste", but it's not in this case...! :)
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, April 25 2012, 02:00 PM - #Permalink
    0
    Ok thanks germi!

    Appreciate the effort in you looking into my query though.

    Perhaps something for the future...thanks all the same!
    The reply is currently minimized Show
Your Reply