rogerhnn
Forum Replies Created
-
Forum: Plugins
In reply to: [BadgeOS] Single badge display changeI changed the way a badge display using the css, but its not like I wanted. And changing in the core file its much difficult. I want to style the way you see the badge page when you look at an individual badge.
Forum: Plugins
In reply to: [BadgeOS] How to delete stepsHi Michael, I deleted the entries from my database selecting the custom post type steps. I think I got rid of them all.
Thanks, its solved!
Forum: Plugins
In reply to: [BadgeOS] Single badge display changeHi Michael, I tried but didnt got it to work. I dont know how to make a query and get this to work properly. Sorry :/
Forum: Plugins
In reply to: [BadgeOS] How to delete stepsOkay Michael, thank you for your attention ??
Forum: Plugins
In reply to: [BadgeOS] How to delete stepsI mean the steps from the meta box required steps, it contain the steps added through the BadgeOS BadgeStack Add-on. The ones you can save and enter a title in the label box. These are the ones that I want to remove.
Forum: Plugins
In reply to: [BadgeOS] How to delete stepsHi Michael, I didnt found a way to delete steps saved before.
I can delete the achievement created and the achievement types created, but the steps remain. And I didnt find the red “trash” link for the steps. I can only see the trash of achievements and achievements types.Forum: Plugins
In reply to: [BadgeOS] Create a function with the points variableHi Michael, me again!
Can you please take a look at this code?
https://pastebin.com/Va8gqLjCIts the code that you helped me build, theres an error in some part, but as I said, I am not good with php.
Thanks again
Forum: Plugins
In reply to: [BadgeOS] Create a function with the points variableThank you very much for helping me with this!
I made a plugin to display the points in the members header without need to touch the members header file ??Next Step is to make a plugin to show the user level!
Forum: Plugins
In reply to: [BadgeOS] Create a function with the points variableI only got it to work by checking if this function exists:
badgeos_get_achievementsForum: Plugins
In reply to: [BadgeOS] Create a function with the points variableThank you so much Michael! It worked perfectly!
You are awesome man!
??// Edit
Another quick one, how can I make this code to work only if the badgeOS are present?
Something like:
<?php if (function_exists(‘badgeOS’)) {
//the above code here;
} else {}
?>Forum: Plugins
In reply to: [BadgeOS] Create a function with the points variableWell, my familiarity with php is small, the basics I think.
What I tried:
<?php $user_points = get_user_meta( 1, '_badgeos_points', true ); if ( $user_points < '100' ) { echo <span class="badge-points"><?php _e( "Level 1", 'viewr' ); ?></span> } else if ( $user_points >= '100' && $user_points < '250' ) echo <span class="badge-points"><?php _e( "Level 2", 'viewr' ); ?></span> } else { echo <span class="badge-points"><?php _e( "Level 0", 'viewr' ); ?></span> } ?>
For some reason this code isnt working, the php tag dont close properly.
Also, if you can help me retrieving the current user id I will be grateful!
And thanks again for helping me out!Forum: Plugins
In reply to: [BadgeOS] How to delete stepsThe ones that I created.
Forum: Plugins
In reply to: [BadgeOS] Create a function with the points variableThank you for your answer, but I am having trouble to make this work!
I used the function above and got a white screen in my profile :/Forum: Plugins
In reply to: [BadgeOS] Create a function with the points variableOkay, can you help me a little more with the code?
By meta key of “_badgeos_points” what do you mean?
I should use:
if(_badgeos_points > 0 && _badgeos_points < 100)
return <span class=”level”>Level 1</span>
else if(_badgeos_points > 100 && _badgeos_points <250)
return <span class=”level”>Level 2</span>?
ThanksForum: Plugins
In reply to: [BadgeOS] Create a function with the points variableuser total points.