Hi,
I don't know if this is a support request or a feature request, but I'll put it here in case it can be easily solved!
On my site, i use badges to denote my members belonging to regional clubs. I would like to be able to associate each badge with a URL so the badge becomes clickable - users are then taken to the relevant page for that club. Is this possible to achieve?
Many thanks,
Gareth
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | user_badges.patch | 39.63 KB | nunoveloso |
Comments
Comment #1
yngens commentedsecond this request
Comment #2
heine commentedThis is not possible.
Comment #3
nunoveloso commentedHello!
I had the same need of a URL associated to the badge image. So I made a little mod for personal use and decided to rewrite it well to make a patch (which come on attachment).
To apply the patch on UNIX-based systems just type on your command line:
to restore original files just type:
On windows I don't have any idea how patches work, so Google it. After applying the patch you just have to run example.com/update.php and then you can assign internal or absolute URL to your badge images (example.com/admin/user/user_badges).
Please give some feedback and... Enjoy!
Comment #4
heine commentedNuno, User Badges needs a new maintainer. If you are interested, please see http://drupal.org/node/338042
Comment #5
nunoveloso commentedDear Drupalers,
As you may have noticed, Heine handed me the reins of this module so I'll do my best. However, for now I just intend to support and fix bugs and don't plan any extra features development (besides description URL).
I had a different version (customised for personal use) from the current ones in dev. I tried to merge those to versions, did some code improvements and added/modified some features. So I will now release the first "stable" versions (D5 & D6). Here is a list of what has been added/modified:
I hope it will be useful for all of you. Thank you for your feedback! Don't forget there are some todo's like
Enjoy!
Comment #6
CompShack commenteda link behind a badge is a great idea and here is my question. Can you pass a variable into the URL? Here is what I would like to do. I'm creating a "Blogger" badge, every user with the role "blogger" will have that badge displayed on the forum BUT I want the badge to link to the user's blog. For example, if you are looking at a forum comment posted by user 55, I want the badge to link to user's 55 blog.
Is this easy to implement?
Thanks!
Comment #7
nunoveloso commentedThis is an interesting feature! An integration with Token module is certainly the best way to handle that.
For now what I can suggest is to link this badge to a page where you explain the badge and, why not,
a list of all users of this role. I know it is a poor solution but the actual state of description URLs in badge module
are intended to `describe´ de role. What'd you say?
Thank you for this idea!
Comment #8
nunoveloso commentedComment #9
CompShack commentedNot a bad idea for a temporary solution. Can you please keep this feature on your To Do list if possible? Do you want me to open a feature request as a place holder?
Thanks!