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

KensonPlays


Owner of Mesozoic Haven

Spuds

That indicates that your display.template.php file was not updated when you installed the mod. 

You can try to edit that file yourself using the install.display.template.xml file that was included in the mod package, it provides the details for the two edits that need to be made to the Display.template.php file. 

Sadly that file is one of the most tweaked by mods so finding the proper area to edit automatically is not always possible.

If you are uncomfortable doing that attach your currrent themes Display.template and I'll take a look

Spuds

Quote from: digitalmikey on October 09, 2011, 02:43:49 PM
Quote from: digitalmikey on October 01, 2011, 01:12:55 PM
Spuds, how can I get this to show in a users profile as well as topic view? I asked a few pages back but still have not got a response. Any help?

Any response Spuds?
Thats outside of the mod, you know mods to mods and such :)

Anyway you can try the following:  Edit the Profile.template.php file

Code (find) Select
// What about if we allow email only via the forum??


Code (add before) Select
// Show their awards?
if (!empty($context['member']['awards']) && $modSettings['awards_in_post'] > 0)
{
echo '
<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 ($context['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>';
}[/code/

Jorge D. Fuentes

#2523
Quote from: Spuds on October 10, 2011, 01:27:49 PM
That indicates that your display.template.php file was not updated when you installed the mod. 

You can try to edit that file yourself using the install.display.template.xml file that was included in the mod package, it provides the details for the two edits that need to be made to the Display.template.php file. 

Sadly that file is one of the most tweaked by mods so finding the proper area to edit automatically is not always possible.

If you are uncomfortable doing that attach your currrent themes Display.template and I'll take a look

Why didn't it automatically do that, like the 1.1.1x version did?
I didn't get an error when installing it.
EDIT: Here's my Display.Template.php file, attached.

EDIT: I applied the changes as per your response, and now it works.  Still not sure why didn't work the first time or why I had to edit the sheet.  It's as if it just didn't find the stuff to edit (even though it was totally there).  Regardless, it seems to work, now.  Thanks for your help!  Hopefully this won't get messed up should I remove the mod in the future...

Clara Listensprechen

Quote from: arcadios on October 06, 2011, 10:45:39 AM
Hello,

just installed the mod and when i go to assign members to an award, i cant.  i write the member name on the "select members" box, but i get
-You must select a member and/or award in order to continue!

i read a couple of pages backward that a auto suggestion will appear if i start typing the member name, but i don't see this happening.

any ideas?
I just installed this mod and got this exact same problem. Hmmmm.
I shall continue to be an impossible person so long as those who are now possible remain possible. {Michael Bakunin 1814-1876}

Kindred

Quote from: Spuds on October 09, 2011, 02:35:58 PM
Quotejust installed the mod and when i go to assign members to an award, i cant.  i write the member name on the "select members" box, but i get
-You must select a member and/or award in order to continue!
On the assign award page, make sure an award is selected in the left panel.  Then in the members section you enter the name and the auto suggestion box will appear (just like sending a PM).  If it does not then either you are not entering a valid member name or the script file that is packaged with the mod did not get copied to the scripts directory.
Сл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."

Clara Listensprechen

#2526
Quote from: Spuds on October 09, 2011, 02:35:58 PM

Quotejust installed the mod and when i go to assign members to an award, i cant.  i write the member name on the "select members" box, but i get
-You must select a member and/or award in order to continue!
On the assign award page, make sure an award is selected in the left panel.  Then in the members section you enter the name and the auto suggestion box will appear (just like sending a PM).  If it does not then either you are not entering a valid member name or the script file that is packaged with the mod did not get copied to the scripts directory.

Ah. Well, the installation of the package apparently failed to put the proper script into the proper script directory in my case, then. I have to do this by hand now? Or...?

============

Yeah, Kindred, I get that. The question is, "installation clearly failed to properly install--now what do I do, exactly, to fix it?"
I shall continue to be an impossible person so long as those who are now possible remain possible. {Michael Bakunin 1814-1876}

Spuds

If its only the script missing problem then make sure the awards.js file from the package is in your themes /scripts directory.   If it is then something else is going on ....

Jorge D. Fuentes

#2528
I cannot delete/modify awards.
Or, I do not see a way to do so.

Since there appears to be a limit to the award's description (it'd be nice if it said what that limit was so that it doesn't come out truncated after the fact), I now have to go back and edit.  However, there's nothing under the "Add/Modify" tab for the awards to actually modify them.

On top of this, on the Main tab of Awards, there is this:
Image    Mini Image    Name    Description    Add/Modify
However, the "Add/Modify" column is empty.  Soooooooooo what's the point of the column?  Or, is there supposed to be something there like a link or something?  'cuz right now it's just an empty box.

The "Add/Modify" tab of the menu doesn't help either.  It has:
---
Award Name:
Description:
Category:
Award Image:
Miniature Image
Don't have a small image? Leave this empty, and it will use the regular one:
---

There's no actual "Modify" there, at all.
There's also no "Delete".  I tried to enter the same award, with the same name, only with a smaller description.  Now I'm stuck with a duplicate award with no way to remove.  Help?
EDIT:
It also doesn't add the awards to the Uncategorized List.
EDIT:
Looking at my error log, I see the awards is causing errors like this:
8: Undefined index: view
Apply Filter: Only show the errors from this file
File: /forums/Themes/default/languages/ManageAwards.english-utf8.php (awards_list sub template - eval?)
Line: 3264


Clara Listensprechen

Yeah, I also have been noticing that I can't add Categories either...but it might be related to the script problem?

Thanks, Spuds,  I'll give that a shot.
I shall continue to be an impossible person so long as those who are now possible remain possible. {Michael Bakunin 1814-1876}

Spuds

QuoteI cannot delete/modify awards.
Or, I do not see a way to do so.
If you don't see the icons for delete, edit, add, assign then the images directory was not installed.  Make sure you see an awards directory Themes/default/images/awards and that it has 5 files in it.  If you are using a custom theme you will probably need to add it in that tree as well e.g. Themes/your theme name/images/awards


QuoteYeah, I also have been noticing that I can't add Categories either...but it might be related to the script problem?
Sadly no ... the script is only for the user select drop down (ajax) when assigning an award.  To add an new category there should be a green + icon on the bottom right side of the category box to click.

Jorge D. Fuentes

Yeah that worked.
Oddly enough it installed in the default theme but not in the one I'm using (even though it's an exact clone of default).

I see the icons now.

Don Houston

Hey Spuds,

Do you have a default set of graphics that come with it.  I have noticed this mod on other sites and the badges are interesting.  I like the color and styles.  Or do we have to create those ourselves

Clara Listensprechen

Quote from: Jorge D. Fuentes on October 11, 2011, 09:05:19 PM
Yeah that worked.
Oddly enough it installed in the default theme but not in the one I'm using (even though it's an exact clone of default).

I see the icons now.
That was the key to my problem, too, as it happens.  I had to manually insert the awards folder (and 5 images in it) in the images folder as well as copy the js to the scripts folder in every danged theme I had installed. Everything worked when I did that.
I shall continue to be an impossible person so long as those who are now possible remain possible. {Michael Bakunin 1814-1876}

Clara Listensprechen

Quote from: Don Houston on October 11, 2011, 10:13:44 PM
Hey Spuds,

Do you have a default set of graphics that come with it.  I have noticed this mod on other sites and the badges are interesting.  I like the color and styles.  Or do we have to create those ourselves
Shoot, I don't mind making 'em -- I just need to know the right image size in pixels, and I'm still experimenting with that as yet.  Getting a pixel size spec on what's expected would save me a lot of wheel spinning, though. What do you have in mind, design-wise?
I shall continue to be an impossible person so long as those who are now possible remain possible. {Michael Bakunin 1814-1876}

Don Houston

You and I can talk off this topic Clara.  thanks

Jorge D. Fuentes

Another mod hiccup:

You cannot assign an award to members with only two letters on their name; the field that auto-finds the member doesn't find them.
I have a member named "JR" and the mod won't recognize his name when I type it.

Kindred

that's not a problem with the mod.... it's a problem (known) in SMF itself.

(the same thing happens when you try to auto-complete a Personal Message to the same user-name)
Сл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."

Spuds

#2538
Yeah ... if you have short user names, here is a 'fix' ...

edit the awards.js file (the one in your current theme directory), we (meaning you) are going to add
Code (add) Select
iMinimumSearchChars: 2, after
Code (after) Select
bItemList: true,

this should begin to populate the pull down box after you have typed in 2 characters, the default is 3 I think

Jorge D. Fuentes


Advertisement: