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

hcfwesker

Quote from: Sci-Fi_Fan on August 17, 2011, 08:30:30 PM
A couple of questions:

The awards section in topic view, is there a way to adjust the width of it? My awards are showing, but there is a big gap between the end of my awards and the "border" of the section.

got a screen shot, or link to a pge where this is happening?  You also have the option of removing that border completely from around the awards

QuoteAdditionally, is there a way to extend the length of the award description? The current length seems very short.

This might work

Themes/default/ManageAwards.template.php

Find
<input type="text" name="description" id="description" value="', $context['award']['description'], '" size="30" />

change the 30 to the size you want.

treehugger

Any ideas re. my Reply #2469 please?

hcfwesker

Quote from: treehugger on September 03, 2011, 06:01:34 PM
Any ideas re. my Reply #2469 please?

I could take a look on your site, if you're willing to make an admin account and pm me the log-in details, if u trust me.  thats up to you.  I'll understand if not.

hcfwesker

Actually, I was able to duplicate the situation.  and find a fix.  Since it deals with members and changes, for some reason, you also have to give the member managing awards, the permissions  "Moderate forum members"  ... i think it's directly below manage awards permission.

don't worry, it doesn't add anything else for them to actually moderate anything with members, (like their profiles or posts) .. cause you have to add those permsission as well.  Selecting that just allows the system to recognize they can make changes to member items that theyre assigned to.

Just add that permissions, it'll work, and only allow them to manage awards.


treehugger

Sorry - fix didn't work for me so will pm you the site details (it's taken me so long because I've been figuring out how to set up the ftp account).  :-[

digitalmikey

Any help Spuds? I just want this to show in profile view as well as the posts.

hcfwesker

Quote from: treehugger on September 04, 2011, 08:38:25 PM
Sorry - fix didn't work for me so will pm you the site details (it's taken me so long because I've been figuring out how to set up the ftp account).  :-[

I posted the fix on your site, but couldn't make the changes without cPanel access.  Since awards is listed on the Configuration menu, a member needs the permission "administrate forum database" to enter there, I believe.  So, the temp fix is to move it under the Members menu in he AdminCP. 

a more permanent fix, would be to have Awards have it's own menu in the AdminCP, like the Arcade, which was why that member had access there with no issues.

treehugger

Thanks hcfwesker - fix didn't work for me and I don't want to be giving a 9 year old any more permissions than I have to. ;)

The permanent fix sounds much better - how complicated is it? We have 'moderators' for the Gallery / Arcade / Living Avatars etc without them having to have 'extra' permissions so it would be good if the same could be done with Awards.

hcfwesker

#2468
*Listens to Europe's "The Final Countdown" as I type this post*  :D

Quote from: treehugger on September 07, 2011, 06:11:12 PM
Thanks hcfwesker - fix didn't work for me and I don't want to be giving a 9 year old any more permissions than I have to. ;)

The permanent fix sounds much better - how complicated is it? We have 'moderators' for the Gallery / Arcade / Living Avatars etc without them having to have 'extra' permissions so it would be good if the same could be done with Awards.

Here ya go.

Sources/Admin.php

FIND & REMOVE any menu settinsg for Awards, first ... (should just be the code below)


'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']),
),
),




AFTER removing the above code, in the same file ...

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




ADD ABOVE
'awards' => array(
'title' => $txt['awards'],
'permission' => array('manage_awards'),
'areas' => array(
'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']),
),
),
),
),


The member will have access to the Admin panle, but only see the Awards menu.  Also, they can't just click the Award button, they have to click the sub-menu "Awards" when hovering the button.  BUT ... if you left the awards menu button under the "Members" tab in the main forum menu, they'll get instant access by that.

That should get ya to where you want.  ;)   Hopefully lol

treehugger

That worked! :D

She can now manage the Awards without having access to anything scary!
Many thanks hcfwesker.


Machia


Kindred

No. Those badges are not distributable (most especially because they contain the trademarked logo of Simple Machines)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

thecoo1est

You must select a member and/or award in order to continue!

thats my error, everything else seems to work, I uploaded a award icon' when i choose assign, and I click the award i can see it. i then try to choose a member but all i have is a text box to input member name, after i do all that and hit save i get that error? Is there supposed to be a drop down list of members or do i have to manually type everyones name and assign award 1 by 1?

hcfwesker

Quote from: thecoo1est on September 16, 2011, 02:09:55 AM
You must select a member and/or award in order to continue!

thats my error, everything else seems to work, I uploaded a award icon' when i choose assign, and I click the award i can see it. i then try to choose a member but all i have is a text box to input member name, after i do all that and hit save i get that error? Is there supposed to be a drop down list of members or do i have to manually type everyones name and assign award 1 by 1?

Type some of the member's name, below the input box where you're typing, a name should drop down automatically, kinda like when you type a member's name to make them a moderator of a single board.  You have to click the same name that appears below.  Some members complain amount never seeing this appear. 

thecoo1est

#2474
Quote from: hcfwesker on September 17, 2011, 02:08:36 PM
Quote from: thecoo1est on September 16, 2011, 02:09:55 AM
You must select a member and/or award in order to continue!

thats my error, everything else seems to work, I uploaded a award icon' when i choose assign, and I click the award i can see it. i then try to choose a member but all i have is a text box to input member name, after i do all that and hit save i get that error? Is there supposed to be a drop down list of members or do i have to manually type everyones name and assign award 1 by 1?

Type some of the member's name, below the input box where you're typing, a name should drop down automatically, kinda like when you type a member's name to make them a moderator of a single board.  You have to click the same name that appears below.  Some members complain amount never seeing this appear.
That worked :D haha, anyway to add a multi select feature?

Any way to add a tidbit of code to auto assign certain awards at a certain post count?

Xarkurai

It bugs when I want to change an icon its image:

An Error Has Occurred!
"You must select a file to upload!"
Useful paid mod: Badge Awards - Award members for actions

hcfwesker

Quote from: thecoo1est on September 17, 2011, 03:15:58 PManyway to add a multi select feature?

Any way to add a tidbit of code to auto assign certain awards at a certain post count?

Nah, you have to add different awards to members 1 at a time.  But, you can add multiple members to one award at a time.  Once you click on one members name, just type another and click their name when it appears, and just repeat.

The auto assign was tested, but was put on hold due to bugs in the initial release.  We just have a request topic for when members reach a post/activity/forum award, they can post to request to alert us they have earned it, for example .. http://www.brawldomain.com/index.php?topic=5811.msg115168#msg115168

Quote from: Xarwin on September 18, 2011, 10:45:10 AM
It bugs when I want to change an icon its image:

An Error Has Occurred!
"You must select a file to upload!"

Easiest way to do this, is just overwrite the image in the awards folder in cPanel.


thecoo1est

Quote from: hcfwesker on September 18, 2011, 08:31:59 PM
Quote from: thecoo1est on September 17, 2011, 03:15:58 PManyway to add a multi select feature?

Any way to add a tidbit of code to auto assign certain awards at a certain post count?

Nah, you have to add different awards to members 1 at a time.  But, you can add multiple members to one award at a time.  Once you click on one members name, just type another and click their name when it appears, and just repeat.

The auto assign was tested, but was put on hold due to bugs in the initial release.  We just have a request topic for when members reach a post/activity/forum award, they can post to request to alert us they have earned it, for example .. http://www.brawldomain.com/index.php?topic=5811.msg115168#msg115168

Quote from: Xarwin on September 18, 2011, 10:45:10 AM
It bugs when I want to change an icon its image:

An Error Has Occurred!
"You must select a file to upload!"

Easiest way to do this, is just overwrite the image in the awards folder in cPanel.

oh come on man, dont hogwash me lol, lets say I have some premade trophies with names and all ready to be assigned, your saying there is no code i can put in the display file or where ever that calls on the award if there post count is a certain number? im no coder but for example

if post count is <9 call award1.png or whatever? and have that in the files that the awards use to be called in

hcfwesker

Quote from: thecoo1est on September 18, 2011, 09:33:23 PMoh come on man, dont hogwash me lol, lets say I have some premade trophies with names and all ready to be assigned, your saying there is no code i can put in the display file or where ever that calls on the award if there post count is a certain number? im no coder but for example

if post count is <9 call award1.png or whatever? and have that in the files that the awards use to be called in

You must have me confused with somebody else :D  I'm not the author of this mod, was just giving an answer to your question that the author attempted it in the past, but decided not to put it in a final release.

thecoo1est

Quote from: hcfwesker on September 18, 2011, 09:58:28 PM
Quote from: thecoo1est on September 18, 2011, 09:33:23 PMoh come on man, dont hogwash me lol, lets say I have some premade trophies with names and all ready to be assigned, your saying there is no code i can put in the display file or where ever that calls on the award if there post count is a certain number? im no coder but for example

if post count is <9 call award1.png or whatever? and have that in the files that the awards use to be called in

You must have me confused with somebody else :D  I'm not the author of this mod, was just giving an answer to your question that the author attempted it in the past, but decided not to put it in a final release.

hogwash!  :P  do you know where the code is that calls the awards to appear. like when they are assigned, what is added and where that makes them appear under that users info?

Advertisement: