WordPress.org

Ready to get started?Download WordPress

Forums

Achievements for WordPress
[resolved] Display of the achievements (14 posts)

  1. MichaelAcosta1
    Member
    Posted 1 year ago #

    Hello I am trying to use your plugin on my website but I'm having a lot of problems with the page display of the achievements the same returns an error saying that the page was not found. Would like to know how to solve this problem, and if possible I would ask if I translate the content of your plugin to Portuguese of Brazil to use on my site and if possible add a few other features, it was possible to decrease the size of the reward notice for something relatively more discreet or less at the bottom of the screen if possible I appreciate your help and sorry for my bad English I speak Portuguese and I use the google translator. Thanks for the trouble

    http://wordpress.org/extend/plugins/achievements/

  2. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 1 year ago #

    Wow. Lots of questions! Let's try to fix one problem at a time.

    > "returns an error saying that the page was not found."
    If you go to the Pages screens in the wp-admin, do you have a Page called "achievements"?

  3. MichaelAcosta1
    Member
    Posted 1 year ago #

    Sorry for my several questions :). In my pages do not have the achievements page, how do I create it? thank you!

  4. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 1 year ago #

    You don't need to create it. I was just checking you hadn't made one, because doing that can cause this problem.

    In wp-admin Settings > Permalinks, what do you have the permalinks set to?

    Is your site public? Can you link me to it?

  5. MichaelAcosta1
    Member
    Posted 1 year ago #

    My permalinks are with custom framework > /%category%/%postname%/ <

    My website >www.tecnoreview.tk

  6. MichaelAcosta1
    Member
    Posted 1 year ago #

    I found that the problem was the host. I made the switch from windows to linux host, and now the plugin is working correctly. I wonder how do I create new achievements for worpress? I'll have to ask you? thank you

  7. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 1 year ago #

    Ah hah! I thought it might be rewrite rules-related. I'm glad that switching server type didn't break anything :)

    By new achievements - do you mean *type* of achievements? Example of built-in types are like "user publishes a blog post" or "user writes a comment". Do you mean that kind of thing, or are you looking for more general guidance on how to use the plugin?

  8. MichaelAcosta1
    Member
    Posted 1 year ago #

    I would like to create new rules, for example, the User comments 100 times and then get a reward for this this. And I do not know if I was clear why the google translator does not translate correctl.thx

  9. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 1 year ago #

  10. MichaelAcosta1
    Member
    Posted 1 year ago #

    I looked at your link, but I would like you to explain how it works to create an achievement in event format (automatic), not the format award.

  11. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 1 year ago #

    If you look at that page, there is a screenshot. Click "event", then click in the box below it. A pop-up list will appear, and you choose the event (or events) that you want the achievement to react to.

  12. MichaelAcosta1
    Member
    Posted 1 year ago #

    Ok, do not think you understand where I'm going, I understood how it works events and prizes. What I want to know is how to create NEW TYPES events besides the ones you already have on the list. For example "clicking on certain part of the site and get a new achievement or log for 10 consecutive days or less", ie something beyond what you already programmed into your plugin. Would like something like a new content to the plugin. well I hope I have been clearer this time, I hope to help me because I really liked your plugin thanks for the help.

  13. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 1 year ago #

    Gotcha. Well, you need to know PHP and how to write WordPress plugins.

    I have not any documentation or guide for this, but look at the includes/extensions/inviteanyone.php file as an example.

    * You need to duplicate that class, rename things, etc.
    * The names of the WordPress actions need to put into the $this->actions array.
    * Instantiate the class like this:


    function ma_event_types() {
    require 'my_class.php';
    achievements()->extensions->my_class_name = new my_class;
    }
    add_action('dpa_init', 'ma_event_types');

  14. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 1 year ago #

    If you have a go and get stuck, share what code you've written onto pastebin or gist.github.com, and I'll help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags