Peter Hudson
Forum Replies Created
-
Wow, thanks for that. Absolutely brilliant.
Worked like a charm.
Keep up the excellent work….it’s hugely appreciated.
Forum: Plugins
In reply to: [Achievements for WordPress] Achievements page 2 and 3 doesn't workHi, sorry I can see this has been marked as resolved, but I thought I might add something here. If you don’t see this Paul, I will post another entry separately tomorrow.
I had this problem myself, and whilst I can’t tell you what is wrong exactly I can tell you what I think it is associated with Paul, which might help you understand why it might be happening (I fully appreciate it might be a theme thing though and nothing to do with achievements).
Setting the WordPress Read Settings to show more posts per page than you have achievements, breaks the achievements pagination (or at least that is what is happening for me).
So if I have 18 achievements and Blog is set to show 17 posts, achievements shows 15, then pagination works and shows final 3.
If Blog is set to show 19 posts, achievements again shows first 15 but then pagination does not work – it can’t find the second page because it assumes as there are 18 achievements it has shown them all I think.
So I guess the question is does achievements show only 15 posts per page regardless of blog settings – I think this is why pagination MIGHT be breaking.
Hope that helps.
Forum: Plugins
In reply to: [Achievements for WordPress] Redeem achievements via codeThanks for your reply – looking forward to that if you can get it sorted.
Forum: Plugins
In reply to: [Achievements for WordPress] Implement Custom EventHi, I was wondering if you had added support for your event atez1231?
I am not a beginner with php, but certainly not ‘experienced’. The same with WordPress.
I want to add support for another plugin I have, and I know what the action hooks are.
I have looked in the directory suggested and created a file for the plug in – I’m assuming here that all that needs to be done is use the one php file, extending the DPAachievements class, list that as an include in the plugin and achievements will add the actions listed in array.
-
But I’m struggling a bit
– the plugin is recognized and listed in the available plugins, and the list of available actions is shown, but when adding an achievement the actions are not on the list.
Whilst experimenting I managed to get it to appear on the list – I must have changed something or done something and then changed it again, the action was on the list, but any further ones added to the array did not get added and if I changed the description of the action it didnt change on the list – suggesting I had changed something for the worse..
Anyway, I know you are working on the documentation Paul, but I was wondering if there was any basic documentation on what the file should look like – maybe for some other plug in that someone had put together that was not one of the built in ones.
I could probably work it out from there?
Forum: Plugins
In reply to: [Achievements for WordPress] Only the administrator can unlock achievements.Marvellous. Thanks very much. The simplest things ey.
Forum: Plugins
In reply to: [Achievements for WordPress] Only the administrator can unlock achievements.Thanks. Great work btw.
Forum: Plugins
In reply to: [Achievements for WordPress] Only the administrator can unlock achievements.Hi, I was wondering if it was me. I love this plugin and have been waiting eagerly for this release as I wanted to put it onto a WordPress only install, no Buddypress.
I’ve installed it but only the administrator is getting post events awarded.
If I login with another user, and their post is set to draft, then the administrator logs in and publishes it, the administrator seems to be awarded?
It’s weird because Cube Points picks it up and awards the points appropriately.
I see from your code you are doing extra checks on post publishing.
Tried on Fresh install of WordPress 3.5.1 with no plugins and Default theme.