News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Member Awards (2.0 Compatible!)

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

Previous topic - Next topic

Kindred

Сл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

And, how to choose which award to see? Thanks  :)

EDIT :
I already check the "Check this if you want to allow users to have more than one favorite award." checkbox. But I still can only choose 1 favorite too.

hcfwesker

languages/Modifications.english.php

Find
$txt['awards'] = 'Awards';

Change to
$txt['awards'] = 'Medals';

Quote from: Kuro vi Lolitannia on October 10, 2012, 11:30:05 AM
And, how to choose which award to see? Thanks  :)

EDIT :
I already check the "Check this if you want to allow users to have more than one favorite award." checkbox. But I still can only choose 1 favorite too.

Members cant chose which awards show.  On their profile page, when viewing their awards, their Favorites will show with this image

Awards are shown from the date they were received, but favorites will show first on their award images in post profile. 

Kuro vi Lolitannia

#2843
Quote from: hcfwesker on October 10, 2012, 06:45:01 PM
languages/Modifications.english.php

Find
$txt['awards'] = 'Awards';

Change to
$txt['awards'] = 'Medals';

Quote from: Kuro vi Lolitannia on October 10, 2012, 11:30:05 AM
And, how to choose which award to see? Thanks  :)

EDIT :
I already check the "Check this if you want to allow users to have more than one favorite award." checkbox. But I still can only choose 1 favorite too.

Members cant chose which awards show.  On their profile page, when viewing their awards, their Favorites will show with this image

Awards are shown from the date they were received, but favorites will show first on their award images in post profile.

Can't member choose more than 1 favorite then?

And I also can't find Modifications.English.Php

There's Settings.english.php though and I can't find the code you put.

EDIT: Also, can't I get take the awards off from a member? Example : I want it to be just a temporary award that someone can use for only a month or something.


Kindred

Modifications.english.php is in the language directory of the Default 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."

hcfwesker

Quote from: Kuro vi Lolitannia on October 10, 2012, 08:10:39 PM
1. Can't member choose more than 1 favorite then?

2. And I also can't find Modifications.English.Php

3.  Also, can't I get take the awards off from a member? Example : I want it to be just a temporary award that someone can use for only a month or something.

1.  Yes
2. Kindred answered
3. You can't set awards for a certain time.  you can manually remove them from members. 
Admin > Awards > Main >  Find the Award > click to view members who have it >  Check the box by the member's name > click [Unassign Award]


Kuro vi Lolitannia

Thanks for the help guys, but it seems like I can't choose more than 1 favorite.

I already checked the "Check this if you want to allow users to have more than one favorite award." too.

Once I choose an award as my favorite, it take the favorite from the previous one.

Rain Forest

8: Undefined index: view
Apply Filter: Only show the errors from this file
File: /var/www/vhosts/website../httpdocs/forum/Themes/default/Profile.template.php
Line: 3321


2.0.2

hcfwesker

Searching the error in this topic's "Search Bar" - 8: Undefined index: view

Brings up one of these posts ;)  http://www.simplemachines.org/community/index.php?topic=114701.msg3116828#msg3116828

Rain Forest

yup.

I already have changed this on Profile-View.php but still the same error..

It is now..
         $context['categories'][$row['id_category']] = array(
            'name' => $row['category_name'],
            'view' => $scripturl . '?action=admin;area=awards;sa=viewcategory;id=' . $row['id_category'],
            'awards' => array(),
         );

hcfwesker

Did you find both listed in that file?

Kuro vi Lolitannia

I still cant choose more than 1 favorite... Anyone know why? :'(

hcfwesker

No.  Works fine for me.  But i havent updated my mod version for the past year or so, so i dont know your problem.

N i g h t m a r e

#2854
how can i get my awards to show like this:

This Memember Has {number of members awards}
___________________________________________________________________

{AWARD} {AWARD} {AWARD} {AWARD} {AWARD} {AWARD} {AWARD}
___________________________________________________________________

in the signature box EXACTLY, like the example above

but only show 4-7 of there awards

Nuttcaze

Quote from: goodman854 on September 24, 2012, 08:42:36 AM

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!"



I am having this same issue. When I try to assign an award it gives me the exact same error message.

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


I had previously used this mod on my forum when it was 1.1.16 but after upgrading it to 2.0.2, I can't give out any additional awards. I am currently using the "blu" theme but even when using the default theme it gives me the same error message. I have looked through the code and its all there but I'm thinking there must be something else I'm not seeing or dont know about.

Anyone got any ideas with about this prob.

Thanks in advance  :D

Kindred

Use search. This has been answered dozens of time
Сл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."

N i g h t m a r e

how can i get my awards to show like this:

This Memember Has {number of members awards}
___________________________________________________________________

{AWARD} {AWARD} {AWARD} {AWARD} {AWARD} {AWARD} {AWARD}
___________________________________________________________________

in the signature box EXACTLY, like the example above

but only show 4-7 of there awards

hcfwesker

#2858
Quote from: -♦-Zeum-♦- on October 13, 2012, 07:33:19 PMbut only show 4-7 of there awards

It couldn't be any more clearly laid out

Awards > Settings.

Awards in Post:
How many awards should be shown under a user's avatar? Set to 0 to show none.

Awards in signatures, previous page, bottom link in this post.  http://www.simplemachines.org/community/index.php?topic=114701.msg3418286#msg3418286


N i g h t m a r e

#2859
Quote from: hcfwesker on October 09, 2012, 04:35:54 PM
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

i tried before and it screwed up my test site so i didn't wanna use it on the real website...
think you can fix up my file for me so i know its correct? haha

Advertisement: