Support » Plugin: Simple Download Monitor » New template

  • manuamaro

    (@manuamaro)


    Hello, excellent plugin for our purposes. I need a simple variant of the fancy1 template. Is there a way of create a fancy4 template and use it? Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi,

    If you are a developer, you could duplicate the code from fancy1 and make the adjustments with your code. Then save it as fancy4.

    Kind regards

    Thread Starter manuamaro

    (@manuamaro)

    Yes, that’s what I thought and I tried. But when I put the parameter: [sdm_show_dl_from_category category_slug=”feminismo-derecho-y-litigo-estrategico” fancy=”4″ pagination=”3″] it shows only a pagination.

    I created a new folder fancy4 inside templates and named the file sdm-fancy-4.php.

    In fact now I have a modified fancy1 and the new fancy4. Both are identical. But when I use 4 it shows only a pagination.

    The modification is just that I use “none” on line 150:
    $output .= ‘<div style=”none”></div>’;

    instead of: clear:both

    Thank you for your kind help.

    Thread Starter manuamaro

    (@manuamaro)

    Maybe I was not clear enough. The modified fancy1 and the fancy4 are identical now, but only fancy1 works. My problem is that each time there’s an upgrade I loose the change. Thanks again.

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, I have submitted a message to the developers to investigate further your issue.

    Kind regards

    Plugin Author mra13

    (@mra13)

    The best option that I can think of is to use a filter hook to override the shortcode output.
    https://simple-download-monitor.com/simple-download-monitor-filter-hook-reference/

    Then that custom code will remain outside of the main plugin and you won’t lose the change during an upgrade.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘New template’ is closed to new replies.