AF (and soon APK) allows other modules to add variables to the "author pane" via hook. I initially took the easy route by simply writing the integration myself and included the code in AF/APK. As I get more and more requests to integrate module X, I realized this was a bad approach and am starting the process to get the hooks into the individual contrib modules.

All I need from you is to either drop the attached file into your module directory (remove the .txt that uploading requires) or take the function out of it and put it in your module file. Both methods work, just choose the one that works best from you. If you aren't willing to do either, please let me know.

For more information, see Adding variables to the author pane

Thanks,

Michelle

CommentFileSizeAuthor
user_badges.author-pane.inc_.txt410 bytesmichelle

Comments

aharown07’s picture

Removed ".txt" and uploaded first to Advanced Forum folder, then when that didn't work, Modules folder.
Still not seeing badge in the forum posts.
Something I'm missing?

aharown07’s picture

also tried in user badges module folder. Still not seeing it in IE or FF.

michelle’s picture

Project: User Badges » Advanced Forum

Hmm... I don't actually use user badges because it doesn't come with any badges and I never got around to making any. I don't remember the last time this was even tested. It's been in AF for ages and no one has said anything. LOL!

I'm looking at the user badges code and it looks ok but I'll give it an actual test to be sure before it gets added to user badges. Pulling it back to my queue for now so I remember to take a look at it when I next work on AF.

Michelle

CompShack’s picture

not sure if this helps or not but i've took your code and placed it directly at the very end of the user_badges.module file. I uninstalled and reinstalled both user badges and advanced forum module and voila, badges showed up nicely under user names :)

This is all being done on my local test site and i'm running D6.6 - I know this post is for D5 but thought I can at least let u know it works for D6!

Thanks Michelle, you are bringing Drupal Forum to a new level. I'm waiting for a stable v1 release before I go live w/ your module ;)

michelle’s picture

Project: Advanced Forum » User Badges
Status: Active » Reviewed & tested by the community

Thanks for testing, CompShack. Since you confirmed it works, I'm putting it back in the user badges queue. There's a new maintainer there so hopefully it can get in and that'll be one less module people need to add the file to manually.

Michelle

nunoveloso’s picture

Hello everyone! I'll try to integrate this on the next release. For now I'm working on other issues more critical.
Do I just have to place the patch code on the module or does it need more work?

Cheers and thank you for your contribution!

aharown07’s picture

Badges are showing in my 5.12 install now... but I don't know how useful that info is because I have no idea why they sarted appearing or when. But I do have the user_badges.author-pane.inc in my user_badges folder.

michelle’s picture

Just rename the file to .inc and drop it in the module root. If you'd rather not have an extra file in there, you can just take the function out of it and put it right in the .module. It's just a tiny little function, doesn't take up much room, and will make this work with two modules. :)

As far as your other work on the module, this function relies on user_badges_for_uid($account_id); so it will need to be changed if you remove that function.

Thanks,

Michelle

michelle’s picture

Status: Reviewed & tested by the community » Closed (won't fix)

Request withdrawn. I have taken the unfortunate step of creating a new project to service my modules since I was unable to get any cooperation from most of the maintainers who's modules I'm trying to make work with mine.

Michelle