How do you control how many awards are shown per line?
You don't. It will stretch only to match your layout and not beyond. If you have display issues let me know.
I have display issues in Internet Explorer.
Its fine in Firefox though.
If you have issues with IE try changing the span to div and check the results.
inc/plugins/my_awards.php
Code:
$awards = "<span style=\"white-space:normal; width: 100%;\">";
while($results = $db->fetch_array($query))
{
$awards .= "<img src=\"uploads/awards/".$results['awimg']."\" title=\"".$results['awname']."\" alt=\"".$results['awname']."\" />";
}
$awards .= "</span>";
That's the code for postbit display.
Thanks,
That seems to be working fine now

Have you checked in Firefox and Opera? Just curious because maybe I will make the change to the package.
I checked IE and Firefox. I'll do Oprea now for you..
UPDATE: Its fine in Oprea too!

Is there a way of controlling how many badges are shown?
It can be controlled actually with a simple statement but you have to tell me under what parameters you want them displayed? Oldest, Newest, Random? Because the sort of the database grab is important. And users will NOT be able to sort order it themselves.
Example: I have 10 awards as a user. Admin allows 4 for display. I have no control over which 4 are displayed as it's a universal setting.
For me to create sort order on a per user basis will be a larger problem and would require major additions to the plugin. Maybe in a couple versions this may happen but I have more immediate features I want to add.
So..if you want the latest 5 given to a user displayed just let me know. I can give you the code change for that.
Cheers labrocca....
I am very keen to install this!