Forum Replies Created

Viewing 15 replies - 106 through 120 (of 142 total)
  • Plugin Author web-able

    (@web-able)

    Here you go:

    <?php
    $user_ID = get_current_user_id();
    $user_points = 'Please login or register';
    if ($user_ID) {
        $user_db_points = get_user_meta($user_ID, 'bp_points', true);
        $user_points = ('' === $user_db_points) ? get_option('bp_starting_points') : $user_db_points;
    }
    
    echo $user_points;
    ?>

    Now the $user_points variable will have the user’s points, the last line (the one which starts with echo) is how you print it on the website.
    You can change the text “Please login or register” to anything you want to be shown to the not logged in users.
    If you want the points to be automatically updated right after the user submit a slip, just apply the “points-holder” class to the html element like this:
    <span class="points-holder"><?php echo $user_points; ?></span>
    It is not necessary this to be a “span” element, it can be anything. But the problem with this is that the text “Your points: ” will be added just before the points and you will have no control over this.

    Forum: Plugins
    In reply to: [BetPress] Translation
    Plugin Author web-able

    (@web-able)

    First of all check if you have set French as your language in the WordPress settings.

    You shouldn’t change anything in the .mo file. You only have to:
    1. Open the /lang/BetPress.po file with your editor (Poedit is the recommended one)
    2. Translate the file
    3. Save the file with a name BetPress-fr_FR.po
    4. There will be auto-generated .mo file with the same name under the same directory you have saved the BetPress-fr_FR.po file
    5. Move both the BetPress-fr_FR.po and BetPress-fr_FR.mo files into the /lang/ directory

    Plugin Author web-able

    (@web-able)

    1) You have control over the bet options names if you insert them manually or if you edit them manually after you auto-insert them.
    2) In order to achieve this you will first have to find a bookmaker that will provide you the live odds and then to hire developer to implement this.
    3) [betpress_bettings sport=”martial arts”]

    You may want to read the documentation from where you will learn a lot about the plugin: http://web-able.com/betpress/docs/

    Plugin Author web-able

    (@web-able)

    No, there is no shortcode to place the betting slip inside a page. It is meant to be a widget.

    Plugin Author web-able

    (@web-able)

    Thank you for your idea but I don’t believe we will add this feature because everyone will have their own preferences of how the existing data has to be changed to fit this feature. It will just be not possible to please everyone’s needs.

    Plugin Author web-able

    (@web-able)

    You will need first to register a filter with add_filter and to use callback because as I said earlier a user may still not have played thus you have to return the bp_starting_points from the wp options table.
    But I am afraid you will have to make the fixes you need in your copy of BetPress because the next update is not planned yet.

    Plugin Author web-able

    (@web-able)

    Integrating other plugin’s points system wouldn’t be an easy task because the BetPress’ code directly use get_user_meta() everywhere where user’s points are needed. What I mean is that this is not encapsulated in a single function so you will need to tweak the code on every place where user’s points are needed.
    The line you quoted is inside of callback and is about showing columns in the admin dashboard -> users page so it is only one of the many places that you will have to tweak the code. But I don’t see how apply_filters() may be helpful for this, however that’s just me and what I think 🙂

    Plugin Author web-able

    (@web-able)

    Yep, you only need to use the build-in WordPress functions to achieve simple tasks like reading/updating user’s points or BetPress’ settings.

    Plugin Author web-able

    (@web-able)

    There is no documentation for developers but I will assist you with anything you need.
    To answer your specific question: User’s points are stored as user meta with key ‘bp_points’ so you can just use get_user_meta() (if this returns empty string, then the user has not played yet and you have to take the ‘bp_starting_points’ from the options as his points) and update_user_meta()

    Forum: Plugins
    In reply to: [BetPress] Mobile Problem
    Plugin Author web-able

    (@web-able)

    Hi, great to read that! Could you please share what was causing the problem and how it was solved?

    Forum: Plugins
    In reply to: [BetPress] Mobile Problem
    Plugin Author web-able

    (@web-able)

    I was able to see the problem live and unfortunately the problem is not caused by Safari but with all browsers under iOS. This problem is really strange for me and is something I’ve never faced before and I will give you more information as soon as I debug it live (in the next 3-4 days because I need iPhone in order to do that)

    Forum: Plugins
    In reply to: [BetPress] Mobile Problem
    Plugin Author web-able

    (@web-able)

    Thank you for your additional information. Today I will have the opportunity to see it live on iPhone 5 and 6

    Forum: Plugins
    In reply to: [BetPress] Mobile Problem
    Plugin Author web-able

    (@web-able)

    It’s getting stranger and stranger. Right now I can’t think of a reason this to happen. And I am not an iOS user so I can’t see it by myself at the moment. Will get back to you as soon as I am able to see this live on someone’s iPhone, please keep BetPress activated.

    Forum: Plugins
    In reply to: [BetPress] Mobile Problem
    Plugin Author web-able

    (@web-able)

    Hello,

    I’ve just went to your website and I saw the plugin is currently activated and both your desktop and mobile versions are running… So I see no problem.

    Are you sure the problem is caused by BetPress because it seems a little bit strange for me. If yes, could you please explain in more detailed way when exactly you see the error (on what page), what is the error (screenshot will be perfect) and anything else you think may be helpful.

    Best regards,
    Nikolay

    Plugin Author web-able

    (@web-able)

    Well, you can just see how things are working by yourself, just play around with the plugin… If you are not happy with the workflow, you can enquire for paid customization.

Viewing 15 replies - 106 through 120 (of 142 total)