scarface
scarface
Offline
0
Hi,
I would like recently added songs displayed the same way that album (cover+title...).

How to do this please?

It's very important for our website Home page (not MC home page).
Responses (2)
  • Accepted Answer

    Tuesday, April 05 2011, 08:58 AM - #Permalink
    0
    hello,

    finally found this topic.

    to achieve what you want you need to make some code changes, both PHP and mySQL.
    open /modules/mod_muscol_recently_added_songs/helper.php

    on line 33, on the MySQL statement, you need to get the al.image field.

    then, on the /tmpl/default.php, you'll need to print the image.

    if you look at the code, the best place to do it is around rows 30 - 33

    this is the code for the thumbnail:

    MusColHelper::createThumbnail($song->image, $song->name, 40) ;

    (with an "echo" in front)

    I'm asuming you have base knowledge of PHP and MySQL... otherwise don't try this at home!!!! ;)

    Germi
    The reply is currently minimized Show
  • Accepted Answer

    scarface
    scarface
    Offline
    Tuesday, April 05 2011, 09:01 AM - #Permalink
    0
    Ok thank's i'll test it !
    ;)
    The reply is currently minimized Show
Your Reply