WPExperts

Having trouble getting myCRED to work as described in the documentation? Open a support ticket! Issues or bug reports posted in the forums will be deleted. Helping out other members or answering questions will get you free Tokens that you can use as payment in the store.

Forum Replies Created

Viewing 14 posts - 2,296 through 2,309 (of 2,309 total)
  • Author
    Posts
  • in reply to: Enter Lottery in exchange for points #3840
    AvatarWPExperts

    Hi.

    Thank you for your question.

    This unfortunately is not possible with the lottery add-on as the lottery only accepts one price, which you set per entry.

    If you have a “Draw” lottery where winners are drawn from all of those who entered, your users could increase their odds by you allowing them to enter the lottery more then once. For example if you allow multiple plays in the lottery by a user and charge them 1 point per entry, your users could technically “invest” by entering the lottery more then once. But thats the closest you can get to your request. I am not sure if that is good enough though for what you are looking for.

    in reply to: Deduct a transaction fee #3826
    AvatarWPExperts

    Hey.

    The bank add-on is meant for more “general” actions that effect all your users. If you are looking to add a fee for transfers, you are better of using the mycred_add filter and deduct this fee when a user makes a transfer.

    I have created a pastebin example.

    in reply to: How to set recurring charge? #3097
    AvatarWPExperts

    Hey lackcy.

    Not sure I understand what you are looking for. There is no connection between WooCommerce and recurring payouts. Could you provide me with some more information on what exactly you are looking to achieve?

    in reply to: How to set recurring charge? #3094
    AvatarWPExperts

    To enable recurring payouts:

    1. Enable the Banking add-on
    2. Visit the Banking page in the myCRED menu
    3. Click on “Recurring Payouts” to show settings
    4. Tick “Enable”
    5. Set the amount you want to give or charge from all users.
    6. Set the interval for how often this should happen
    7. Set how many times you want to run this under “Cycles”. Use -1 for unlimited.
    8. Click Save.

    in reply to: How to set recurring charge? #3092
    AvatarWPExperts

    myCRED can help you sell access to post content via the Sell Content add-on. You sell any registered post type in WordPress and you can set sales to expire which means that users would need to re-buy access to the content when the time has lapsed.

    The Sell Content add-on allows you to set a default price that is applied to all content that is set for sale but you can set prices for each post and have different amounts for each post.

    in reply to: How to set recurring charge? #3090
    AvatarWPExperts

    Hey Lack.

    Not sure I understand your question. Are you looking to payout using the Banking add-on or you want to charge different amounts for different courses?

    in reply to: Displaying Points Total in Toolbar? #2799
    AvatarWPExperts

    Ah, now I understand. Yes that is the case in BuddyPress.

    Yeah image elements gets stripped from entries in the forum. It only took people a few days to start posting inappropriate images so I disallowed it for now.

    Instead you can either just post a link or insert links to images.

    in reply to: Displaying Points Total in Toolbar? #2793
    AvatarWPExperts

    Nice one. But i am curious. Are you doing this because the balance is not inserted into your tool bar by default?

    As I mentioned before myCRED adds your current users balance in your Tool bar for you.

    in reply to: Displaying Points Total in Toolbar? #2790
    AvatarWPExperts

    myCRED adds every single users current balance in the toolbar under your Profile menu. If you are using BuddyPress, it is instead inserted under your “Profile” menu so if you want to duplicate this you can have a look at how it’s done in the mycred.php file starting at line 328.

    You can not use mycred shortcodes in your admin area! Especially in your tool bar as the mycred_my_balance returns not just the balance but a lot of HTML elements that are used as wrappers etc.

    Your users balances are stored in your user meta table so you can access a users balance by using get_user_meta and you can build your own shortcode if you feel the balance needs a custom look.

    AvatarWPExperts

    I do not see what issues there could be. You can always setup a test environment and see how the two interact with each other. I should mention that I am no expert in the WPMU DEV Membership plugin.

    in reply to: Action / Filter for Total Point Gains ? #2751
    AvatarWPExperts

    Hey.

    The ranks add-on will save a users total as a user meta. You can access it either by using get_user_meta or by using the mycred_get_users_total function. The details are saved under the mycred_default_total meta key.

    Another way to do this would be to count up a users point gain via a database query:

    global $wpdb;
    
    // myCRED Log
    $log = $wpdb->prefix . 'myCRED_log';
    
    // User ID
    $user_id = 1;
    
    // Query total
    $total = $wpdb->get_var( $wpdb->prepare( "
    SELECT SUM( creds ) 
    FROM {$log} 
    WHERE user_id = %d;", $user_id ) );
    

    The above query will sum up all point gains and looses in the log for a given user.

    AvatarWPExperts

    The custom payment gateway that I built for the WPMU DEV Membership Plugin allows users to pay for memberships using their myCRED points. It is nothing but another payment gateway like PayPal or Skrill.

    Without this custom gateway, there is no connection between the two plugins. They work independently from each other. This gateway would be the only thing that would connect the two, and only by the payment gateway feature.

    in reply to: How to display rank on user profile page #3047
    AvatarWPExperts

    Thanks for taking the time to include a solution, I am sure others could find this useful!

    in reply to: How to add rank to body class #2726
    AvatarWPExperts

    Hey.

    If you have a look at the documentation for the mycred_get_users_rank function, you can see you can select what rank post detail you want to return. By default, the post title is returned but you could for example return the post slug which is always unique and better for CSS styling.

    Example:

    add_filter('body_class', 'insert_rank_into_body_class');
    function insert_rank_into_body_class( $classes )
    {
    	if ( ! is_user_logged_in() ) return $classes;
    	$classes[] = 'rank-' . mycred_get_users_rank( get_current_user_id(), 'post_slug' );
    	return $classes;
    }
    
Viewing 14 posts - 2,296 through 2,309 (of 2,309 total)
11