Skip to:
Content
Pages
Categories
Search
Top
Bottom

Point Legend?

  • Avatar of GUAP
    GUAP
    Participant

    @gearupandplay

    Is there a Dynamic Page that shows what you get points for. I don’t mean the my points page which shows what you have earned points by doing. I mean a page that reflects all the possible ways to earn points and how many points each action earns a member.

    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • Avatar of Tosh
    Tosh
    Participant

    @xberserker

    There isn’t a dynamic page no, but that’s a great idea. I just made a regular wordpress page detailing all the ways to earn points.

    Avatar of Tosh
    Tosh
    Participant

    @xberserker

    @gearupandplay I’ve made some great progress on this. I have this just on my test site at the moment. But this is how it works:

    My Account > Points > How to Earn Points

    This takes you to a place where is shows all the possible ways to earn points. I have it so only positive numbers will show up. On the left hand side I have the top 20 members. But you would be able to change this number from the admin when I’m done.

    It is dynamic as well. If you change how much a activity is worth in points it updates here as well. I have a short code for this as well. But you have to put some code into your functions.php file. The shortcode would be [earnpoints] so you could use this in post/pages, haven’t tried widgets but I would assume so.

    It looks like this pretty much:

    Here is how you can earn points

    Community

    5 Points – Update
    5 Points – Leaving a reply
    100 Points – Creating a group
    5 Points – Group Update or Reply
    15 Points – Completed Friend Request
    20 Points – New Group Forum Topic
    5 Points – New Group Forum Post
    5 Points – Avatar Uploaded

    Blog Activity

    5 Points – Blog Comment
    40 Points – Blog Post

    Misc

    100 Points – Becoming a Member
    15 Points – Daily Login

    If anyone is interested in beta testing this let me know!

    Avatar of GUAP
    GUAP
    Participant

    @gearupandplay

    Sounds like a great addition, especially the dynamic part. I could try putting it up on my site. Honestly I never beta tested anything so I don’t know if I would be a good tester…lol. Do I just install it and report any issues. Well keep up the good work.

    Avatar of Tosh
    Tosh
    Participant

    @xberserker

    I’ll get a beta version ready tonight and post the link here.

    Avatar of Tosh
    Tosh
    Participant

    @xberserker

    @gearupandplay

    Make a backup of the following files:

    /cubepoints-buddypress-integration/loader.php
    /cubepoints-buddypress-integration/includes/bp-cubepoint-admin.php
    /cubepoints-buddypress-integration/includes/bp-cubepoint-core.php
    /cubepoints-buddypress-integration/includes/bp-cubepoint-screens.php

    And replace them with these
    http://www.slyspyder.com/download/CP-BP-Beta.zip

    Then go to the admin menu. At the bottom you’ll see “Points Leaderboard” which will control how many top members show up on the “How to Earn Points” page.

    Then the Enable “How to Earn Points” Menu Item:
    Just enable and disable that to test. You have to refresh an extra time for the menu to show up.

    The link “Want to use the shortcode [earnpoints] instead?” pulls up a pop-up box on how to manually enable the short code [earnpoints]

    Try the shortcode in posts/pages/widgets and let me know how that looks.

    Avatar of GUAP
    GUAP
    Participant

    @gearupandplay

    OK, I did what you said. I had to go in and add the earnpoints.php as well as it kept taking me to home page. I think its functioning well. This is petty but I think it would be better to have the earn points on the left with leaderboard on the right sense its half way down the page. I guess its best you take a look yourself. http://www.gearupandplay.com/members/mfalk75/guappoints/earnpoints/

    So far I have not had any issue and I’ll continue to mess around with it and test it. I have not messed around with shortcode yet. Today probably won’t have time but I’ll let you know how it goes. Great work.

    Avatar of Tosh
    Tosh
    Participant

    @xberserker

    Glad to hear it works. I was thinking about moving the top member list to the right anyway.

    Do you think it’s worth it to have the top members list on the page as well? At least you can choose how many show up there.

    Is how the points activity separated seem ok? Community/Blog Activity/Misc

    I’ll have the text “Here is how you can earn points” an option in the admin so you can change that yourself. Among a few other tweaks.

    Avatar of GUAP
    GUAP
    Participant

    @gearupandplay

    I think it don’t hurt to have top members listed there. It fills some otherwise empty space and is a nice addition for people to take note of while checking on the ways to earn points. The way you have the points separated seem logical to me and makes sense. So far everything seems to work good.

    Avatar of Tosh
    Tosh
    Participant

    @xberserker

    @gearupandplay Go ahead and upgrade to the latest version :)

    Avatar of alienalias
    alienalias
    Participant

    @alienalias

    I have been trying to install the [earnpoints] shortcode to no avail. I am somewhat of a technical idiot, so though I can go find the proper folders or files, I always have trouble in knowing where to place said code. I went into the functions.php file of my theme, and basically at the end and just before the ?> line, I inserted the following:

    // **Begin** Enable CubePoints BuddyPress Shortcode [earnpoints]
    function cbbp_earnpoints () {

    output .= ‘<p>‘;
    output .= get_option(‘bp_earnpointstitle_cp_bp’);
    output .= ‘
    </p>';

    output .= ‘‘;
    _e(‘Community’,’cp_buddypress’);
    output .= ‘
    <br /><br />';

    if (get_option(‘bp_update_post_add_cp_bp’) > 0) {
    output .= get_option(‘bp_update_post_add_cp_bp’);
    _e(‘ Points – Update’,’cp_buddypress’);
    output .= ‘<br />';
    }

    if (get_option(‘bp_update_comment_add_cp_bp’) > 0) {
    output .= get_option(‘bp_update_comment_add_cp_bp’);
    _e(‘ Points – Leaving a reply’,’cp_buddypress’);
    output .= ‘<br />';
    }

    if (get_option(‘bp_create_group_add_cp_bp’) > 0) {
    output .= get_option(‘bp_create_group_add_cp_bp’);
    _e(‘ Points – Creating a group’,’cp_buddypress’);
    output .= ‘<br />';
    }

    if (get_option(‘bp_group_avatar_add_cp_bp’) > 0) {
    output .= get_option(‘bp_group_avatar_add_cp_bp’);
    _e(‘ Points – Uploading a group avatar’,’cp_buddypress’);
    output .= ‘<br />';
    }

    if (get_option(‘bp_join_group_add_cp_bp’) > 0) {
    output .= get_option(‘bp_join_group_add_cp_bp’);
    _e(‘ Points – Joining a group’,’cp_buddypress’);
    output .= ‘<br />';
    }

    if (get_option(‘bp_leave_group_add_cp_bp’) > 0) {
    output .= get_option(‘bp_leave_group_add_cp_bp’);
    _e(‘ Points – Leaving a group’,’cp_buddypress’);
    output .= ‘<br />';
    }

    if (get_option(‘bp_update_group_add_cp_bp’) > 0) {
    output .= get_option(‘bp_update_group_add_cp_bp’);
    _e(‘ Points – Group Update or Reply’,’cp_buddypress’);
    output .= ‘<br />';
    }

    if (get_option(‘bp_friend_add_cp_bp’) > 0) {
    output .= get_option(‘bp_friend_add_cp_bp’);
    _e(‘ Points – Completed Friend Request’,’cp_buddypress’);
    output .= ‘<br />';
    }

    if (get_option(‘bp_forum_new_topic_add_cp_bp’) > 0) {
    output .= get_option(‘bp_forum_new_topic_add_cp_bp’);
    _e(‘ Points – New Group Forum Topic’,’cp_buddypress’);
    output .= ‘<br />';
    }

    if (get_option(‘bp_forum_new_post_add_cp_bp’) > 0) {
    output .= get_option(‘bp_forum_new_post_add_cp_bp’);
    _e(‘ Points – New Group Forum Post’,’cp_buddypress’);
    output .= ‘<br />';
    }

    if (get_option(‘bp_avatar_add_cp_bp’) > 0) {
    output .= get_option(‘bp_avatar_add_cp_bp’);
    _e(‘ Points – Avatar Uploaded’,’cp_buddypress’);
    output .= ‘<br />';
    }

    if (get_option(‘bp_pm_cp_bp’) > 0) {
    output .= get_option(‘bp_pm_cp_bp’);
    _e(‘ Points – Message Sent’,’cp_buddypress’);
    output .= ‘<br />';
    }

    if (get_option(‘bp_bplink_add_cp_bp’) > 0) {
    output .= get_option(‘bp_bplink_add_cp_bp’);
    _e(‘ Points – Link Created’,’cp_buddypress’);
    output .= ‘<br />';
    }

    if (get_option(‘bp_bplink_vote_add_cp_bp’) > 0) {
    output .= get_option(‘bp_bplink_vote_add_cp_bp’);
    _e(‘ Points – Link Voted’,’cp_buddypress’);
    output .= ‘<br />';
    }

    if (get_option(‘bp_bplink_comment_add_cp_bp’) > 0) {
    output .= get_option(‘bp_bplink_comment_add_cp_bp’);
    _e(‘ Points – Link Comment’,’cp_buddypress’);
    output .= ‘<br />';
    }

    if (get_option(‘bp_gift_given_cp_bp’) > 0) {
    output .= get_option(‘bp_gift_given_cp_bp’);
    _e(‘ Points – Gift Given’,’cp_buddypress’);
    output .= ‘<br />';
    }

    if (get_option(‘bp_gallery_upload_cp_bp’) > 0) {
    output .= get_option(‘bp_gallery_upload_cp_bp’);
    _e(‘ Points – Gallery Upload’,’cp_buddypress’);
    output .= ‘<br />';
    }

    output .= ‘<br />‘;
    _e(‘Blog Activity’,’cp_buddypress’);
    output .= ‘
    <br /><br />';

    if (get_option(‘cp_comment_points’) > 0) {
    output .= get_option(‘cp_comment_points’);
    _e(‘ Points – Blog Comment’,’cp_buddypress’);
    output .= ‘<br />';
    }

    if (get_option(‘cp_post_points’) > 0) {
    output .= get_option(‘cp_post_points’);
    _e(‘ Points – Blog Post’,’cp_buddypress’);
    output .= ‘<br />';
    }

    output .= ‘<br />‘;
    _e(‘Misc’,’cp_buddypress’);
    output .= ‘
    <br /><br />';

    if (get_option(‘cp_reg_points’) > 0) {
    output .= get_option(‘cp_reg_points’);
    _e(‘ Points – Becoming a Member’,’cp_buddypress’);
    output .= ‘<br />';
    }

    if (get_option(‘cp_daily_points’) > 0) {
    output .= get_option(‘cp_daily_points’);
    _e(‘ Points – Daily Login’,’cp_buddypress’);
    output .= ‘<br />';
    }
    output .= get_option(‘bp_earnpoints_extra_cp_bp’);
    return $output;
    }
    add_shortcode(‘earnpoints’, ‘cbbp_earnpoints’);
    // **END** Enable CubePoints BuddyPress Shortcode [earnpoints]
    ————————————————————————————–
    So, that doesn’t work, but I am VERY interested in getting this code functional. Please HELP! :)

    THANK YOU so much, in advance.

Viewing 10 replies - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.