Date & Downloads

Joe
Joe
Offline
0
Hi there guys

As much as I love MC is there anyway we can integrate a date added column to the songs? Some of my members are getting very frustrated that they are duplicating downloads because there is now info when new songs have been added? I think this is a very much needed feature to have in MC.

Also is there a way we can integrate that when a member as logged in and downloaded an mp3 can music collection put a tick on that mp3 to notify the member they have already downloaded that mp3?

I think these features would be very neat or if anyone can supply code to integrate into the system that would be great.

Many thanks
Joe
Responses (14)
  • Accepted Answer

    Thursday, June 27 2013, 09:58 AM - #Permalink
    0
    Hello Joe,

    as a matter of fact, this information (when the song is added) is stored on the system, it's just not displayed.

    tell me, in which page specifically you want to display this?

    about the "notify member with a tick", that's a bit more tricky, it requires to keep track of the songs download and mark them if necessary. for this, some code work would be necessary...
    The reply is currently minimized Show
  • Accepted Answer

    Joe
    Joe
    Offline
    Friday, June 28 2013, 09:16 AM - #Permalink
    0
    Hi Germinal
    Thanks for the swift reply as always. I am trying to add this feature on the default songs layout page.

    regards
    Joe
    The reply is currently minimized Show
  • Accepted Answer

    Friday, June 28 2013, 09:46 AM - #Permalink
    0
    the file is /components/com_muscol/views/songs/tmpl/default_songs.php
    and you basically need to create a new column.
    the content of that column (the date of the song) is in $this->songs[$i]->added ;
    The reply is currently minimized Show
  • Accepted Answer

    Joe
    Joe
    Offline
    Friday, June 28 2013, 02:43 PM - #Permalink
    0
    Hi Germinal
    Thats a great help thanks, How can I remove the time it was added and just keep month, day & year??

    Joe
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, June 30 2013, 11:58 AM - #Permalink
    0
    You can print it through the Date function of Joomla:

    echo JHTML::_('date', $this->songs[$i]->added, JText::_('DATE_FORMAT_LC3'));
    The reply is currently minimized Show
  • Accepted Answer

    Joe
    Joe
    Offline
    Thursday, July 25 2013, 09:49 AM - #Permalink
    0
    Hi Germinal

    I am still having problems with the add date column, It also displays the time which is not needed, I tried copying the code that does not display the time yet when I place it in the default.songs.php folder it still displays the time the song was added.

    Also when integrating the date feature it makes all the layout look messy and out of place.

    Please help as my members are getting very frustrated now

    Regards
    Joe
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, July 25 2013, 09:52 AM - #Permalink
    0
    if you want the time to not be shown, you just need to use another date format...

    for instance, instead of using DATE_FORMAT_LC3 you can use DATE_FORMAT_LC4..

    however I'm confused, I thought the DATE_FORMAT_LC3 was already "without" the time...!
    The reply is currently minimized Show
  • Accepted Answer

    Joe
    Joe
    Offline
    Thursday, July 25 2013, 10:00 AM - #Permalink
    0
    I have tried all the date formats and all of them display the time for some reason,

    Its mind boggling and I cant understand why it is doing this.

    Is there anyway you can check this out for me please Germinal?

    Regards
    Joe
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, July 25 2013, 10:03 AM - #Permalink
    0
    sure. please send me joomla and FTP access at support@ joomlathat.com
    The reply is currently minimized Show
  • Accepted Answer

    Joe
    Joe
    Offline
    Thursday, July 25 2013, 10:46 AM - #Permalink
    0
    Email sent to you Germinal

    Regards
    Joe
    The reply is currently minimized Show
  • Accepted Answer

    Joe
    Joe
    Offline
    Friday, October 11 2013, 11:54 AM - #Permalink
    0
    Hi Germinal

    Im still having problems getting a date column to display in the frontend so that members can see when a song was added to the database.

    Ive managed to input the title (DATE) without any problems but when I try to input the following code
    echo JHTML::_('date', $this->songs[$i]->added, JText::_('DATE_FORMAT_LC3'));
    So that the date is displayed it makes all the pages go offline with a php line warning.

    Im simply just trying to display a date next to the artist column so as users can see when a track was uploaded to the website.

    Regards
    Joe
    The reply is currently minimized Show
  • Accepted Answer

    Joe
    Joe
    Offline
    Friday, October 11 2013, 12:12 PM - #Permalink
    0
    Hi Germinal

    Please find a screen shot with the code im trying to input on line 48 to enable the date to be displayed.

    Regards
    Joe
    The reply is currently minimized Show
  • Accepted Answer

    Friday, October 11 2013, 06:11 PM - #Permalink
    0
    ...well I can't see you don't know PHP... :S

    there are not php open or closing tags, Joe..!



    this is PHP's lesson 1... ;)
    The reply is currently minimized Show
  • Accepted Answer

    Joe
    Joe
    Offline
    Saturday, October 12 2013, 08:48 AM - #Permalink
    0
    Hi Germinal

    Thanks for the above tip, I did try the way you explained above and it did not show within the muscol section of the my site.
    However it did give me alot of broken code text on the site.

    I have now managed to integrate the date function into music collection but for some reason its still not showing only the date added.
    In the column it shows the date which is what I Need then it also displays the time and F D Y???

    Please find 2 screen shots attached - 1 of my site and how the date is displaying (2 The coding I have inputted into joomla

    Im hoping this is a simple thing I have done wrong or an easy fix within joomla.

    Regards
    Joe
    • Germinal Camps
      more than a month ago
      have you changed the date format? DATE_FORTMAT_LC3
    The reply is currently minimized Show
Your Reply