Closed (fixed)
Project:
User Badges
Version:
6.x-1.4
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Aug 2009 at 23:02 UTC
Updated:
26 Aug 2009 at 07:20 UTC
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
Comment #1
Richard Blackborder commentedI'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.
Comment #2
infines commentedIs 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.
Comment #3
Richard Blackborder commentedYou 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.
Comment #4
infines commentedThanks! I still think you should consider making a user badges block for it though.
Comment #5
Richard Blackborder commentedI 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.
Comment #6
infines commentedThanks ;D. Full Views support would be awesome.
Comment #7
Draven_Caine commentedThis 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
Comment #8
infines commentedCould 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.
Comment #9
infines commentedComment #10
Richard Blackborder commentedMax 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.
Comment #11
infines commentedHow about I adjust the title than?
Comment #12
Richard Blackborder commentedThen 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.
Comment #13
infines commentedposted 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.
Comment #14
Richard Blackborder commentedThat 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).