News:

Wondering if this will always be free?  See why free is better.

Main Menu

Member Awards (2.0 Compatible!)

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

Previous topic - Next topic

Jessica.

can't assign awards. I get this:


Method Not Implemented

GET to /forum/index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
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

Spuds

I would *guess* that you have mod_security enabled on your server, the mod currently uses id= in the links which mod security will flag and reject.  (really causing a 501 error but you don't have a 501 error page so it reports a 404 on the 501 it can't find, dumb huh?)

Anyway thats one of the things that I have that fixed in the 2.0 update that I'm working on.

Uncle Buck

Can confirm that it did install in v2.0 by emulation of v2.4 RC4.

BUT

It put the menu option under the "Configuration" menu so all the Global Moderators could no longer manage the awards.
Once I manually edited the admin.php file to put the option under "Main" all worked great.

Still can't wait for the next release though..

Colin

MiY4Gi

The mod installation edited the admin.php file incorrectly. The Awards menu was located under Simple Audio Video Embedder. I noticed that since the Video Embedder array/menu is located above 'layout' => array(, the Awards array/menu got installed inside that array/menu instead of the Configuration array/menu. I had to manually edit the file so that the menu appears under Configuration. If anyone else experiences this problem, here's the manual edit you need to do.

Instead of using:

Code (Find) Select


),
),
'layout' => array(


Code (Add Before) Select


'awards' => array(
'label' => $txt['awards'],
'file' => 'ManageAwards.php',
'function' => 'Awards',
'icon' => 'awards.gif',
'permission' => array('manage_awards'),
'subsections' => array(
'main' => array($txt['awards_main']),
'modify' => array($txt['awards_modify']),
'assign' => array($txt['awards_assign']),
'categories' => array($txt['awards_categories']),
'settings' => array($txt['awards_settings']),
),
),


Use:

Code (Find) Select

'theme' => array(
'label' => $txt['theme_admin'],
'file' => 'Themes.php',
'function' => 'ThemesMain',
'custom_url' => $scripturl . '?action=admin;area=theme;sa=admin',
'icon' => 'themes.gif',
'subsections' => array(
'admin' => array($txt['themeadmin_admin_title']),
'list' => array($txt['themeadmin_list_title']),
'reset' => array($txt['themeadmin_reset_title']),
'edit' => array($txt['themeadmin_edit_title']),
),
),


Code (Add After) Select


'awards' => array(
'label' => $txt['awards'],
'file' => 'ManageAwards.php',
'function' => 'Awards',
'icon' => 'awards.gif',
'permission' => array('manage_awards'),
'subsections' => array(
'main' => array($txt['awards_main']),
'modify' => array($txt['awards_modify']),
'assign' => array($txt['awards_assign']),
'categories' => array($txt['awards_categories']),
'settings' => array($txt['awards_settings']),

),
),


Other than that, all is good. Great mod.
Check out my new website, MyAnimeClub.net. I plan to create the largest anime community, and most fun and user-friendly anime forum in the world. It's still in the development stage though.

Spuds

Thanks for the report, the problem is because Audio Video Embedder butchers the code layout in admin.php ....
it starts as
),
),
),
'layout' => array(
'title' => $txt['layout_controls'],
'permission' => array('manage_boards', 'admin_forum', 'manage_smileys', 'manage_attachments', 'moderate_forum'),
'areas' => array(


and once it is installed it looks like
),
),

'layout' => array(
'title' => $txt['layout_controls'],


'permission' => array('manage_boards', 'admin_forum', 'manage_smileys', 'manage_attachments', 'moderate_forum'),
'areas' => array(


See all those extra newlines in the array and even inside of code (e.g. layout) that it is not even supposed to change. Makes it difficult to other mods to find the placeholders to make other edits. 

Anyway in the new version it will use the integration hooks to overcome this issue.

Uncle Buck

Spuds,
Will the new version put the link under the Main or Configuration menu?
The reason I ask is that I would like the Global Moderators on the site to be able to manage the awards.

Colin

Spuds

I currently have it in two places ... the first is now under admin->members->awards since it seemed like the proper place to put it, member awards with members, but only admins can get that far down in the menu.

.... but I also added it under admin main menu to make sure it will show up for global moderators as well (still have to check that works for global/moderators but the intention is in place to provide what you are asking for).

hcfwesker

#2307
That's kinda what I did, too, spuds.  But then I made all kinds of edits cause I felt G.Mods didn't need access to the Admin panel, at all.  What I did, was actually place it under the 'Members' tabs in the main menu of the forum, so it reads like this when hovering the members menu tab for those who can manage awards.

View the Memberlist
Search for Members
Manage Awards


Or, if you want to make it even simpler, just add it under the 'Moderate' tab for G.Mods, and those who "can manage awards" will only be able to see the menu and access it.

Sources/Subs.php

Find
'reports' => array(
'title' => $txt['mc_reported_posts'],
'href' => $scripturl . '?action=moderate;area=reports',
'show' => !empty($user_info['mod_cache']) && $user_info['mod_cache']['bq'] != '0=1',
'is_last' => true,
),


Replace with
'reports' => array(
'title' => $txt['mc_reported_posts'],
'href' => $scripturl . '?action=moderate;area=reports',
'show' => !empty($user_info['mod_cache']) && $user_info['mod_cache']['bq'] != '0=1',
),
'awards' => array(
'title' => $txt['permissionname_manage_awards'],
'href' => $scripturl . '?action=admin;area=awards',
'show' => allowedTo('manage_awards'),
'is_last' => true,
),


Then to get the Manage Awards text to appear in the sub menu ( noy, sure, but this may already have been done, but double check)

Themes/default/languages//Modifications.english.php

Find
?>

Add BEFORE
$txt['permissionname_manage_awards'] = 'Manage Awards';


Spuds

Thanks, putting under the main menu member tab makes more sense, should have thought of that myself  :o Plus it matches what I did in the admin menu!

Eclipse16V

Can I install the latest version 2.2.3 in my SMF 2.0 or should I rather wait until a new version of this mod comes out? How great were the changes between the 2.2.3 and the new version be?
I worked with:
SMF 2 in German

Shop:
SID Giessen

Paladin212

I feel like the 2.0 final update of this mod is never going to be released  :-\

Spuds

Quote from: Paladin212 on July 18, 2011, 07:32:16 PM
I feel like the 2.0 final update of this mod is never going to be released  :-\
Thats the encouragement I needed ... you have motivated me Private Pile ... motivated me to watch TV tonight  :P

Paladin212

Quote from: Spuds on July 18, 2011, 07:56:55 PM
Quote from: Paladin212 on July 18, 2011, 07:32:16 PM
I feel like the 2.0 final update of this mod is never going to be released  :-\
Thats the encouragement I needed ... you have motivated me Private Pile ... motivated me to watch TV tonight  :P
I'm just kidding, you can finish all the coding in 1 hour because you are so pro!  :laugh:

Taglar Dreskk

Curious question...unless I mised something...

Is there a way to allow members to assign awards but not add/delete them?

I want to give certain forum leaders the ability to assign current awards, but I want a separate group of moderators to be able to create and delete them.

Is that something that exists that I'm not seeing or something that could be done?

Cal O'Shaw

Seconding that!

I'm looking for a way for members to indicate they are on holiday or hiatus.  I was looking at using membergroups, but if a member could assign the "On Holiday" award to themselves, that would solve my problem and eliminate creating a bunch of membergroups.

Cal

Spuds

QuoteIs there a way to allow members to assign awards but not add/delete them?
Not currently, there is only a single permission and that gives full access to the awards panel.  I'll see whats involved in adding that permission, just not sure I really want to add in a bunch of complication to the permissions, tends to confuse everyone.

Quotebut if a member could assign the "On Holiday" award to themselves,
Yeah thats just gets messy, allowing members to assign awards to themselves.  You would probably only want to have certain awards self assignable and thats gets messy as well.  What I'm looking to add is request-able awards,  they could request an award and then someone with award manage permissions could approve the request.


Taglar Dreskk

Quote from: Spuds on July 21, 2011, 02:49:37 PM
QuoteIs there a way to allow members to assign awards but not add/delete them?
Not currently, there is only a single permission and that gives full access to the awards panel.  I'll see whats involved in adding that permission, just not sure I really want to add in a bunch of complication to the permissions, tends to confuse everyone.

That would be great if it were possible.  I understand it might confuse the users who will be using it for basic awards.  I have been looking at this mod for a few years now as it's changed hands hoping it might evolve to what I need.  It's really close now.

If it looks to be something that would be somewhat easily implemented, would it be possible to perhaps create a one-off mod that would separate the permissions of assign and create that my forum might be able to add?  If you'd like we can talk via PM on possible reimbursement for time working on it?

Spuds

I did some messing around with it today and added a new permission assign_awards  in addition to the existing manage_awards permission.  The assign_award will give the member group with that permission that ability to assign and view available awards but not edit, add or delete awards or remove awards from members.  It also does not give them access to the new member group assign nor the mass assign functions, but only the basic assign function (the one thats available today)

I have one more thing to add before I get a beta out for testing, maybe this weekend if things go well, we will see.

hcfwesker

Quote from: Spuds on July 21, 2011, 09:18:19 PM
I did some messing around with it today and added a new permission assign_awards

I really like the sound of that.  I think something else member's were looking for, cause i get PM'd for it all the time, is displaying the awards in signatures option (instead of posts profiles)

Example is in my Sig.  http://www.brawldomain.com/index.php?topic=5811.msg115168#msg115168

I do get many members thjat request this edit from me, and even added it somewhere in the topic.  As you can see, I added a title to the box, that clicks to show all that member's awards.

Cal O'Shaw

Really appreciate all you're doing with this MOD.  And giving members the basic function panel sounds great.

Was wondering if you might consider adding a flag to each badge, saying whether it is visible to regular members to assign?  The flag would be set in the edit/create panel.  Then the only thing needed in the assign code for regular members is to check the flag before displaying it.   Hopefully this doesn't sound rude, just thought if I was going to offer a request, if I could offer a suggestion that minimises your effort (and hopefully improves the chance you would consider it  :) ). 

Being able to do this would allow us to have multiple badges such as "Admin Team", "Linguist", "Member of the Month", (which we want to control) and "On Holiday", "Away" (which members would be allowed to assign or drop for themselves).

Again, thanks for enhancing this MOD!

Cal

Advertisement: