Thank youLedsen Arkangel wrote:Anyhow, there is a funny bug when you show medals in viewtopic. If you use non-dynamic medals, and if you have more than one level for a medal, the level 1 medal is shown in viewtopic always, no matter which level user really has (if (s)he has the medal, that is). If you use dynamic medals, the medal of user's current level is shown. Looks like the script searches from a wrong place when it tries to find if the image file exists or not. I made the following fix and got it working:
OPEN includes/medals_viewtopic.php
FINDREPLACE WITHCode: Select all
if ( file_exists($device_image) )
Though now it doesn't look good, as it is done differently in medals_memberlist.php... but that was easiest way to do it (and because it now shows current level medal image instead of level 1 medal image, I'm pretty sure that it is a bug) ... I have to investigate that further to really understand how it is done in medals_memberlist.php, so I can get it look similar.Code: Select all
if ( file_exists($phpbb_root_path . 'images/medals/' . $device_image) )
Set permissions so that only the admins and your chosen group(s) can award medals. As for managing, it's only those who have access to the ACP, and have the permission "Can use the medals management module" set to Yes in admin permissions (Misc tab)Fr3eMan wrote:Hi all!
Question:
There is a system for let manage the awards only by admin/group??
Unfortunately no, there's no easy way to do it :/ Sorry :(Pyrodox wrote:I thought I'd make an image to clarify what I was talking about in my earlier post.
Would it be possible to display the medals on the viewtopic and memberlist panels in this configuration?
They look like this right now:
Here's how I want it to look:
Is there any way this can be done?
The basic idea being is that if there are 3 medals set to be displayed across the panel, and more than 3 medals are being displayed, instead of the fourth medal wrapping onto the next line, it will take the first medal and display it on the first line, the next three on the next line... If there's 5 medals, the first two would be on the first line, the last 3 on the second line... 6 medals, 3 would be displayed on each line... 7 medals would have the first on top, then two rows of 3 beneath it... Etc.
Go to a user's profile > Award Medal > In Medals Control Panel, click on Awarded Medals on the left.Fr3eMan wrote:Hi Jessica!
If I have to remove an awarded medal how I can do it?
Code: Select all
[phpBB Debug] PHP Notice: in file /memberlist.php on line 701: Undefined variable: s_nominate
[phpBB Debug] PHP Notice: in file /memberlist.php on line 704: Undefined variable: medal_count
[phpBB Debug] PHP Notice: in file /memberlist.php on line 705: Undefined index: MEDAL_INFORMATION
[phpBB Debug] PHP Notice: in file /memberlist.php on line 707: Undefined index: MEDAL_DETAIL
Code: Select all
// Medals System MOD
'USER_ID' => $user_id,
'U_NOMINATE' => ( $s_nominate ) ? append_sid("{$phpbb_root_path}medals.$phpEx", "m=nominate&u={$user_id}") : '',
'U_CAN_AWARD_MEDALS' => ($auth->acl_get('a_user') || $is_mod ) ? append_sid("{$phpbb_root_path}medals.$phpEx", "m=award&u={$user_id}") : '',
'L_USER_MEDAL' => $user->lang['MEDALS'],
'USER_MEDAL_COUNT' => $medal_count,
'L_MEDAL_INFORMATION' => $user->lang['MEDAL_INFORMATION'],
'L_MEDAL_NAME' => $user->lang['MEDAL'],
'L_MEDAL_DETAIL' => $user->lang['MEDAL_DETAIL'],
// ----------------------------
Code: Select all
// Medals System MOD
'USER_ID' => $user_id,
'U_NOMINATE' => ( $config['medals_active'] == 1) ? (( $s_nominate ) ? append_sid("{$phpbb_root_path}medals.$phpEx", "m=nominate&u={$user_id}") : '') : '',
'U_CAN_AWARD_MEDALS' => ( $auth->acl_get('a_user') || $is_mod ) ? append_sid("{$phpbb_root_path}medals.$phpEx", "m=award&u={$user_id}") : '',
'L_USER_MEDAL' => ( $config['medals_active'] == 1) ? $user->lang['MEDALS'] : '',
'USER_MEDAL_COUNT' => ( $config['medals_active'] == 1) ? $medal_count : '',
'L_MEDAL_INFORMATION' => ( $config['medals_active'] == 1) ? $user->lang['MEDAL_INFORMATION'] : '',
'L_MEDAL_NAME' => ( $config['medals_active'] == 1) ? $user->lang['MEDAL'] : '',
'L_MEDAL_DETAIL' => ( $config['medals_active'] == 1) ? $user->lang['MEDAL_DETAIL'] : '',
// ----------------------------
Make sure you have run /msm_install/index.php to add modules and permissionsMarinho wrote:Hi I am new in the Community never I stirred with Phpbb, then I am quite layman, always participated in forums that had this type of mod of medals, and it always struck me, but I've always used SMF and the community is never have interesing in doing something of this kind.![]()
Then I have a doubt, I installed the mod via the AUTOMOD, everything occurred as well, but I don't know enable him, what I have to do to activate the mod? Do I have to do something in Admin Control Panel (ACP?) can you help me?![]()
I don't consigor nable the mod, nor configure in order I am noob![]()
* removed *
Thank you.
Code: Select all
<div class="nav">
<div class="fl">
<ul>
<li<!-- IF SCRIPT_NAME eq 'index' --> class="current"<!-- ENDIF -->><a href="{U_INDEX}">{L_INDEX}</a></li>
<li<!-- IF SCRIPT_NAME eq 'faq' --> class="current"<!-- ENDIF -->><a href="{U_FAQ}">{L_FAQ}</a></li>
<!-- IF S_DISPLAY_MEMBERLIST -->
<li<!-- IF SCRIPT_NAME eq 'memberlist' --> class="current"<!-- ENDIF -->><a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a></li>
<!-- ENDIF -->
<!-- IF S_DISPLAY_MEMBERLIST -->
<li<!-- IF SCRIPT_NAME eq 'memberlist' --> class="current"<!-- ENDIF -->><a href="{U_MEDALS}" title="{L_MEDALS_VIEW_EXPLAIN}">{L_MEDALS_VIEW}</a></li>
<!-- ENDIF -->
<!-- IF S_DISPLAY_SEARCH -->
<li<!-- IF SCRIPT_NAME eq 'search' --> class="current"<!-- ENDIF -->><a href="{U_SEARCH}">{L_SEARCH}</a></li>
<!-- ENDIF -->
</ul>
</div>
Code: Select all
<!-- IF U_MEDALS and S_USER_LOGGED_IN and not S_IS_BOT --><li class="icon-medal"><a href="{U_MEDALS}" title="{L_MEDALS_VIEW_EXPLAIN}">{L_MEDALS_VIEW}</a></li><!-- ENDIF -->