• Resolved fraper

    (@fraper)


    Hi,
    I’ve tried to insert the WordPress Download Monitor code, i.e., ‘[download id=”1″]’ into Tablepress table content but the counter does not work.
    I’ve typed [download id=”1″] in the last column of the table saved as csv file and then import the table in wordpress.
    Do I miss something? By the way the download counter works when is not inserted into Tablepress.
    Thanks. Francesco

    http://wordpress.org/extend/plugins/tablepress/

Viewing 15 replies - 1 through 15 (of 22 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    I don’t really understand what is not working here. Can you post a link to the page with the table where this is not working, so that I can have a look?

    Regards,
    Tobias

    Thread Starter fraper

    (@fraper)

    http://www.studiolegaleperugini.it/leggi-e-sentenze/sentenze/
    Try to click inside the table on the download pdf button or the title of the document and then you see that the counter outside the table runs but not the inside one.
    Also, another problem is if you click on the document title outside the page the counter do not work.
    Thanks. Francesco

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Francesco,

    ah, I see. Thanks for the link!

    The reason for this is the tbale output caching that TablePress uses. To change this, please extend the Shortcode to

    [table id=7 cache_table_output=false /]

    Regards,
    Tobias

    Thread Starter fraper

    (@fraper)

    Hi,
    great!. It works now.
    What about the second question? Do you know why if you click on the document title outside the page the counter does not work? Should I ask the plugin author for this?
    Thanks a lot.
    Francesco

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Francesco,

    good to hear that it works now! πŸ™‚

    About the second question (sorry that I missed that):
    Yes, this is probably a question that can be answered better by the plugin author. From what I can see, the reason is the different URL. The link with the document title goes to http://www.studiolegaleperugini.it/wp-content/uploads/2013/02/Articolo-Sangiovanni-Contratto-di-apertura-di-credito-calcolo-del-tasso-effettivo-globale-medio-e-usura-civilistica.pdf while the link “download pdf” goes to http://www.studiolegaleperugini.it/wp-content/plugins/download-monitor/download.php?id=2 And only that will then be counted. So, you will probably just have to change the link URL.

    Regards,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

    Thread Starter fraper

    (@fraper)

    Thanks a lot Tobias.
    great help.
    Francesco

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! πŸ™‚

    Best wishes,
    Tobias

    Thread Starter fraper

    (@fraper)

    Hi Tobias,
    sorry to come back again.
    Tablepress works now perfectly with WordPress Download Monitor. However, when I try to order the table by the last column, i.e, where the download code is, it does not order the table by the number of downloading (scarica (…) ). Please have a look
    http://www.studiolegaleperugini.it/articoli/
    How to fix this?
    Thanks a lot for your help.
    Francesco

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Francesco,

    you are right, it does not sort by that number, as the data type in the column is HTML code. Even if that is removed, a string remains. Thus, the sorting code just doesn’t know that it shall use the number.
    However, you can try to make it work by installing this TablePress Extension: http://tablepress.org/extensions/datatables-numhtml/
    To make it work, add this to the “Custom Commands” textfield on the “Edit” screen of the table:

    "aoColumnDefs": [ { "sType": "num-html", "aTargets": [ 4 ] } ]

    Regards,
    Tobias

    Thread Starter fraper

    (@fraper)

    Great, you’re the best.
    It works perfectly
    Thanks.
    Francesco

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Francesco,

    very nice! πŸ™‚ Great to hear that this worked! πŸ™‚

    Best wishes,
    Tobias

    Thread Starter fraper

    (@fraper)

    Hi Tobias,
    sorry I’m back again.
    Tablepress worked perfectly so far.
    However since few days I could not order the table by any columns. There is no option.
    http://www.studiolegaleperugini.it/articoli/
    How to restore that option?
    Thanks.
    Francesco

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Franesco,

    thanks for your post, and sorry for the trouble.

    From what I can see, this is caused by the “FT Calendar” plugin. That contains a JS file “single-post-page-shorts.js” which contains a problem regarding the jQuery JS library: It is using a function that has been deprecated and is no longer part of jQuery.
    This then breaks the script and all other JS on the page (including the sort functions).

    You will therefore have to deactivate that “FT Calendar” plugin until it is fixed. You might want to contact its developer and report the problem to him.

    Regards,
    Tobias

    Thread Starter fraper

    (@fraper)

    MAny thanks Tobias. Always very helpful.
    I’ll try to sort this out.
    Francesco

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! πŸ™‚ I hope this can be fixed in the other plugin.

    Best wishes,
    Tobias

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Tablepress and WordPress Download Monitor’ is closed to new replies.