Just a suggestion, but it seems to me like there should be panels support. I have a website with multiple badges for my users and I would like to either have A) a page of all badges they have earned or B) ability to a list of the users earned badges to panels so I can display this in the profile. I think panels support would be best.

Comments

Richard Blackborder’s picture

I'm not terribly familiar with panels, but it sounds to me like you want views for this function.

Both those things you want sound like a view to me, which you could then put into the panel.

infines’s picture

Is there a description on how to do this? I made a view, but it shows all users badges. Like if user 1 has badge A and user 2 has badge B. On user 1's page will show both badge A and B. So will user 2's page.

Richard Blackborder’s picture

Status: Active » Fixed

You need views arguments to do this. You'll need to go read Views docs and use other views resources for that, though.

Personally I find there's a lot of good stuff on views out in the general web - videos and blogs etc.

infines’s picture

Thanks! I still think you should consider making a user badges block for it though.

Richard Blackborder’s picture

I appreciate the feedback.

My attitude is that it's always better to do something with existing modules if possible because they usually do these things a lot better. Also, getting experience with modules like Views and Rules makes us more aware of their considerable power.

I will be looking at the User Badges Views integration and possibly adding to it. That will hopefully make problems like this easier to solve in future.

infines’s picture

Thanks ;D. Full Views support would be awesome.

Draven_Caine’s picture

This can be done 2 ways :
1) use views to make a panels pane, that way you can pass the views argument over to panels
2) use advanced profile kit, this works because of author pane which is required by APK

infines’s picture

Could you explain how to accomplish this by using views to make a panels pane?

I just don't think I'm using arguments correctly. Here's the scenario.

User A should be able to go to his own profile and see User A's badges. User A should also be able to go to User B's profile but instead see User B's badges. I don't seem to be able to make it work.

infines’s picture

Status: Fixed » Active
Richard Blackborder’s picture

Status: Active » Fixed

Max that is a question about Views and Panels, not User Badges.

What you want is a views argument. There are some good docs about this on the web.

infines’s picture

Title: Panels Support » Extend Views Support
Status: Fixed » Active

How about I adjust the title than?

Richard Blackborder’s picture

Status: Active » Fixed

Then it is fixed. The current Views support allows you to do what you want. You are asking for a tutorial on views here, not a change to the User Badges module.

You need to use an argument to specify the user to the view. It will then get their badges.

Tutorials on Views are available on the web.

infines’s picture

posted by Likeless:

I will be looking at the User Badges Views integration and possibly adding to it. That will hopefully make problems like this easier to solve in future.

I believe you stated that you were going to look into views/user badges support. Hence why I reopened the topic and changed the title.

Richard Blackborder’s picture

That is true. Views support has been extended in the new version. You'll still need to learn about views arguments etc. to do what you want, and it was possible with the previous version of User Badges (but might be a bit easier with the new one).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.