WordPress.org

Forums

myCRED
[resolved] Mycred_default after update. (4 posts)

  1. pahroblem
    Member
    Posted 2 years ago #

    Not a huge issue and surely all it needs is to remove that line, but im not experienced with php so i dont want to mess things up..

    In forum posts under members avatar, i currently have mycred showing their current balance.. After updating it shows it like this:

    Coins: mycred_default1000

    Do i just remove the mycred_default? once i find it.. lol

    also with the coins after going past 999 it goes 1 000.. dumb question but how do i remove the space between the numbers?..

    Thank you

    https://wordpress.org/plugins/mycred/

  2. Gabriel
    Member
    Plugin Author

    Posted 2 years ago #

    Hey.

    Yeah I made a mistake in the bbPress hook. If you open the mycred-hook-bbpress.php file located in plugins/mycred/plugins/ and change lines 50 from:

    $balance = $mycred->get_users_cred( $user_id, $this->mycred_type );

    to:

    $balance = $mycred->get_users_cred( $user_id, $mycred->mycred_type );

    It will be sorted. I will push though an update today once I have gone though all the issues that have been reported so far.

  3. pahroblem
    Member
    Posted 2 years ago #

    I've changed it but it hasnt changed anything.. guess ill just wait for the update. thank you for your assistance anyway mate.

  4. Gabriel
    Member
    Plugin Author

    Posted 2 years ago #

    Open the mycred-hook-bbpress.php file which is located in plugins/mycred/plugins/ folder.

    On line 377 you should see the following:

    $layout = $this->core->plural() . ': ' . $this->core->format_creds( $balance, $this->mycred_type );

    Change this to:

    $layout = $this->core->plural() . ': ' . $this->core->format_creds( $balance );

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • myCRED
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags