The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

preventing javascript when inline player is disabled (2 posts)

  1. geolaw
    Posted 4 years ago #

    I am using podpress to provide my video/audio out to itunes. I use a different player for both mp3 and videos on the site itself.

    I notice that although I disabled the content player - podpress is still throwing all of its javascript into my html code :(

    I have disabled this by adding the following on line 727 in the podpress.php code (within the podpress_print_js_vars() function)

    if ($podPress->settings['contentPlayer'] == 'disabled') return;

    This works, but I am not sure if it impacts anything else (i doubt it)


  2. ntm
    Plugin Author

    Posted 4 years ago #

    Yes you can do that. podpress_print_js_vars() includes only things which are necessary for the players or player preview.

    I will probably add something like your code snippet in the next version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.