WordPress.org

Ready to get started?Download WordPress

Forums

podPress
Using within another shortcode (like-gate) (16 posts)

  1. peeld
    Member
    Posted 2 years ago #

    I'd REALLY like to use this plugin with FB Like-Gate - it would be awesome to have users 'like' the page and then have the podcast revealed. Trouble is, the [display_podcast]shortcode doesn't work within the like-gate shortcode tags.

    Is there any way to make it work? In an iframe or something?

    Thanks

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

  2. Svetoslav Marinov
    Member
    Posted 2 years ago #

    Will take a look.
    again, please use the contact link from within the plugin.

  3. peeld
    Member
    Posted 2 years ago #

    The contact link within the plugin just goes to the website, not a contact form. Any update on this? I've now tried two FB like type plugins and neither one can hide Podpress - in one case, the Podpress shortcode isn't parsed, just shows as text, and in the other case, the content is hidden until the user likes it, BUT, the podcast content is shown at the end/beginning (depending on settings) BEFORE liking, and then once liked, it shows where the shortcode is placed.

    Thanks!

  4. ntm
    Member
    Plugin Author

    Posted 2 years ago #

    I have no solution for this problem. But I will try to explain the problem:
    Usually podPress replaces the [display_podcast] shortcode during the page loads with certain HTML code and a line of Javascript code and returns that code to the browser. The browser executes the Javascript code which determines the type and apearance of the media player elements and modifies the podPress part of a post accordingly, dynamically.
    I'm not sure how the Like-Gate plugin works exactly. But it seems that the plugin hides/encodes the original code of the podPress elements and probably decodes and loads this code after the click on the Like button. But I guess if the player does not appear after the click on the Like button then the Like-Gate plugin does not execute the Javascript to load the player.

    @peeld: Is the media file icon, the download link and the other podPress links (which are usually below the player) visible after the the click on the Like button?

  5. ntm
    Member
    Plugin Author

    Posted 2 years ago #

    @Svetoslav Marinov: What exactly is the iframe approach? Using the iframe WP plugin?

    If this should really be solution then I can't see how it should work in this case. Because the JS function of podPress which should be called creates <object> and <embed> elements and sometimes only a <div> with a preview image. It does not simply add a video to a post. That is why there is no src="" for the [iframe].

  6. peeld
    Member
    Posted 2 years ago #

    @ntm The media file icon, the download link, all that is present after hitting like, but it is also present BEFORE, just lower down at the end of the content (even though my shortcode is further up. You can see it in action here:

    http://www.daisypeel.com/podcasts/what-is-consistency/

    Once 'liked', the media file icon, link, etc., appear where the 'like this' bit used to be.

  7. ntm
    Member
    Plugin Author

    Posted 2 years ago #

    It looks like you are using currently a different plugin which should lock parts of the post content. It does not look like Like-Gate. Is it this one http://wordpress.org/extend/plugins/facebook-like-content-locker/ ? Which one is it?

  8. peeld
    Member
    Posted 2 years ago #

  9. ntm
    Member
    Plugin Author

    Posted 2 years ago #

    That plugin works also with shortcode and does not seem to load Javascripts after the Like click.

    The media file icon, the download link, all that is present after hitting like, but it is also present BEFORE,

    Furthermore it somehow does not work very well with the content filter hook which podPress also uses to replace its place-holder on page loading.
    Since I don't want to buy that plugin, it is hard for me to say what the problem in this case is.

  10. peeld
    Member
    Posted 2 years ago #

    I suppose for the purposes of development I could send you a copy...? Or buy a second copy and give it to you?

  11. ntm
    Member
    Plugin Author

    Posted 2 years ago #

    I don't know. I may be able to help with the doubled podPress elements. In order to do that I would need to look into the code of the other plugin. But it is actually not sure whether this is a problem of the Like-Locker plugin. For instance you use probably a further plugin to display those 4 social network Like-like counter elements (right before the podPress play at the end of the post). This plugin could also be responsible for the doubled player. (You can find out which one it is by temporarily deactivating this plugin and reloading the post.)
    First you should make sure which plugin is responsible for that and then you should ask the plugin author for help. There is most likely a problem with the way the the_content Filter Hook is used.

    Furthermore I have only a vague idea on how to solve the problem (the player does not appear after the click on the Like button) which you could observe with Like-Gate too. I guess the plugin would need to parse the in the hidden content (code) for Javascript sections, grab the functions and call them after one has clicked on the Like button. Or maybe there is a better way. But this are things which the author of the other plugin should implement.
    It would be better if you would ask the author of the other plugin for help.
    I would explain further to him/her what podPress does.

    Please, don't send me the plugin.

  12. peeld
    Member
    Posted 2 years ago #

    Thanks for all of the information - I've forwarded it on, as well as the URL of this thread, to the plugin developer. The player does in fact appear, but it appears BEFORE the 'like' button is clicked, just at the end of the post (which is where it's set to appear in Podpress general settings). Then after 'liking', it shows up where the shortcode actually is placed for Podpress in the content.

    But in any case, when I get a solution, I'll post it here for others. Being able to Like-lock your Podpress shortcode is a great way to give out free podcasts in exchange for people sharing the word about them :)

  13. ntm
    Member
    Plugin Author

    Posted 2 years ago #

    Then after 'liking', it shows up where the shortcode actually is placed for Podpress in the content.

    Do I understand it correctly, that the player appears after 'liking'? That would be great.

    The player does in fact appear, but it appears BEFORE the 'like' button is clicked, just at the end of the post

    As I have written above the reason for that might be totally different plugin. Are you sure that the like-locker plugin is causing that? What happens if you place the [display_podcast] place-holder somewhere in the post but not in the like-locker part. Does the player appear twice in the post too?

    (which is where it's set to appear in Podpress general settings)

    If you are using the place-holder then podPress dismisses the settings on the general settings page for this post and place the podPress elements where the place holder is.

  14. peeld
    Member
    Posted 2 years ago #

    Here is what the plugin creator says:

    "The issue is not with like locker, all like locker does it hide / show the content. If your podpress shortcode is not working within like locker its because podpress does not support nested shortcodes (or shortcodes inside of shortcodes.) Like locker does not modify or filter content at all, so nothing is really being changed only that the content itself is shown or not shown."

    If you go to the link I posted above, on my daisypeel.com website, you'll see what I mean. Although the pod press shortcode is inside the like locker shortcode, it's like pod press thinks there is NO shortcode and so puts the player at the end of the content, where the general settings specify. Ten, once liked, the pod press player shows up where the shortcode actually is.

    This was an issue before I added the social media plugin, btw.

    Thanks again :)

  15. ntm
    Member
    Plugin Author

    Posted 2 years ago #

    Like locker does not modify or filter content at all, so nothing is really being changed only that the content itself is shown or not shown.

    If that is true then something else is causing the doubled appearance of the podPress elements.
    In the past such a problem was often caused by an interference with a different plugin. That is why I would like to know whether you use other plugins besides podPress, Like-Locker and Social Sharing Toolkit to add something to a post or maybe to alter the style of elements in the post. What are the names of these other plugins?

    I have also contacted the author of the like-locker plugin myself and ask him for support.

    Tim

  16. peeld
    Member
    Posted 2 years ago #

    Tim, thanks so much - I'll go through all my plugins over the next few days, and if/when I find a conflict I'll post it here.

    Thanks again for the support - that's better than a resolution, I appreciate the help :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic