• Resolved dlsfans

    (@dlsfans)


    Hi,

    Good plugin this. Just trying it out.

    How do I get the registration link to be active after a player has made a bet pick?

Viewing 15 replies - 1 through 15 (of 22 total)
  • Plugin Author web-able

    (@web-able)

    The bet is accepted only if the user is logged in. The default WordPress login is accessible on your-domain.com/wp-login.php

    Thread Starter dlsfans

    (@dlsfans)

    Oh Alright! Thank you @web-able for the prompt response. Let me tinker around and see your masterpiece in action! ??

    Thread Starter dlsfans

    (@dlsfans)

    @web-able, So I have managed to set up the plugin for login and register. A bet is succesfully placed, and in the slips, it is showing up nice! ?? Guide me on another thing please. How do I get to make the points balance show up for a user? In the demo, it show up right on the betting slip widget, which is nice.

    On the other hand, is it possible to edit ‘points’ to something like ‘balance’?

    Thread Starter dlsfans

    (@dlsfans)

    Sorry I didn’t think to start a new topic! ??

    Plugin Author web-able

    (@web-able)

    To show the points in the slip just check the “Show points?” checkbox in the widget (admin dashboard -> appearance -> widgets -> betpress slip widget)

    The recommend way of changing text is via the translations files. Just simulate that you are translating to English if that’s your main language. Details on how to translate can be found in the documentation. Otherwise, you have to edit the code which is not recommended.

    Thread Starter dlsfans

    (@dlsfans)

    Thank you so much @web-able. That is well understood!

    Thread Starter dlsfans

    (@dlsfans)

    So do I delete the original translation files and replace with the new that I have saved? Or do I upload them files and let them sit alongside those ones in there?

    Plugin Author web-able

    (@web-able)

    Should not really matter but let them sit just in case.

    Thread Starter dlsfans

    (@dlsfans)

    Thanks @web-able. Then on a user who is not logged in, the ‘Please login or register’ warning appears. How can I make that ‘login’ and ‘register’ links so they can click right on them and head to the appropriate pages?

    Thread Starter dlsfans

    (@dlsfans)

    Sadly, the translation hasn’t worked.

    Thread Starter dlsfans

    (@dlsfans)

    I am also having trouble locating the ‘Points log page’ & ‘Import/Export page’

    Plugin Author web-able

    (@web-able)

    To make “login” and “register” links, again edit the translation files directly by adding <a href="https://your-domain.com/wp-login.php">login</a> and same for register. As I already mentioned, your other option is to directly edit the plugin’s files but is not recommended. Please note this solution is valid for any other text you want to change.

    Regards to the translation not working: did you followed strictly the instructions in the documentation? Most probably you didn’t follow the naming convention and that’s why it is not working.

    The “Points log page” and the “Import/Export page” are both available in the full version only.

    Thread Starter dlsfans

    (@dlsfans)

    Hello @web-able. Thanks for writing back.

    Regarding the translation, I trust I followed the instructions fully, and you can confirm from the image attached. I have also worked on the ‘login’, ‘register’ links, and please confirm whether it is correct (underlined)

    I have attached the lang folder too, so you can see how I have uploaded the files (po and mo).

    Do not tire to help. Thanks

    Lang folder and Translations

    imgur.com/a/6MrQS -Lang folder and Translations

    • This reply was modified 7 years, 11 months ago by dlsfans. Reason: edit
    • This reply was modified 7 years, 11 months ago by dlsfans. Reason: edit
    Plugin Author web-able

    (@web-able)

    It seems like I missleaded you regards to the English translation. I’ve also just try it out and it seems like if the language is set to English then WordPress is ignoring the translations files. That’s new to me, too. Sorry for the misslead.

    In this case, the only option left is to directly edit the BetPress’s files. Open /controllers/add-bet-option.php, locate line 23 $bet_option_errors [] = __('Please login or register.', 'BetPress');
    Change it to:
    $bet_option_errors [] = sprintf(__('Please <a href="%s">login</a> or <a href="%s">register</a>.', 'BetPress'), 'https://your-domain.com/wp-login.php', 'https://your-domain.com/register-url'); or if you don’t care about translations you can change it to:
    $bet_option_errors [] = 'Please <a href="https://your-domain.com/wp-login.php">login</a> or <a href="https://your-domain.com/register-url">register</a>.';

    Hope it helps.

    Thread Starter dlsfans

    (@dlsfans)

    That works perfectly. Used the first code! Now players can click on ‘login’ or ‘register’. My last request is still on changing the name ‘points’. Please let us do it. I will be careful with the changes. Just point me on how to do it.

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘How to make new players register’ is closed to new replies.