Plugin: CubePoints Buddypress Integration

Join this plugin group to follow comments, support topics and reviews.

CubePoints WordPress MU Fix (13 posts)

Started 2 years ago by: Tosh

  • Profile picture of Tosh Tosh said 2 years ago:

    This fix was done by @hnla

    http://pastebin.com/AHhvHQcQ

  • Profile picture of Tosh Tosh said 1 year, 11 months ago:

    Other WP-MU fixes here:

    http://buddypress.org/community/groups/cubepoints-buddypress-integration/forum/topic/version-1-7-beta/?topic_page=5&num=15#post-55450

    Please let me know of any others so we can keep it all in 1 place.

  • Profile picture of Hugo Hugo said 1 year, 11 months ago:

    This is the other fix required for WPMU This fixes the DB prefix for BP Cubepoints so that the two points screens in members accounts return results.

    http://pastebin.com/DMm7bP9n

  • Profile picture of josh101 josh101 said 1 year, 11 months ago:

    @hnla
    I used the fix you posted and both logs now work but the error message is still up.

    Warning: Division by zero in /home4/techtro2/public_html/wp-content/plugins/cubepoints-buddypress-integration/includes/bp-cubepoint-templatetags.php on line 56

    Warning: Division by zero in /home4/techtro2/public_html/wp-content/plugins/cubepoints-buddypress-integration/includes/bp-cubepoint-templatetags.php on line 65

  • Profile picture of Hugo Hugo said 1 year, 11 months ago:

    @josh101 you need to follow the steps in the post above my last one, it references giving a hard coded numeric value to the pag_per_page object

    
    as for a fix on the pagination issue, can you replace the line
    $this->pag_per_page = $per_page;
    with
    $this->pag_per_page = '20';
    on line 29 of bb-cubepoint-templatetags.php
    
  • Profile picture of josh101 josh101 said 1 year, 11 months ago:

    @hnla Thanks how do we controll how many items are on a page?

  • Profile picture of Hugo Hugo said 1 year, 11 months ago:

    @josh101 I think that part of the plugin hasn’t been written yet? as far as I’m aware. The fix above simply prevents the division error by providing a value that was missing.

  • Profile picture of josh101 josh101 said 1 year, 11 months ago:

    At least it works now.

  • Profile picture of PJ PJ said 1 year, 11 months ago:

    I followed the highlight-and-replace suggestion in the bp-cubepoint-core.php file but the error still occurs. If you could help me out, I’d love to overcome this error. Thanks.

  • Profile picture of Hugo Hugo said 1 year, 11 months ago:

    @pjnu it’s going to help to know what error you are referring to and what versions of everything you are running.

    There are a total of four issues two in cubepoints parent plugin and two in BPCP

    If no points tables returned in a members account then you need to apply the DB fix but this is for WPMU. If you want the pagination working and to kill the division by zero error then you need to apply the fix for pag_per_page fix few posts up; in reality you need both these running WPMU for the moment .

  • Profile picture of PJ PJ said 1 year, 11 months ago:

    WPMU 2.9.2, CubePoints 2.1.3m CP BP Integration 1.7.1. Both activated side wide.

    When I click on a user’s page then click on the “Points” item next to Settings, the following lines of text are draped between the admin bar and the header image and rest of the page:

    Warning: Division by zero in /wp-content/plugins/cubepoints-buddypress-integration/includes/bp-cubepoint-templatetags.php on line 56

    Warning: Division by zero in /wp-content/plugins/cubepoints-buddypress-integration/includes/bp-cubepoint-templatetags.php on line 65

  • Profile picture of thandprunkahscab thandprunkahscab said 5 months, 2 weeks ago:

    I am not young enough to know everything

  • Profile picture of cennoabaas cennoabaas said 4 months, 3 weeks ago:

    Bad beginning makes a bad ending