Viewing 15 replies - 1 through 15 (of 15 total)
  • I like this suggestion as well. Icon or the ability to add some sort of image of our choosing.

    Thread Starter pfosenbauer

    (@pfosenbauer)

    Nobody?

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

    Thread Starter pfosenbauer

    (@pfosenbauer)

    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.

    Thread Starter pfosenbauer

    (@pfosenbauer)

    @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?

    Thread Starter pfosenbauer

    (@pfosenbauer)

    have you uploaded the icons for each rank?

    @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?

    Thread Starter pfosenbauer

    (@pfosenbauer)

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

    Thread Starter pfosenbauer

    (@pfosenbauer)

    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.

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

    Thread Starter pfosenbauer

    (@pfosenbauer)

    @sevelina
    you’re welcome ??

    clantroublemaker

    (@clantroublemaker)

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

    clantroublemaker

    (@clantroublemaker)

    and where can i upload image

    Thread Starter pfosenbauer

    (@pfosenbauer)

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

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Rank icon’ is closed to new replies.