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?
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
0I 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. -
Accepted Answer
0For 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! -
Accepted Answer
0I'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 -
Accepted Answer
0hello 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. -
Accepted Answer
0w38 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 -
Accepted Answer
0Hi 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 -
Accepted Answer
-
Accepted Answer
0Hi 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? -
Accepted Answer
-
Accepted Answer
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »