News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Simple Awards System

Started by Windy, November 14, 2006, 09:01:54 PM

Previous topic - Next topic

Beadan

Hi there...

I'm having a bit of a problem trying to install / apply this mod.

On the default template (skin)  it worked fine (2.0.3) on SMF 1.1.10.
I have since updated my template to the Helios template (using red).

I downloaded this this mod (2.1), imported it successfully.  But when I want to apply it, I get:

"Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommende.. bla bla bla"

The problem is on:

3.     Execute Modification     ./Themes/default/Display.template.php     Test failed

I am presuming that the Display.template.php does not have the right string to accommodate Simple Awards.  Is there anyway I can manually install this?  Or do you guys have any idea where I can start to resolve this?

Windy

Quote from: Beadan on December 01, 2009, 06:52:50 AM
Hi there...

I'm having a bit of a problem trying to install / apply this mod.

On the default template (skin)  it worked fine (2.0.3) on SMF 1.1.10.
I have since updated my template to the Helios template (using red).

I downloaded this this mod (2.1), imported it successfully.  But when I want to apply it, I get:

"Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommende.. bla bla bla"

The problem is on:

3.     Execute Modification     ./Themes/default/Display.template.php     Test failed

I am presuming that the Display.template.php does not have the right string to accommodate Simple Awards.  Is there anyway I can manually install this?  Or do you guys have any idea where I can start to resolve this?
Just follow the following guide and you should be ok.

Manual Installation of Mods
All unsolicited PM's will be ignored.  Any support requests should go in their topics.

My Mods


Image Zoom Tag
Image Quote Removal
Color Picker
Additional Polls
Simple Awards System

Mods are only updated to the latest same major version of smf on request.

ak84

Good day!

I want to start by saying that I do not know how to program modifications for SMF, but I really needed this modification in Russian. I'll write what I did for this and perhaps you will find it necessary to add Russian localization.

First, I added to file / Themes/default/languages/Modifications.russian-utf8.php
following lines:


// Awards
$txt['awards_for'] = 'Награды пользователя: ';
$txt['awards'] = 'Награды';
$txt['showAwards'] = 'Показать награды';
$txt['award_add'] = 'Добавить награду';
$txt['award_add_button'] = 'Добавить';
$txt['award_max_height'] = 'Максимальная высота картинки с наградой <div class="smalltext" style="font-weight: bold">(0 = без ограничений)</div>';
$txt['award_max_width'] = 'Максимальная ширина картинки с наградой <div class="smalltext" style="font-weight: bold">(0 = без ограничений)</div>';
$txt['award_limit'] = 'Максимальное кол-во наград, отображаемых в сообщении <div class="smalltext" style="font-weight: bold">(0 = без ограничений)</div>';
$txt['award_show_display'] = 'Показывать награды в сообщениях';
$txt['award_file_types'] = 'Типі файлов для картинок наград <div class="smalltext" style="font-weight: bold">(разделённые запятыми)</div>';
$txt['awards_per_page'] = 'Количество наград на одну страницу, отображаемых в профиле';
$txt['award_image'] = 'Картинка';
$txt['award_no_exist'] = 'Награда, которую вы пытаетесь удалить, не существует.';
$txt['awards_no_write'] = 'Папка для загрузки картинок наград защищена от записи.  Ваша награда не может быть сохранена.';
$txt['award_timeout'] = 'Ваша награда не может быть сохранена. Это может произойти из-за того, что загрузка длилась слишком долго или файл с картинкой больше, чем позволяет ваш сервер.<br /><br />Для более детальной информации проконсультируйтесь с вашим системным администратором.';
$txt['award_title'] = 'Название награды';
$txt['cannot_give_awards'] = 'У вас нет прав присваивать награды.';
$txt['no_awards'] = 'You have no awards.';
$txt['permissionname_give_awards'] = 'Присваивать награды';
$txt['permissionhelp_give_awards'] = 'Это право позволяет пользователю присваивать награды.';
$txt['profile_error_award_large_image'] = 'Разрешение картинки больше дозволенного (' . $modSettings['award_max_width'] . 'x' . $modSettings['award_max_height'] . ')';
$txt['profile_error_award_invalid_image'] = 'Неправильная картинка';
$txt['profile_error_award_invalid_type'] = 'Этот тип картинок не разрешён (должен быть одним из ' . $modSettings['award_file_types'] . ')';
$txt['profile_error_award_no_title'] = 'Не указано название награды';
$txt['award_list_title'] = 'Название';
$txt['award_list_given_date'] = 'Дата выдачи';
$txt['award_list_given_by'] = 'Выдана';
$txt['award_list_icon'] = 'Картинка';
$txt['mods_cat_modifications_award'] = 'Награды';


Then I edited file /Sources/Display.php:
was:

$memberContext[$message['id_member']]['custom_fields']['awards'] = array(
'title' => 'Awards',
'value' => '<span class="awards">' . $award_str . '</span>',
'placement' => false,
);


become:

$memberContext[$message['id_member']]['custom_fields']['awards'] = array(
'title' => 'Награды',
'value' => '<span class="awards">' . $award_str . '</span>',
'placement' => false,
);


And finally, I translated readme2.txt file from Simple Award package.

[size=x-large]Simple Award System v2.1[/size]
[hr]
Даёт пользователям возможность выдавать небольшие "награды" другим пользователям.

[size=large]Как мне...[/size]
[hr]
[size=large]...посмотреть награды[/size]
[hr]
Награды можно посмотреть в профиле пользователя, нажав на ссылку [b]"Посмотреть награды"[/b] под ссылкой [b]"Статистика"[/b] или через выпадающее меню [b]"Профиль"[/b] - [b]"Основная информация"[/b] - [b]"Показать награды"[/b]. Награды также отображаются в информции о пользователе, написавшем сообщение на форуме.

[size=large]...выдавать награды[/size]
[hr]
Следуйте вышеуказанным ссылкам, чтобы попасть в раздел наград в профиле пользователя. Ниже списка наград вы увидите форму [b]"Добавить награду"[/b]. Заполните в этой форме название награды и выберите картинку, которую вы хотите использовать в качестве награды и нажмите кнопку [b]"Добавить"[/b], которая добавляет награду в профиль пользователя.

Если вы или кто-то другой не видите форму [b]"Добавить награду"[/b], это значит, что у вас нет прав выдавать награды. Чтобы добавить права - пользователем из группы администраторов выберите в выпадающем меню [b]"Админ"[/b] - [b]"Права доступа"[/b]. Потом нажмите [b]"Изменить"[/b] для той группы пользователей, которой вы хотите дать право выдавать награды, потом в разделе "Модерация форума" отметьте галочкой пункт [b]"Присваивать награды"[/b] и нажмите [b]"Сохранить"[/b] в самом низу страницы.

[size=large]...изменить настройки[/size]
[hr]
Все настройки, которые можно изменить, можно найти выбрава в меню [b]"Админ"[/b] - [b]"Конфигурация"[/b] - [b]"Настройка модов"[/b] - [b]"Награды"[/b].
Доступны следующие настройки:
[list]
[li]Ограничение максимального разрешения картинки награды, которую можно загрузить[/li]
[li]Ограничение числа наград, которые отображаются при просмотре сообщений форума[/li]
[li]Показывать ли награды при просмотре сообщений форума[/li]
[li]Типы файлов картинок, которые могут быть загружены[/li]
[li]Количество наград на одну страницу, отображаемых в профиле пользователя[/li]
[/list]


Also, I attached all above files to this post

If my translation is useful to you, I would be pleased.

Thank you for good modification!


Windy

All unsolicited PM's will be ignored.  Any support requests should go in their topics.

My Mods


Image Zoom Tag
Image Quote Removal
Color Picker
Additional Polls
Simple Awards System

Mods are only updated to the latest same major version of smf on request.

paulmagno

Maybe a dumb question...but I installed the mod and have no idea how to access it...I hit profile and there's nothing saying where I can add awards...

I actually installed the mod a couple of months ago, but forgot about it because there was no indication anywhere that it was installed...nothing in profiles and nothing in admin section...

Am I missing something or did something go wrong with the mod?

Thanks...

Smoki1988

Will this mod be available for 1.1.11 cause it says it is not compatible..???

simplebeer

Quote from: Smoki1988 on January 04, 2010, 10:39:08 AM
Will this mod be available for 1.1.11 cause it says it is not compatible..???

It works for me, and i just updated from 1.1.10 tot 1.1.11  ;)

Sorry for my poor English, but i think it's probably better then your Dutch :)

Smoki1988

Quote from: Welb on January 04, 2010, 11:50:08 AM
Quote from: Smoki1988 on January 04, 2010, 10:39:08 AM
Will this mod be available for 1.1.11 cause it says it is not compatible..???

It works for me, and i just updated from 1.1.10 tot 1.1.11  ;)

You were using 1.10 when u installed it right??and then updated to 1.11,i try to update it to 1.11..and i don't if it is ok to go back at 1.10 install it and then again to 1.11...dam >:(

Smoki1988

Well will windy update it to 1.11 plz??

Maxtor

How can we view all given awards in one place?

fairytears

Hello

I apologize if this question has been asked before, but I couldn't find it in the search results  :-[

We are celebrating our second anniversary, and I thought displaying the simple awards in the ultimate profile would be a nice surprise for the members since they all love SA. Is there anyway of displaying the awards under the My media box?

Thank you  :)

gitchuone

Even though this says it is compatible with 1.1.9, when I select the version and PARSE, it says it is not compatible. Maybe the previous release (prior to 2.0) is compatible. Not sure. Gonna pass on it for now.

Lamarck

Installed with no errors on SMF 2.0 RC2,but I get blank pages on all profiles and on modifications tab in ACP.

Windy

Any errors in the error log?
All unsolicited PM's will be ignored.  Any support requests should go in their topics.

My Mods


Image Zoom Tag
Image Quote Removal
Color Picker
Additional Polls
Simple Awards System

Mods are only updated to the latest same major version of smf on request.

Info~

Hello,
I need help with Simple Award System mod I use for giving awards to members...

The problem is this:


I want it to be like this:




Please help me as soon as possible, I use SMF 2.0 RC2 with Black Rain v2 theme

Thanks in advance.

[SAP]Francis

Quote from: leapfish on January 27, 2010, 03:26:21 PM
Hello,
I need help with Simple Award System mod I use for giving awards to members...

The problem is this:


I want it to be like this:




Please help me as soon as possible, I use SMF 2.0 RC2 with Black Rain v2 theme

Thanks in advance.
In \Sources\Display.php:
Code (Find...) Select
$award_str = '';
Code (Replace it by...) Select
$award_str = '<br />';

Vehicles Forum

Founded By Francis Morissette

Info~

Thank you so much it worked  ;D

[SAP]Francis


Vehicles Forum

Founded By Francis Morissette

totzrusnet

My question very simular is there anyway to get each award to go under the one before

so it would be

Awards:

Award 1
Award 2?

totzrusnet

never mind lmao it does it anyway

Advertisement: