MyBB Community Forums

Full Version: Problems with SkunkMedals Plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi.
I have recently installed the SkunkMedals plugin to my forum. I got all the files uploaded fine, and was able to create medals and assign them to users perfectly.
But where can they be seen? Aren't they supposed to appear in the postbit?
Mine don't. Is the plugin only compatible with certain themes? If so, is there any code I can use to modify my theme in such a way that it will be compatible?

Many thanks, Patrick
Do you have {$post['medals']} somewhere in your postbit template?
if not, add it where you want the medals to appear Smile
Thanks for your help; Is it possible to change the default dimensions of the badges? Mine stretch when I upload them.

Thanks
I didn't try but I think it could be changed in medals.php
Look at the function get_medals($post) and find (It's near line 153):
$post['medals'] .= "<img src=\"{$imgsrc}\" width=\"20\" height=\"40\" alt=\"{$medal['description']}\"  title=\"{$medal['description']}\">";
Remove width="20" and height="40" or replace these numbers with the dimensions of your images.
honeymil Wrote:I didn't try but I think it could be changed in medals.php
Look at the function get_medals($post) and find (It's near line 153):
$post['medals'] .= "<img src=\"{$imgsrc}\" width=\"20\" height=\"40\" alt=\"{$medal['description']}\"  title=\"{$medal['description']}\">";
Remove width="20" and height="40" or replace these numbers with the dimensions of your images.

Great! Thanks a bunch
There are lots of little problems with that plugin. I have them fixed and it's available for DL here:

http://www.mybbcentral.com/showthread.php?tid=573

I actually just made a newer version too which removes the admin link in usercp unless you have moderator privileges. Also added a page so that regular users can see the medals and who has this. It's still a bit rough imho but it works. One day I hope to rewrite this entire plugin because it's done in a rather weird way.