Advertisement:

Author Topic: Member Awards (2.0 Compatible!)  (Read 857121 times)

Offline hcfwesker

  • SMF Hero
  • ******
  • Posts: 2,213
  • Gender: Male
  • SMF 2.0.4
Re: Member Awards (2.0 Compatible!)
« Reply #2640 on: January 24, 2012, 10:03:20 AM »
Look on the MOD page and parse the MOD for your version, and see the area it goes in, in that file.

Offline recived

  • Semi-Newbie
  • *
  • Posts: 46
Re: Member Awards (2.0 Compatible!)
« Reply #2641 on: January 24, 2012, 10:15:03 AM »
Look on the MOD page and parse the MOD for your version, and see the area it goes in, in that file.
I tried. did not work. All the code is automatically added with no problems at all files. The profile displays, awards are added, but the display does not work. How so then?

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,135
  • Gender: Male
    • Kindred-999 on GitHub
Re: Member Awards (2.0 Compatible!)
« Reply #2642 on: January 24, 2012, 10:19:34 AM »
if you are using smf 1.1.x or if you added your theme in 2.0 after installing this mod then you will have to manually apply the changes to the display.template.php in your custom theme
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline MrCreatoR

  • Jr. Member
  • **
  • Posts: 129
  • Gender: Male
  • SMF Version: 2.0 RC1.2
    • AutoIt Russian Community
Re: Member Awards (2.0 Compatible!)
« Reply #2643 on: January 26, 2012, 04:43:07 PM »
Russian translation...

For index.xml:
Quote
<file name="$languagedir/Modifications.russian-utf8.php" error="skip">
	
	
<
operation>
	
	
	
<
search position="end" />
	
	
	
<
add><![CDATA[
### Awards
global $scripturl;
// Used by: Errors
$txt['cannot_manage_awards'] = 'У вас нет прав на управление наградами.';

// Used by: Help
$helptxt['awards'] = 'Этот раздел позволяет вам управлять, назначать, и катализировать награды, а также изменять некоторые настройки.';

// Used by: ManagePermissions
$txt['permissionname_manage_awards'] = 'Управление наградами';
$txt['permissionhelp_manage_awards'] = 'Это позволит участникам добавлять, править или назначать новые награды';

// Used by: Multiple Areas
$txt['awards'] = 'Награды';
$txt['awards_view_album'] = 'Просмотр альбома наград этого участника.';
$txt['awards_main'] = 'Главное меню';
$txt['awards_modify'] = 'Добавить/Изменить';
$txt['awards_assign'] = 'Назначить';
$txt['awards_categories'] = 'Категорий';
$txt['awards_settings'] = 'Настройки';
$txt['whoallow_awards'] = 'Управление <a href="' $scripturl '?action=awards">Наградами</a>.';

// Used by: Profile
$txt['showAwards'] = 'Награды участника';
$txt['listAwards'] = 'Список доступных наград';
### End Awards]]></add>
	
	
</
operation>
	
</
file>

ManageAwards.russian-utf8.php file is attached.
« Last Edit: January 29, 2012, 03:14:32 PM by MrCreatoR »

Offline fullmoonya

  • Jr. Member
  • **
  • Posts: 189
    • my forum
Re: Member Awards (2.0 Compatible!)
« Reply #2644 on: January 27, 2012, 07:24:08 AM »
i attach again the image of the problem. please have a look. what could be the problem with it?
do not mark my topic solve unless it is REALLY SOLVED.
my forum

Visit My Blog:
Google SEO Share

Offline hcfwesker

  • SMF Hero
  • ******
  • Posts: 2,213
  • Gender: Male
  • SMF 2.0.4
Re: Member Awards (2.0 Compatible!)
« Reply #2645 on: January 27, 2012, 07:34:22 AM »
Sorry I havent got a clue.  I didn't update to the latest version cause of some feature changes i didnt like. 

Have you tried changing how your menus are layed out?  Click the double arrows next to "Profile Info" in the top menu box to change your menu views ( can be changed back with another simple click).  This MOD may have been built around the newer SMF2 menu layout.   The layout you chose to use is on SMF2, but based on SMF1

Just test it and see if it works.


Offline fullmoonya

  • Jr. Member
  • **
  • Posts: 189
    • my forum
Re: Member Awards (2.0 Compatible!)
« Reply #2646 on: January 27, 2012, 07:45:49 AM »
now i found out the problem. i tried to install a new forum for test and got no bug. but there is some problem when i remove the sub buttons of my main menu. its the same as the image i just attached previously.

EDIT:

ouch. im wrong. i thought the problem is in the main menu but the real problem is the css of this mod because when i uninstall the ezportal, it returns to the same look as in the image i attached. :(
« Last Edit: January 28, 2012, 03:10:41 AM by fullmoonya »
do not mark my topic solve unless it is REALLY SOLVED.
my forum

Visit My Blog:
Google SEO Share

Offline atoast

  • Semi-Newbie
  • *
  • Posts: 27
Re: Member Awards (2.0 Compatible!)
« Reply #2647 on: January 29, 2012, 10:57:17 AM »
Is there a way show only the favorite award in a user's post?

Offline MrCreatoR

  • Jr. Member
  • **
  • Posts: 129
  • Gender: Male
  • SMF Version: 2.0 RC1.2
    • AutoIt Russian Community
Re: Member Awards (2.0 Compatible!)
« Reply #2648 on: January 29, 2012, 01:03:33 PM »
Spuds
Why «Show Awards» in the profile always gives me this:
Quote
This member has not received any awards
?
even if the user having awards.

what is the different between «Show Awards» and «Awards List»?

Offline hcfwesker

  • SMF Hero
  • ******
  • Posts: 2,213
  • Gender: Male
  • SMF 2.0.4
Re: Member Awards (2.0 Compatible!)
« Reply #2649 on: January 29, 2012, 01:23:07 PM »
what is the different between «Show Awards» and «Awards List»?

Show Awards will show the Members Awards.  Awards List will show the entire awards catalogue.  It's worded confusingly, I know, which is why I edited both those link titles on my site.

"Show My Awards"
"Awards Master List"

Offline MrCreatoR

  • Jr. Member
  • **
  • Posts: 129
  • Gender: Male
  • SMF Version: 2.0 RC1.2
    • AutoIt Russian Community
Re: Member Awards (2.0 Compatible!)
« Reply #2650 on: January 29, 2012, 03:15:24 PM »
hcfwesker [?]
Quote
Show Awards will show the Members Awards.  Awards List will show the entire awards catalogue
Thanks, so the strings should be more specific.

Updated translation.

Offline atoast

  • Semi-Newbie
  • *
  • Posts: 27
Re: Member Awards (2.0 Compatible!)
« Reply #2651 on: January 31, 2012, 11:17:26 AM »
While I translate this extension into german, could anyone tell me how to show the big image of the favorite award in a user's post?

i tried the most obvious things like adding _favorite to some 'awards' codes, but it didnt surprise me that it didnt work out :/
i am talking about this code in the display.template.php:

Code: [Select]
// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
  <div id="description-wrap" style="margin: 20px auto; width: 700px;">
<div class="description">
<div class="description-text">

<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++;
}

edit: before i start translating: am i right when i am using codes like &ouml; &auml; in the normal translation and in the utf-8 version öäü letters?
« Last Edit: January 31, 2012, 11:20:52 AM by atoast »

Offline MrCreatoR

  • Jr. Member
  • **
  • Posts: 129
  • Gender: Male
  • SMF Version: 2.0 RC1.2
    • AutoIt Russian Community
Re: Member Awards (2.0 Compatible!)
« Reply #2652 on: February 03, 2012, 01:17:23 AM »
Anyone can tell me please why this mod does not support Unicode?



It's Russian, all changes i made converted to ?????.
And BTW, i tested the mod on localhost forum, there is no such problem.

Offline Fustrate

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,474
  • Gender: Male
  • Controller of the rum budget
    • Fustrate on GitHub
    • @Fustrate on Twitter
    • Fustrate
Re: Member Awards (2.0 Compatible!)
« Reply #2653 on: February 03, 2012, 01:42:52 AM »
Are you using Russian UTF8 on both sites?
Steven Hoffman
Former Team Member, 2009-2012

Offline Fed Drago

  • Semi-Newbie
  • *
  • Posts: 29
  • Gender: Male
  • To Be or Not TO Be !
    • Diabetic Truth
Re: Member Awards (2.0 Compatible!)
« Reply #2654 on: February 03, 2012, 02:01:03 AM »
Are there any plans to make this Mod fully compatible with SMF 2.02?

Thank you
Fed

Offline poj inlert

  • Newbie
  • *
  • Posts: 2
Re: Member Awards (2.0 Compatible!)
« Reply #2655 on: February 03, 2012, 02:03:08 AM »
 :)

Offline MrCreatoR

  • Jr. Member
  • **
  • Posts: 129
  • Gender: Male
  • SMF Version: 2.0 RC1.2
    • AutoIt Russian Community
Re: Member Awards (2.0 Compatible!)
« Reply #2656 on: February 03, 2012, 02:11:05 AM »
[?]
Quote
Are you using Russian UTF8 on both sites?
How can i check it?

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,135
  • Gender: Male
    • Kindred-999 on GitHub
Re: Member Awards (2.0 Compatible!)
« Reply #2657 on: February 03, 2012, 07:32:21 AM »
ummm... fed....   it works just fine with 2.0.2
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Fed Drago

  • Semi-Newbie
  • *
  • Posts: 29
  • Gender: Male
  • To Be or Not TO Be !
    • Diabetic Truth
Re: Member Awards (2.0 Compatible!)
« Reply #2658 on: February 03, 2012, 09:55:19 AM »
ummm... fed....   it works just fine with 2.0.2

Not for me I will try to install it again but it is giving me an error I will copy and post it when I get the chance.

Cheers

Offline hcfwesker

  • SMF Hero
  • ******
  • Posts: 2,213
  • Gender: Male
  • SMF 2.0.4
Re: Member Awards (2.0 Compatible!)
« Reply #2659 on: February 03, 2012, 10:11:00 AM »
You're going to get install errors depending on the amount of MODs you already have installed.  you'll just have to make the manual edits.