DrHariri
Forum Replies Created
-
Forum: Plugins
In reply to: [BadgeOS] Achievement Points show with Date?I am trying this on my live site, will let you know if the issue persists. Thanks Michael ??
Forum: Plugins
In reply to: [BadgeOS] Can you get a badge from opening a pageIn this case it’s more than enough for me :). Thanks a lot!
Forum: Plugins
In reply to: [BadgeOS] Can you get a badge from opening a pageHi again,
Michael, I was wondering if there is a way to modify the above code you supplied or add an IF condition to check if the achievement was already awarded or not? This way, instead of running the shortcode everytime the page loads, and where appropriate, it would award it on first load for the page X, rather than accepting the usual behavior which is to award everytime.
Of course, I am only asking this in case it was better than just editing the achievement to be awarded one time. If there is no big issue of running the code on the page everytime even it it was given, then please ignore this question and all is good!
Thanks again for this helpful code!
Forum: Plugins
In reply to: [BadgeOS] Display points of usersThanks, I made a clone of the code and changed where needed and all is working fine.
Again, thanks all for the useful codes here and in other posts!
Forum: Plugins
In reply to: [BadgeOS] Display points of usersHi Dylan,
Thanks for your code!I am curious to know how best to define the user id within the shortcode if needed? would something like this work if I wanted to pass the author id?
echo do_shortcode( '[badgeos_get_current_user_points '.$user_id.'='.$author_id.']' );
I tried it but it didn’t work so I was thinking to create another shortcode for the authors but then thought I could check here first.
Thanks!
Forum: Plugins
In reply to: [BadgeOS] Display author and users Badges within worpress/buddypress profileVery useful codes Michael,
Thanks for helping the not so pro programmers like us :).Forum: Plugins
In reply to: [BadgeOS] Language IssueHi Michael,
Thanks for your response! I too think that the issue is cause by the sanitize_title().
I look forward to any solutions you propose :). Please let me know if you want me to test anything.
Many thanks!
Forum: Plugins
In reply to: [BadgeOS] Language IssueHi Michael,
Thanks for getting back to me and for helping resolve the issue and making the plugin work with other languages.
To answer your question, I tried using an Arabic name for the achievement type, this resulted in the following problems for me:
- Inability to define steps per badge as when I click on the button to define the step nothing happens.
- When I click view to view the badge, I get an 404 error page.
I’ve tried to use another achievement type which I used English to create, I was able to view the badge page in the front-end and was able to define steps.
Back to the achievement type I created in Arabic, I was trying to use the word ????? as the title and a similar word as the plural form ???????. This caused the URL structure for this particular achievement type to look strange. You can see this pictures to get an idea of what I meant:
Arabic Name used for achievement type and achievement post. You can see the link looks strange and very long.
English Name used for achievement type but Arabic for post, but English for slug to be safe (all working).
I hope I was of little help to provide the information that might. I guess one possible solution would be to offer a way to define the slug that would be used for the URL structure and have that defined as part of the achievement type creation rather than having it auto-generated from the achievement type title.
I am happy to help provide further information or test possible solutions.
Forum: Plugins
In reply to: [BadgeOS] Language IssueYes please, is there a simple filter that I could use within functions.php to replace the achievement types names in the front-end which I could then add as needed for all types text to be replaced?
Otherwise, how do you suggest I go through the translation route?
Thanks!
Forum: Plugins
In reply to: [BadgeOS] Language IssueWill hopefully try that. Care (please!) to give me a few tips before I try this lol. I am no coder :).
Thanks!
Forum: Plugins
In reply to: [BadgeOS] Language IssueThe Achievement types ones. Basically, I was trying to get an achievement type and used Arabic letters. I tried defining an English slug but it’s probably not using the slug.
I guess one approach could be to create them in English but then user filters or translation files somehow to output the Arabic words for the achievement titles?
Thanks a lot for helping with this!
Forum: Plugins
In reply to: [BadgeOS] Language IssueHi Michael,
Thanks for replying!
I am developing the website and ignored it for the type being, but I really hope there is someway this could work.
Do you think it’s possible to force the plugin to use english letters for the coding stuff perhaps based on the slug?
Thanks!
Forum: Plugins
In reply to: [BadgeOS] Can you get a badge from opening a pageThis is very helpful, thanks Michael!
A small pop on the bottom-right corner would be great. the sound part is also great incase the user didn’t see the popup but it can be an on/off. Most websites will probably not hand out badges/achievements every second ?? so I guess it should be fine.
This is strange:
my old structure was /%postname%.htm/I changed it to: /%post_id%/%postname%/
Redirecting doesn’t work…