WordPress.org

Ready to get started?Download WordPress

Forums

Download Monitor
Custom download page (3 posts)

  1. designerken
    Member
    Posted 2 years ago #

    I am just trying out this plug-i to see if it will work for my needs. I was wondering how do I overwrite the default [download_page]. If I don't want popular downloads, or categories and I just want a list of files?

    do I copy a file out of the plug-ins directory and place it in my templates folder and edit away?

    http://wordpress.org/extend/plugins/download-monitor/

  2. designerken
    Member
    Posted 2 years ago #

    I have been using template tags to create the page how I want. but I have a couple things I can't figure out:

    Can I have the file name instead of displaying the title. I tried
    {filename} in the custom output formats area as well as $d->filename in the template tag. {filename} does nothing and $d->filename outputs the file path.

    I was also having an issue with formatting $d->date As it is I get this "2012-03-24 11:26:00" I was hoping for more control like when using the shortcode {date,"m-d-Y"} I tried $d->date(m-d-Y) but that is not working for me either.

  3. designerken
    Member
    Posted 2 years ago #

    More progress, here is how I changed the filename output and date format in the template tag:

    <br />
    echo 'File Name: ' . basename($d->filename) . '<br />';<br />
    echo 'Release Date: ' . date("m-d-Y", strtotime($d->date));<br />

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic