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

CommentFileSizeAuthor
#3 user_badges.patch39.63 KBnunoveloso
#3 user_badges.patch39.63 KBnunoveloso

Comments

yngens’s picture

second this request

heine’s picture

Category: support » feature

This is not possible.

nunoveloso’s picture

Component: User interface » Code
Assigned: Unassigned » nunoveloso
Status: Active » Needs review
StatusFileSize
new39.63 KB
new39.63 KB

Hello!

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:

$ mv user_badges.patch path/to/user_badges
$ cd path/to/user_badges
$ patch < user_badges.patch

to restore original files just type:

patch -R < user_badges.patch

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!

heine’s picture

Nuno, User Badges needs a new maintainer. If you are interested, please see http://drupal.org/node/338042

nunoveloso’s picture

Status: Needs review » Fixed

Dear 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

  • query optimisation (I am thinking on it)
  • support for private file upload
  • etc.

Enjoy!

CompShack’s picture

a 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!

nunoveloso’s picture

This 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!

nunoveloso’s picture

Status: Fixed » Closed (works as designed)
CompShack’s picture

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.

Not 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!