WordPress.org

Ready to get started?Download WordPress

Forums

CubePoints
Rank icon (16 posts)

  1. pfosenbauer
    Member
    Posted 7 months ago #

    Nice Plugin, just I'd like one more feature: How can I associate an icon with a rank? (something like Tripadvisor.com).
    Thanks,
    Peter

    http://wordpress.org/plugins/cubepoints/

  2. SimpleMan
    Member
    Posted 7 months ago #

    I like this suggestion as well. Icon or the ability to add some sort of image of our choosing.

  3. pfosenbauer
    Member
    Posted 7 months ago #

    Nobody?

  4. sevelina
    Member
    Posted 6 months ago #

    Yes! Rank images would be perfect!!!! like it was long time ago, I really miss about this function.

  5. pfosenbauer
    Member
    Posted 6 months ago #

    Guys, try this:
    https://github.com/Sohag07Hasan/Cubepoints---With-Advanced-Modifications/tree/master/modules/notice
    It's 2 years old, but it works.
    I'd recommend to uninstall CubePoints first, not just overwrite the files, so you don't get to the same problems I did.
    Have fun.

  6. pfosenbauer
    Member
    Posted 6 months ago #

  7. sevelina
    Member
    Posted 6 months ago #

    @pfosenbauer Thank you for the link.
    I have tried it. I still can’t see rank image at user profile, it show me only rank itself without image. Do you know how to fix it?

  8. pfosenbauer
    Member
    Posted 6 months ago #

    have you uploaded the icons for each rank?

  9. sevelina
    Member
    Posted 6 months ago #

    @pfosenbauer,
    Yes, I do uploaded all rank images. Buddypress user profile page displays only points and rank name - no rank image. I'm using the latest version of WP and BP.
    Do you have images work at your website?

  10. pfosenbauer
    Member
    Posted 6 months ago #

    Working on something, will let you know if I get some results.

  11. pfosenbauer
    Member
    Posted 6 months ago #

    OK, I've got it working, the Top Users widget works as it is, had to tweak the My Points widget to show stars(icons) and the wp-symposium module (that's what the site under development is using). In ranks.php change (around line 183):

    function cp_module_ranks_widget(){
    		if(is_user_logged_in()){
    			?>
    				<li><?php _e('Rank', 'cp'); ?>: <?php echo cp_module_ranks_getRank(cp_currentUser()); ?></li>

    to:

    function cp_module_ranks_widget(){
    		if(is_user_logged_in()){
    			?><li>
    <?php _e('Rank:', 'cp'); ?><img style="width:20px; height:20px;padding:3px;vertical-align:top" src="<?php echo cp_module_ranks_getLogo(cp_currentUser()); ?>"><?php echo cp_module_ranks_getRank(cp_currentUser()); ?></li><code></code>
    Change the style to whatever you want.
    Similar fix should work in any php file using the same function.
    The wp-symposium.php module gave me a little more trouble, as it uses PHP HTML parser ($html).
    Around line 288, change:
    $html .= '<div>';
    $html .= __('Points:', 'cp').' '.cp_getPoints($uid1);
    if(cp_module_activated('ranks')){
    $html .= ', '.cp_module_ranks_getRank($uid1);
    }`
    to:

    $html .= '<div>';
    				$html .= __('Points:', 'cp').' '.cp_getPoints($uid1);
    				if(cp_module_activated('ranks')){
    					$html .= '&nbsp;<img style="width:25px; height:25px;padding:0 1px 5px;vertical-align:top" src="'.cp_module_ranks_getLogo($uid1).'"/>';
    
    					$html .= ' '.cp_module_ranks_getRank($uid1);
    				}

    Hope it helps.

  12. sevelina
    Member
    Posted 6 months ago #

    @pfosenbauer
    That worked perfectly for me THANK YOU!!!

  13. pfosenbauer
    Member
    Posted 6 months ago #

    @sevelina
    you're welcome ;)

  14. clantroublemaker
    Member
    Posted 5 months ago #

    hello, i couldnt find The wp-symposium.php module. Could you explain more

  15. clantroublemaker
    Member
    Posted 5 months ago #

    and where can i upload image

  16. pfosenbauer
    Member
    Posted 5 months ago #

    the module download here:
    http://www.wpsymposium.com/2012/02/wp-symposium-cubepoints-module/
    To upload the images (icons), go to dashboard > Cubepoints > Ranks.
    Hope it helps

Reply

You must log in to post.

About this Plugin

About this Topic