News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Member Awards (2.0 Compatible!)

Started by Spuds, September 18, 2006, 03:14:03 PM

Previous topic - Next topic

Spuds

Question for all that may use this feature:

Today you must select each member by entering in the display name, one after another.  You can do multiple on each award assignment, but you still must type in each name.  So the request to assign by membergroup was given.

There are two ways to implement this ...

1) one is to select a membergroup and then each member of that group, at that time, will get the award.  You can then go and see all members with an award and remove it from specific members should you want.  This is just a quick select option as adding a member to a group, or removing them will not change their award status.

2) the second is to select a membergroup and then as above each member in that group will get the award but you do not have the option to remove the award from that member while they remain in that group, all members in that group will have the award.  The only way to add/remove is .... remove a member from the group removes the award, adding a member to the group gives them the award.

Option 1 can be thought of as a multi select to quickly assign an award to a large group of members, where adding or removing members is a manual process. 

Option 2 is a true membergroup award, members are added or removed automatically by being in that specific group, but there is no option for a member in that group not to have the award.

Any preferences?

khamseen

#2281
Personally I'd prefer option 1. It's nice to be able to remove an award from somebody without having to remove it from the whole membergroup.

By the way, I'm curious if this is because it's outdated but I installed this on 2.0 using emulation and when people visit their "award list" page, the error log records the following;

http://www.holo-federation.com/index.php?action=profile;area=listAwards;u=1
8: Undefined index: viewFile: /home/khamseen/public_html/Themes/default/languages/ManageAwards.english.php (awards_list sub template - eval?)
Line: 3231


Thought I'd let you know in case something needs changed there.

EDIT: If you're needing more testers let me know, I use two dummy forums to test everything we use before putting it on our live forums.
"In hope we find despair and in despair we find truth." - Myself

politirant

Another vote for option #1...thanks for the great work on this mod and I'll look forward to seeing the big update!

Eudemon

#1

would like to assign award individually

C4G-TK

Appears to be working in 2.0 fine.  I simply emulated RC4 for install.

-img removed-

Alderman

I would vote number 1 as well. Great work Spuds. I still would love to be able to set the default layout of awards to display in a order of precedence so to speak. Also on the listing in their profile of the awards they have with the dates, would be great to have it show there in chronological order.

Bruggenwirth

#2286
I actually have a problem with it... I uploaded, installed all without any errors or manual installs.. but now, my award isn't showing up in the left of the post.. with all the posters details..

What's going wrong??
hxxp:bruggenwirth-fotografie.nl/smf/index.php?topic=1.msg3#new [nonactive]

anakmacan

I uninstalled this mod after a while.. it's extremely tiring to set each award for each members one by one :(

Spuds

Quote from: Bruggenwirth on June 20, 2011, 07:08:23 PM
I actually have a problem with it... I uploaded, installed all without any errors or manual installs.. but now, my award isn't showing up in the left of the post.. with all the posters details..

What's going wrong??
http://bruggenwirth-fotografie.nl/smf/index.php?topic=1.msg3#new

One of two things ...

1) in the mod settings make sure you have Awards in Post: set to > 0 as zero means show none
-or-
2) The edits to the display template failed and you will have to manually add them in Manual Installation of Mods

Spuds

Thanks for the feedback on the options ... still working on things, have not had much free time over the last couple of weeks but have made some progress so keep watching for a test release.

Bruggenwirth

Quote from: Spuds on June 24, 2011, 09:55:26 AM
Quote from: Bruggenwirth on June 20, 2011, 07:08:23 PM
I actually have a problem with it... I uploaded, installed all without any errors or manual installs.. but now, my award isn't showing up in the left of the post.. with all the posters details..

What's going wrong??
hxxp:bruggenwirth-fotografie.nl/smf/index.php?topic=1.msg3#new [nonactive]

One of two things ...

1) in the mod settings make sure you have Awards in Post: set to > 0 as zero means show none
-or-
2) The edits to the display template failed and you will have to manually add them in Manual Installation of Mods

BUT!!! When I did the install for the mod... and everything was fine.. no errors whatsoever .. And my settings are set to 2 ..

Jessica.

Maybe they somehow disappeared, happened to me for several other mods. check displaytemplate.php and find the edits, if they aren't there, then you'll have to add the edits (and then the awards should appear)
Testing Zone - SMF 2.0.7, default Curve
School & Chat - phpBB3, over 170 mods installed, official live forum

I use the latest version of Chrome

phpBB: Forum = a section; Board = whole site
SMF: Forum = whole site; Board = a section

Bruggenwirth

#2292
But what should I put in manually?? All the files were installed successfully.. so I'm really confused!

*EDIT* ... what line of could SHOULD be in the Display.template.php file??

Spuds

Quote from: Bruggenwirth on June 24, 2011, 03:42:55 PM
But what should I put in manually?? All the files were installed successfully.. so I'm really confused!

*EDIT* ... what line of could SHOULD be in the Display.template.php file??
In your blackrain directory you will need to find the display.template.php file and make the following edit.

Code (find) Select
// This shows the popular messaging icons.
if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
echo '
<li class="im_icons">
<ul>
', !empty($message['member']['icq']['link']) ? '<li>' . $message['member']['icq']['link'] . '</li>' : '', '
', !empty($message['member']['msn']['link']) ? '<li>' . $message['member']['msn']['link'] . '</li>' : '', '
', !empty($message['member']['aim']['link']) ? '<li>' . $message['member']['aim']['link'] . '</li>' : '', '
', !empty($message['member']['yim']['link']) ? '<li>' . $message['member']['yim']['link'] . '</li>' : '', '
</ul>
</li>';

and *add after* that
Code (after) Select
// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<li>
<fieldset style="border: 1px solid black; padding: 5px;">
<legend>', $txt['awards'], '</legend>';

// Couldn't limit it in Load.php, so let's do it here.
$awards = 0;
foreach ($message['member']['awards'] as $award){
if($awards < $modSettings['awards_in_post'])
echo '
<a href="', $scripturl, $award['more'], '"><img src="', dirname($scripturl), $award['img'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}

echo '
</fieldset>
</li>';
}

Bruggenwirth

Case closed.. that worked.. I didn't know what to add in the display.template.php. But it's fixed now :)
hxxp:bruggenwirth-fotografie.nl/smf/index.php?topic=1.0 [nonactive]


politirant

good to hear  :) can't wait to see the new roll out.

Switch-Renn

Hey there,

I keep getting "You must select a member and/or award in order to continue!" anytime I try to assign an award. With some searching, I learnt that I have to click the name in the dropdown box for it to work - but when I type in a name I don't GET a dropdown box.

I'm using 2.0 RC5, installed the mod with emulation. Any help would be greatly appreciated.

Uncle Buck

Hi all....
Just wondering if there is a release planned for version 2. I have just updated from SMF 1.1.x to SMF 2 final and would love to have this mod up and running again.

Colin.

Chiron84

Quote from: Uncle Buck on July 01, 2011, 01:53:23 AM
Hi all....
Just wondering if there is a release planned for version 2. I have just updated from SMF 1.1.x to SMF 2 final and would love to have this mod up and running again.

Colin.

I second that.

Cal O'Shaw

We'd be very interested as well.

Would it be possible to add a field in the AdminCP that lets us change the 'Awards' string?

To be honest, we'd really like to be able to list all the groups a member is a part of, but your MOD really looks great as an alternative to creating special groups just to identify functions.

Cal

Advertisement: