• Resolved Sagano

    (@sagano)


    Hi,

    I want my users to never see the back-end of my site, and as far as I know bbPress and Buddypress both use back-end member profiles. That’s why I’m using Ultimate Member instead, with front-end login and member profiles.

    However, I would like for my members to be able to see a list of the achievements they have earned, beyond the latest achievements displayed by the earned user achievements widget. Is this only possible using bbPress/BuddyPress or can I make it show on a front-end page for a logged in member using Ultimate Member instead? ??

    https://www.ads-software.com/plugins/badgeos/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Michael Beckwith

    (@tw2113)

    The BenchPresser

    Not sure where you heard about bbPress and BuddyPress using backend profiles. All my experiences show they focus on frontend profiles, especially BuddyPress.

    See if my article here spurs on any solutions: https://trexthepirate.com/badgeos/2014/12/show-off-users-achievements-part-one/

    Thread Starter Sagano

    (@sagano)

    I only looked at the plugins’ screen shots but perhaps the ones displaying the back-end only had to do with what it looks like to the administrator.

    I’m not looking for very many “social features” or what to call it, I don’t want activity feeds or for my members to be able to upload any material, I only want them to log in to earn achievements and to see a list of their earned achievements, but perhaps I can disable all the other stuff that comes with bbPress and BuddyPress ?? And hopefully still have a front-end log in solution.

    Thanks for your answer, I’ll check out the article!

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Need to find a dedicated area you want to show this stuff off at for the current user at this point. the [badgeos_achievements_list] shortcode can do it likely, and I can envision a way to execute it while taking the current user, though it’s a bit of a workaround in some ways. Just as an initial thought.

    Thread Starter Sagano

    (@sagano)

    Well that sounds good. You mean as a way of showing earned achievements without installing BuddyPress, right?

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Yes, BuddyPress isn’t required to display someone’s achievements. It DOES makes things very convenient to display someone ELSE’S achievements to the current logged in user, because BuddyPress has profiles and “Displayed user” user IDs. As I’ve interpreted your need, you need to show the current user their own achievements, not someone else’s. So you just need to accurately pass in the current user’s ID to the various methods to show achievements that take specific user inputs, like the [badgeos_achievements_list] can, or the widget does by default.

    Thread Starter Sagano

    (@sagano)

    Oh ok, great! I’ll make a try then and see if I can get it right ?? Thanks.

    Thread Starter Sagano

    (@sagano)

    [badgeos_achievements_list type=”all” limit=”60″ show_filter=”false” show_search=”false” orderby=”menu_order” order=”ASC” user_id=””]

    If I insert a shortcode that looks something like that in a page, does that require me to manually create such a page for each user and their respective ids, or can my site fill in the right id on its own?

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Re-looked over the code as it had been awhile. It looks like if you don’t specify a user, then the current user gets used. So if my mental logic is correct, it’d be a 1 page thing that has achievements displayed relative to the logged in user.

    Thread Starter Sagano

    (@sagano)

    It seems I am in the same situation as TMJ31 was about a year ago. When I insert the above mentioned shortcode all the achievements show, both achieved and not yet achieved ones. I would like to display only the achieved ones.

    I tried following the instructions you gave TMJ31 – I added the github code to my theme’s functions.php, but that just broke the theme and I had to reinstall it.

    You don’t happen to know what I did wrong? I know he uses/used BuddyPress, but that isn’t a requirement for the github code to work, right?

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    A bit excessive to have to re-install the theme, all you would have needed to do was edit the functions.php file via FTP or so, which you should have as an option anyway, since one PHP error via the WP Admin editor can lock you out of the site.

    I do not know what went wrong without having known the errors encountered.

    I assume you mean my gist here https://gist.github.com/tw2113/6c31366d094eee6d5151 There’s nothing specific to BuddyPress, so that’s not the issue.

    Thread Starter Sagano

    (@sagano)

    Yeah, I did edit the functions.php first, but I guess I’m not yet as familiar as I should be with FileZilla… My site was still all blank, so I found it easier to just reinstall the theme since I hadn’t done many changes to it anyhow.

    OK, I’ll try it again then ?? Just to be sure, what I’m supposed to do is copy all of that gist, from row 1 to 50, and just paste it at the bottom of my theme’s functions.php?

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    You should be able to omit the opening <?php tag on line 1 unless it’s already closed at the end of your file. However, it’d be easier to just remove the closing ?> at the end as well, and they’re not needed at the very end of the file.

    Thread Starter Sagano

    (@sagano)

    Awesome, it worked out exactly as I wanted it to. Thanks for guiding me!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘"Earned achievements" without bbPress or BuddyPress’ is closed to new replies.