How to remove Songs from view?

Sukh
Sukh
Offline
0
Hi

I am using the website as a way to show artists albums / list song names. I have managed to on the album view page to remove the link to the songs. However they appear as a tab on the artists page. Anyway I can hack the code to remove the songs tab and can anyone point me to the correct file?

I would also like to remove the ability to upload songs via the add albums function can anyone point me to the correct file to get this done as well? As I dont want users to stream music I wont to disable the upload function but I am happy for them to add albums, tracks and artists.

I have hidden the playing of music on the site and it contains no music files but b4 I open this section to the public I just want to disable the music uploading b4 my server gets swamped with file uploads only I can view.

Thanks for any help.
Responses (11)
  • Accepted Answer

    Tuesday, September 18 2012, 11:26 AM - #Permalink
    0
    the file to remove the songs tab is in helpers/helpers.php. search for function artist_tabs()

    the album frontend form file is: /views/album/tmpl/form.php. there you can hide the songs part.
    The reply is currently minimized Show
  • Accepted Answer

    Sukh
    Sukh
    Offline
    Thursday, September 20 2012, 08:25 PM - #Permalink
    0
    Hi

    I could not find artist_tabs() in that file..

    Perhaps a way to remove the links to the songs? I have removed it from the albums page thanks to yours and another members help but I totally just want to remove any links going onto songs pages.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, September 21 2012, 03:02 PM - #Permalink
    0
    you haven't found that function? that is not possible, that function is in that file! what version of Music Collection are you using?
    The reply is currently minimized Show
  • Accepted Answer

    Sukh
    Sukh
    Offline
    Saturday, September 22 2012, 11:51 AM - #Permalink
    0
    Hi

    I have installed version 2.3.0 so going in via the backend and checking installed components it says 2.3.0

    When I edit the helpers file that says * @version 1.5.0 at the very top of the file.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, September 22 2012, 03:54 PM - #Permalink
    0
    ok, that is not a problem. but this function DOES exist on that file. please look again. it's there. line 410

    function artist_tabs($artist_id, $scope = "albums", $options = array()){

    it is there. I'm sure.
    The reply is currently minimized Show
  • Accepted Answer

    Sukh
    Sukh
    Offline
    Wednesday, October 03 2012, 05:43 PM - #Permalink
    0
    Cool thanks resolved the Songs linking :)

    Will attempt the removal of uploading.
    The reply is currently minimized Show
  • Accepted Answer

    Sukh
    Sukh
    Offline
    Wednesday, October 17 2012, 03:07 PM - #Permalink
    0
    Hi

    I attempted to remove the upload but it dont work. I can remove the heading File but the song upload button remains.

    I removed the file 193,194,195 and 196.

              filename == "") echo $cross; else echo $tick_file; ?>
    filename; ?>
    " id="filename_id;?>" value="filename;?>" />
    " id="song_file_id;?>"/>


    Any ideas?
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, October 17 2012, 03:21 PM - #Permalink
    0
    sorry this code is cropped. in which file is this? can you make a screenshot maybe?
    The reply is currently minimized Show
  • Accepted Answer

    Sukh
    Sukh
    Offline
    Wednesday, October 17 2012, 03:31 PM - #Permalink
    0
    Hi

    The file is /httpdocs/components/com_muscol/views/album/tmpl/form.php

    So basically on the Artist/Album upload form I am attempting to remove the upload file capability as I am not storing any files for the songs and don't wish for any users to try and upload songs if they add an entry themselves.

    I have removed line 169, 193-196...

    The Upload button next to the song still appears. http://www.joomlamusicsolutions.com/images/fbfiles/images/Upload.jpg
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, October 17 2012, 03:34 PM - #Permalink
    0
    well you will need to remove it from the JAVASCRIPT file that is creating the new rows.
    the file is /assets/songs.js
    The reply is currently minimized Show
  • Accepted Answer

    Sukh
    Sukh
    Offline
    Wednesday, October 17 2012, 07:17 PM - #Permalink
    0
    Thanks got it working now and removed the upload function :)
    The reply is currently minimized Show
Your Reply