Member Awards (2.0 Compatible!)

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

Previous topic - Next topic

N i g h t m a r e

when i click diplay template to download,it shows up as "index.php"

hcfwesker

Then "save as" or rename it to Display.template.php

N i g h t m a r e

Here it is,if anyone can fix it for me that'd be great :)

Melissa524

#2823
NVM I figured it out.
In case, I forget to say.  I am using 2.0.2

hcfwesker

As long as you follow those edits exactly, they should show for members allowed to Manage Awards under the Moderate tab in the main menu, but i think they also have to have permissions to access the Moderation Center (tab), if i remember correctly.

brezzo

Hi,

I've had some issues with the whole ;id= thing producing a "GET to /forum/index.php not supported" 501 error.

Now, I know it's because of mod_security but I can't disable that and I've changed the ;id to &id, which has fixed *most* of the mod. Only problem is, on the Awards - Main screen in the admin panel, the links to assign, edit, etc still produce  things with ;id in them:


http://site.com/forum/index.php?action=admin;area=awards;sa=viewassigned;id=52

Is there a way I can change this so it is an & instead of ;? or do i have to argue with my crappy host some more (can't change hosts for a while) to get them to let me disable it?

Thanks.

Edit: I found a post that listed the files which included the ;id call:

Sources\Load.php
Sources\Profile-View.php
Sources\Profile.php
Sources\ManageAwards.php
Themes\default\ManageAwards.template.php

http://www.simplemachines.org/community/index.php?topic=414388.msg2891011#msg2891011

Thanks anyway ^.^

tMicky

Can someone help me with this.

How do I get the awards to stack, 2 on top, 2 on the bottom.
How do I give a non admin, permission to only assign awards.

thank you.

fouad

hello everyone ..i had installed member awards  now i have uninstalled it but but in configurations it shows broken urls .how can i remove them .
Life is multi lap race

tMicky

I am getting thousands of undefined errors from this mod :(

example:
8: Undefined index: awards_settings
File: ./public_html/Sources/Admin.php
Line: 225

8: Undefined index: awards_main
./public_html/Sources/Admin.php
Line: 221

8: Undefined index: awards
./public_html/Sources/Admin.php
Line: 215

8: Undefined index: sba_link
./public_html/Sources/Admin.php
Line: 125

xKamelPL

Hello.
I installed this mod on my SMF 2.0.2 but it doesnt work.
Installation didnt show any errors, but there are no "Awards" in Configuartion menu.
Anyone knto how to solve this?

Kindred

well, more information helps.
Are you using the default theme? Are you using English (and do note that English UTF-8 is different from English)

Were there any errors during the install?
Did the files ACTUALLY get changed?
Сл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."

xKamelPL

Yes I'm using default theme - Curve (2.0)
I'm using Polish, but after changing to English I still cant see Award tab.

During the install there werent any errors, just English UTF8 was "Skipped"
Style files are changed, but I also cant see any changes in user's profiles

Goodman854

Quote from: goodman854 on July 29, 2012, 01:31:08 AM
Quote from: live627 on July 26, 2012, 08:20:39 PM
Quote from: goodman854 on July 26, 2012, 11:27:47 AM
I still need help with my error please.
Theirs an image of the issue I'm getting
Any Javascript errors in the console?
no
If I could have some help with my issue, being that when I assign an award and type names nothing drops down and if I just type a full user name and hit submit i get:

"An Error Has Occurred!
You must select a member and/or award in order to continue!"

sharks

I discovered a severe bug in the 1.1.2 version for SMF 1.1.16. If the member's username is not identical to the displayed username, the assign award doesn't work!! OR it could be that if the member has an apostrophe in his username, the assign award feature doesn't work! Either way, i fixed it simply by removing the apostrophe from the displayed username such that it was identical to the login username. Someone should definitely fix this!!

Kuro vi Lolitannia

Can someone please tell me how to show the Award under the profile?

I'm not using a default theme...

Kindred

you will probably have to manually modify the appropriate template files in your custom theme
Сл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."

Kuro vi Lolitannia

EDIT.

I put it in text file for now.

As you can see I already added

QuoteShow number of awards
         echo '
                        ', $txt['awards'], ': ', !empty($message['member']['awards']) ? $message['member']['awards'] : 0, '<br />
                        <br />';

Kindred

I do not think that is the only modification needed for that file
Сл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."

hcfwesker

Quote from: Kuro vi Lolitannia on October 09, 2012, 11:56:55 AM
Can someone please tell me how to show the Award under the profile?

I'm not using a default theme...

Have you changed the Awards option in the Awards Admin settings to show more than 1 awards?

that theme's Display.template.php

Find
// 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>';


Add AFTER

// 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>';
}


If you want Awards under their signature.  http://www.simplemachines.org/community/index.php?topic=114701.msg3122589#msg3122589

Kuro vi Lolitannia

Thanks guys, it works. Do you know how can I change the text 'Awards' into 'Medals'?

Advertisement: