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.
Hi,
I was wondering how to set up a view to show users with certain pattern in username.
I wanted to look for users who have used their email addresses as their username and wanted to add a filter that shows any username with the @ character in it.
How is this done?
thanks in advance for any info on this.
Comment | File | Size | Author |
---|---|---|---|
#6 | views-660140.patch | 774 bytes | dagmar |
#4 | filter_user_name.png | 13.99 KB | h3000 |
Comments
Comment #1
tanveer_2030 CreditAttribution: tanveer_2030 commentedHi,
You mean you want to show logged user name on site?
Comment #2
tanveer_2030 CreditAttribution: tanveer_2030 commentedHi,
If you want to show logged user name then you can use this variable to get logged user name.
Let me know if you will feel some problem with this.
Best Regards,
Tanveer Hussain
Comment #3
dagmarYou can apply a filter in the view:
Filter: User name.
Operator: Contains
Value: '@'
Comment #4
h3000 CreditAttribution: h3000 commented@dagmar - I have tried that but I don't see the Contains operator - how do I make it appear?
Attached is a screenshot of the User name filter.
Comment #5
dagmarSorry, my mistake.
Comment #6
dagmarHere is a patch.
Comment #7
h3000 CreditAttribution: h3000 commentedok - works - thanks!
Comment #8
dawehnerPatch works fine
Comment #9
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted to 3.x in both d6 and d7.
Comment #11
Nigel CunninghamCould this also be applied to the 6.x-2.x line, please? I've manually done so, and it works fine.
Nigel
Comment #12
dawehner.
Comment #13
merlinofchaos CreditAttribution: merlinofchaos commentedOk, committed.
Comment #14
Nigel CunninghamThanks!
Comment #16
sukameister CreditAttribution: sukameister commentedWhen are we going to see this fix available in the 6.x-2.x line? The latest in that line is from June 16, before this fix was generated, and the current 2.x version still contains this issue.
Comment #17
paolomainardi CreditAttribution: paolomainardi commentedSubscribe, is the issue fixed also for 2.x version ?
Thanks a lot.
[EDIT] I confirm that the feature is available on 6.x-dev branch.
Comment #18
Gabriel R. CreditAttribution: Gabriel R. commentedThe fix at #6 from Dagmar does not work with 6.2.x
Please advise.
Comment #19
Nigel CunninghamI've been slow to look at the newest version, but have just gotten around to that. Despite the posts above, it doesn't seem to be applied in 6.x-2.12.
Comment #20
dawehnerWhy should we write release announcement when noone reads them :)
6.x-2.12 is a security only release. The changes are in 6.x-2.x-dev.
Comment #21
Nigel CunninghamBut there is no 6.x-2.x-dev any more, and 6.x-2.12 was released in December, nearly six months after comment 13. It's not that unreasonable to think that it might be in 2.12 :).
That said, yes - I didn't read the release notes for 2.12 when submitting the bug (though I would have at the time).
Could we please have a 2.x dev line back?
Regards,
Nigel
Comment #22
merlinofchaos CreditAttribution: merlinofchaos commented6.x-2.x-dev is http://drupal.org/node/95897 -- it's not gone, just not listed on the project page.
Comment #23
Nigel CunninghamThanks.