WordPress.org

Support

Support » Plugins and Hacks » myCRED » [Resolved] A couple things. Tags and values on buy cred

[Resolved] A couple things. Tags and values on buy cred

  • Hi Gabriel, just noticed a couple things.

    It looks like the tags are not being parsed.

    e.g. When I am not logged in, I get the log in to purchase link. When I click the link, the url looks like this:

    test-my-cred/%login_url_here%

    Then when I do log in, the page says this:
    You do not have enough %plural% to buy access to this Post.

    It seems the code for the tags is not being run.

    Also, the Buycred minimum points value not being saved

    Thanks

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

Viewing 15 replies - 1 through 15 (of 17 total)
  • Actually it looks like none of the settings are being saved in the buyCRED settings.

    Plugin Author Gabriel

    @designbymerovingi

    Really appreciate you taking the time to report this. I see where I went wrong in my line of thought. 1.0.2 is up and fixes this (and some other things I found myself).

    No problem, glad to help.

    It looks like the buyCRED setting are now being saved, but I’m still getting:

    “You do not have enough %plural% to buy access to this Post.”

    i.e. it still seems like the tags are not being parsed.

    Thanks

    Plugin Author Gabriel

    @designbymerovingi

    Ah thats the Sell Content Add-on, let me have a look

    Ah, yes indeed.

    Odd, it looks like the %post_type% tag is being parsed fine because I get the correct language on the page, in this instance “Post”

    Plugin Author Gabriel

    @designbymerovingi

    Yeah the problem is that I forgot to include to parse the general template tags. It was only parsing the post.

    Plugin Author Gabriel

    @designbymerovingi

    I will wait a few before updating to 1.0.3, just in case some more bugs are found.

    Is there a quick fix to this?

    Thanks

    They were not added in mycred-funtions.php template_tags_post function?

    Thanks

    Plugin Author Gabriel

    @designbymerovingi

    In mycred/addons/sell-content/myCRED-addon-sell-content.php insert the following:
    $template = $this->core->template_tags_general( $template );

    On line 563 after: $template = str_replace( '%price%', $this->core->format_creds( $prefs['price'] ), $template ); and
    on line 575 after: $template = $this->get_button( $template, $GLOBALS['post'] );
    and on line 591 after $template = str_replace( '%price%', $this->core->format_creds( $prefs['price'] ), $template );

    Plugin Author Gabriel

    @designbymerovingi

    Missed your message while typing. You are correct, it would be far more logical to just include it there.

    Ok, I’ll look for the update when it’s ready. 🙂

    Thanks for your help.

    Plugin Author Gabriel

    @designbymerovingi

    done

    I see. I was about to start adding them to the mycred-funtions but you’re too fast 🙂

    Thanks man, looks great!

    Plugin Author Gabriel

    @designbymerovingi

    Im trying to be as fast as I can but I will admit this is my first WordPress hosted plugin and I am new to the SVN thingy.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘[Resolved] A couple things. Tags and values on buy cred’ is closed to new replies.
Skip to toolbar