• I’m working on my friend’s website and he upgraded to Podpress 8.8.5.3 and now when one player is playing and you click another player, it doesn’t automatically close the first one. This worked fine in previous podpress versions.

    His site: https://www.nipproductions.com/
    My site: https://www.rockitpro.com/

    See how his podpress players don’t close and mine do?

    How can I fix this for him?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author ntm

    (@ntm)

    I can see the difference.

    I know where the problem is and I’m working on a patch.

    A quick fix is:
    1. Edit the podpress.js file of 8.8.5.3:

    • Remove the comment in front of line 252 and make on in front of line 253.
    • Remove the word “audioplayer” in the lines 256 and 258
    • Make also comments in front of lines 265 to 269.

    The lines 252-269 should look like this:

    strResult += '<object class="podpress_player_object" type="application/x-shockwave-flash" data="'+podPressBackendURL+'players/'+podPressPlayerFile+'" id="audioplayer'+strPlayerDiv+'" width="290" height="24" style="display:block;">';
    				//strResult += '<object class="podpress_player_object" type="application/x-shockwave-flash" classid="CLSID:D27CDB6E-AE6D-11cf-96B8-444553540000" data="'+podPressBackendURL+'players/'+podPressPlayerFile+'" id="audioplayer'+strPlayerDiv+'" width="290" height="24" style="display:block;">';
    				strResult += '<param name="movie" value="'+podPressBackendURL+'players/'+podPressPlayerFile+'" />';
    				if ( true == podPressOverwriteTitleandArtist ) {
    					strResult += '<param name="FlashVars" value="playerID='+strPlayerDiv+localCopyPlayerOptions+'soundFile='+unescape(strMediaFile)+'&titles=' + strTitle + '&artists=' + strArtist + '" />';
    				} else {
    					strResult += '<param name="FlashVars" value="playerID='+strPlayerDiv+localCopyPlayerOptions+'soundFile='+unescape(strMediaFile)+'" />';
    				}
    				//strResult += '<param name="FlashVars" value="playerID=audioplayer'+strPlayerDiv+localCopyPlayerOptions+'soundFile='+encodeSource(strMediaFile)+'&encode=yes" />';
    				strResult += '<param name="bgcolor" value="#FFFFFF" />';
    				strResult += '<param name="menu" value="false" />';
    				strResult += '<param name="wmode" value="transparent" />';
    				strResult += '<param name="quality" value="high" />';
    				//~ if ( true == podPressOverwriteTitleandArtist ) {
    					//~ strResult += '<embed src="' + podPressBackendURL + 'players/' + podPressPlayerFile+ '" id="audioplayer'+strPlayerDiv+'" type="application/x-shockwave-flash" flashvars="playerID='+strPlayerDiv+localCopyPlayerOptions+'soundFile='+unescape(strMediaFile) + '&titles=' + strTitle + '&artists=' + strArtist + '" width="290" height="24" wmode="transparent"></embed>';
    				//~ } else {
    					//~ strResult += '<embed src="' + podPressBackendURL + 'players/' + podPressPlayerFile+ '" id="audioplayer'+strPlayerDiv+'" type="application/x-shockwave-flash" flashvars="playerID='+strPlayerDiv+localCopyPlayerOptions+'soundFile='+unescape(strMediaFile)+'" width="290" height="24" wmode="transparent"></embed>';
    				//~ }

    2. Replace the file podpress/players/1pixelout_player.swf which is included in 8.8.5.3 with the one from podPress 8.8.

    If this is not working then roll-back to 8.8.5.3.

    Regards,
    Tim

    Plugin Author ntm

    (@ntm)

    You could also test the 8.8.6 beta 2, the current Development Version of podPress. In 8.8.6 the player is integrated in podPres differently and with the recent changes it should be functional again.

    I am using 8.8.6 beta 2 and I can verify that the player behaves correctly. In both single page view (with multiple audio files) and category view the currently playing audio file pauses when a new audio file is played.

    -Ray
    Category View:
    https://www.yokosukachurch.com/category/messages/
    Single page view with multiple audio files attached:
    https://www.yokosukachurch.com/messages/3rd-floor-dedication-sunday/

    Thread Starter producer82

    (@producer82)

    Thanks ntm, I used your quick fix and it works fine.

    I’ve already done some editing to the core files (hiding the podpress text, added “login before download” text where the download button should be) so I’d rather not install the beta version and have to re-do that code.

    Plugin Author ntm

    (@ntm)

    I recommend that you use the filter hook “podpress_downloadlinks” instead of editing the plugin files. Because the next podPress version which contains bug fixes will be released in the next weeks and If use write yourself and your friend a little filter than you could update the plugin without problems.

    This particular filter hook is for the line below the players and player previews in other words the line you want to replace.

    You can find more information about the new filter hooks (since 8.8.5) here https://www.ads-software.com/extend/plugins/podpress/other_notes/ in the section “Filter Hooks of podPress”.

    More about filters:
    https://codex.www.ads-software.com/Function_Reference/add_filter
    https://codex.www.ads-software.com/Plugin_API#Create_a_Filter_Function
    and other function for your filter is probably
    https://codex.www.ads-software.com/Function_Reference/is_user_logged_in

    Plugin Author ntm

    (@ntm)

    To use that filter hook I have suggested might not be as easy as I have thought before.
    I’m working currently on an option to hide the “Hide Player”/”Play Now” link and one thing I have learned is that you don’t change code in the podpress.js file, it is necessary leave this section with the link at least with style=”display:hidden;” in the line below the player. I will changes that or make an additional explanation to the “Filter Hooks of podPress” section.

    Plugin Author ntm

    (@ntm)

    @producer82: In 8.8.6.3 this problem should be fixed. But the way the podPress adds the 1PixelOut player to the page is now fully adjusted to the new version of this player and different than before.

    Thread Starter producer82

    (@producer82)

    Thanks ntm and I appreciate you guys updating this plugin. I’m still using WP 2.6 and an old podpress version but I plan to update real soon.

    My way of hiding everything was:
    – Remove “Hide Player” by editing podpress.php
    New code should look like:
    echo ‘var podPressText_HidePlayer = “‘.__(”, ‘podpress’).'”;’.”\n”;

    – Remove “Standard Podcast” by editing podpress_theme
    Search Standard and delete!

    – PODPRESS_THEME.php (login before download)
    If user is logged in or else code

    – Change “:” to white so it doesn’t show up on the page.
    go into podpress.css and find .podPress_content
    add css code= color: white;

    @producer82 With the latest version of podpress under admin:podpress:general options you should set Hide Player / Play Now = “Hide” to get rid of the “Hide Player” I think Tim (ntm) already got rid of the “Standard Podcast” string and you should can set Image = “None” to get rid of the download link.

    If I understand what you are doing with “login before download” you should be able to use the “Premium Content” feature to accomplish that without hacking.

    Hope its helpful,
    Ray
    P.S. I also used a hacked version of 8.7 and 8.8 for a couple of years but now that Tim is actively developing, the latest and greatest (8.8.6.3 or greater) is definitely the way to go.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: podPress] Close 1 player automatically when another player is activated’ is closed to new replies.