Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be very useful to integrate your module with Views. It is planned?
Thank you.
Comment | File | Size | Author |
---|---|---|---|
#10 | user_titles-357896-10.patch | 56.55 KB | rooby |
Comments
Comment #1
fuldespanto CreditAttribution: fuldespanto commentedI also miss that integration, it would be great to show titles and their associated images without tweaking the templates.
Thanks anyway for this much needed module
Comment #2
Apollo610 CreditAttribution: Apollo610 commentedsubscribe - would be interested in this as well.
Comment #3
aharown07 CreditAttribution: aharown07 commentedYes, please!
Comment #4
juancarlos CreditAttribution: juancarlos commentedI could really use this as well.
Comment #5
luxx CreditAttribution: luxx commentedsubscribing
Comment #6
ltwinner CreditAttribution: ltwinner commentedI would love to be able to filter and sort users by title in views. I don't know if it's possible though as the user titles for each user actually aren't saved in the database for each user...as far as I can see they are decided dynamically and assigned during a page request. So unless it's changed so that users are given a tid (tite id) in the database I dont know how you would integrate it with views.
Comment #7
rooby CreditAttribution: rooby commentedI'll do this one too
Comment #8
Babalu CreditAttribution: Babalu commentedsubscribe
Comment #9
gausarts CreditAttribution: gausarts commentedPlus 1. Thanks
Comment #10
rooby CreditAttribution: rooby commentedThis addition turned out to be a bit of a pain.
Previously user titles for each user were not stored in the database but calculated on the fly.
For views support we need the data to be in a database table so I had to make some changes to how the module works.
Users titles are now stored in the database.
To go along with this I also made a few other changes that were needed, were logical or were bug fixes.
Here is the list of changes in this patch:
* Moved user titles post counting out to a contrib module called ut_basic
This means if you are using userpoints or some other scheme you don't need to have the basic user titles scheme installed.
* For ut_basic points give comments separate node type settings to nodes to allow more flexibility
* Added user_titles_users table which stores users current title
* Added views support
* Bug fix: Updated an sql statement that was previously MySQL specific
* Bug fix: Matching users block now works correctly when using contrib modules to calculate titles
* Bug fix: Fixed some text output that didn't use the t() function
After applying this patch you will need to run update.php
The update process will enable ut_basic as that functionality was previously in user_titles.
Views support is via the user titles views sub module so that it won't waste any resources if you don't want to use it.
For views there are title and image fields, a title argument, a title filter (can be role specific or not) and a title sort.
Views support for ut_basic could also be added so you could filter and sort based on points and such things but I
haven't the time to do that right now so it will have to wait.
It's a big patch and I've been quite tired whilst doing it so please have a test and let me know of any bugs.
Thanks.
Comment #11
Agileware CreditAttribution: Agileware commentedWith the lack of feedback on this I have committed this to dev.
Hopefully we can get some more testing that way.
Comment #12
Agileware CreditAttribution: Agileware commentedIf you have issues with the new functionality please open new issues.