Rank icon
-
Nice Plugin, just I’d like one more feature: How can I associate an icon with a rank? (something like Tripadvisor.com).
Thanks,
Peter
-
I like this suggestion as well. Icon or the ability to add some sort of image of our choosing.
Nobody?
Yes! Rank images would be perfect!!!! like it was long time ago, I really miss about this function.
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.Sorry the link is https://github.com/Sohag07Hasan/Cubepoints—With-Advanced-Modifications
@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?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?Working on something, will let you know if I get some results.
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 .= ' <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!!!@sevelina
you’re welcome 😉hello, i couldnt find The wp-symposium.php module. Could you explain more
and where can i upload image
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
The topic ‘Rank icon’ is closed to new replies.