Advertisement:

Author Topic: Medal Honor For Years  (Read 4653 times)

Offline SSimple Team

  • Jr. Member
  • **
  • Posts: 386
  • SMFSimple.com
    • SMFSimple.Com
Medal Honor For Years
« on: May 18, 2012, 11:59:02 AM »
Link to Mod


Medal Honor For Years
Developed by 4kstore
SMF 2.0.XX



El soporte oficial de los desarrolladores de nuestros mods lo encontraras en SMFSimple.com
Official Support in www.SmfSimple.com



Description:
With this mod you can reward the oldiers users withs medal, one medal for each year

Descripcion:
Con este mod podras recompenzar a los usuarios mas antiguos con medallas, una medalla por cada año




Screenshots | Imagenes








Language Support | Lenguajes Soportados
- English
- Spanish_es
- Spanish_latin


Thanks to Emanuele for the help in the code

Icons by FatCow (Creative Commons Attribution 3.0 License.)

Copyright 2012 | SMFSimple.com




Nos halaga que nuestros mods sean copiados por otros equipos, eso nos demuestra que somos originales! :)


Offline vicram10

  • SMF Hero
  • ******
  • Posts: 5,456
  • Gender: Male
  • Founding Father of Ultimate Portal
    • vmrm10 on Facebook
    • @vicram_10 on Twitter
Re: Medal Honor For Years
« Reply #1 on: May 18, 2012, 03:55:01 PM »
nice mod.. congrats ;)

Online Old Fossil

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 9,561
  • Gender: Male
  • Fussy Old Sod
    • @mkcommforum on Twitter
Re: Medal Honor For Years
« Reply #2 on: May 18, 2012, 06:46:35 PM »
Pleased to see this mod now active.

Well done.
My Forum
Simple Portal Beta Tester
 Mod Emulate
Forum Themes
My Forums Broken Fix

PMs for support will be returned with dynamite attached

Offline 4Kstore

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 3,464
  • Gender: Male
  • |-|Principito|-|
    • agustintari on Facebook
    • @agustintarifa on Twitter
    • SSIMPLE TEAM PAGE
Re: Medal Honor For Years
« Reply #3 on: May 18, 2012, 07:24:17 PM »
nice mod.. congrats ;)

Pleased to see this mod now active.

Well done.

Thanks! enjoy it!

Online Colin

  • Customizer
  • SMF Hero
  • *
  • Posts: 4,806
  • Gender: Male
  • SMF Customizer
Re: Medal Honor For Years
« Reply #4 on: May 18, 2012, 07:31:35 PM »
Great MOD! Thanks!

Offline ApplianceJunk

  • SMF Hero
  • ******
  • Posts: 3,138
    • appliancejunk on Facebook
    • @appliancejunk on Twitter
    • ApplianceJunk.com
Re: Medal Honor For Years
« Reply #5 on: May 19, 2012, 12:13:00 AM »
Cool, thanks,

Offline akbora

  • Sr. Member
  • ****
  • Posts: 877
Re: Medal Honor For Years
« Reply #6 on: May 20, 2012, 06:25:58 PM »
This is very good mod. But a lot of errors appear like this:

2: str_repeat(): Second argument has to be greater than or equal to 0

The line is like that:    

$context['mhfyimages'] = str_repeat('<img src="' . $settings['images_url'] . '/icons/gold_star.png" alt="'.$txt['mhfyears'].'" />', $context['countYearsSinceReg']['cantStars']);

What can I do?
SMF 2.0.4
Default Tema
Utf8 Turkish
---------------

Online Old Fossil

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 9,561
  • Gender: Male
  • Fussy Old Sod
    • @mkcommforum on Twitter
Re: Medal Honor For Years
« Reply #7 on: May 20, 2012, 06:28:33 PM »
What is the actual error message?
My Forum
Simple Portal Beta Tester
 Mod Emulate
Forum Themes
My Forums Broken Fix

PMs for support will be returned with dynamite attached

Offline akbora

  • Sr. Member
  • ****
  • Posts: 877
Re: Medal Honor For Years
« Reply #8 on: May 20, 2012, 06:31:56 PM »
This: Site and topic link after than 2: str_repeat(): Second argument has to be greater than or equal to 0
SMF 2.0.4
Default Tema
Utf8 Turkish
---------------

Online Old Fossil

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 9,561
  • Gender: Male
  • Fussy Old Sod
    • @mkcommforum on Twitter
Re: Medal Honor For Years
« Reply #9 on: May 20, 2012, 06:33:09 PM »
This: 2: str_repeat(): Second argument has to be greater than or equal to 0

Can you copy and paste the whole error message from the error log please.
My Forum
Simple Portal Beta Tester
 Mod Emulate
Forum Themes
My Forums Broken Fix

PMs for support will be returned with dynamite attached

Offline akbora

  • Sr. Member
  • ****
  • Posts: 877
Re: Medal Honor For Years
« Reply #10 on: May 20, 2012, 06:34:29 PM »
http://www.xxxi.com/index.php?pretty;board=xxxxi;topic=axxxx-basbakan-xxxx-dili-bozuk-rahatsiz-edici.msg160760
Filtreyi Uygula: Sadece aynı iletiye ait hata iletilerini görüntüle
2: str_repeat(): Second argument has to be greater than or equal to 0
Filtreyi Uygula: Sadece bu dosyaya ait hataları göster
Dosya: /home/xxx/xxx_html/Sources/Display.php
SMF 2.0.4
Default Tema
Utf8 Turkish
---------------

Offline Arantor

  • SMF Legend
  • *
  • Posts: 51,062
    • wedgebook on Facebook
Re: Medal Honor For Years
« Reply #11 on: May 20, 2012, 06:37:20 PM »
The line you posted:
Code: [Select]
$context['mhfyimages'] = str_repeat('<img src="' . $settings['images_url'] . '/icons/gold_star.png" alt="'.$txt['mhfyears'].'" />', $context['countYearsSinceReg']['cantStars']);
Replace with:
Code: [Select]
$context['mhfyimages'] = empty($context['countYearsSinceReg']['cantStars']) ? '' : str_repeat('<img src="' . $settings['images_url'] . '/icons/gold_star.png" alt="'.$txt['mhfyears'].'" />', $context['countYearsSinceReg']['cantStars']);

Online Old Fossil

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 9,561
  • Gender: Male
  • Fussy Old Sod
    • @mkcommforum on Twitter
Re: Medal Honor For Years
« Reply #12 on: May 20, 2012, 06:38:49 PM »
Thanks Arantor.

My Forum
Simple Portal Beta Tester
 Mod Emulate
Forum Themes
My Forums Broken Fix

PMs for support will be returned with dynamite attached

Offline akbora

  • Sr. Member
  • ****
  • Posts: 877
Re: Medal Honor For Years
« Reply #13 on: May 20, 2012, 06:46:31 PM »
Thanks Arantor I changed that line and I will wait I think it is solved.
Also thanks Old Fossil for your interest.
SMF 2.0.4
Default Tema
Utf8 Turkish
---------------

Online Old Fossil

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 9,561
  • Gender: Male
  • Fussy Old Sod
    • @mkcommforum on Twitter
Re: Medal Honor For Years
« Reply #14 on: May 20, 2012, 06:47:24 PM »
This is a mod I was interested in myself.
My Forum
Simple Portal Beta Tester
 Mod Emulate
Forum Themes
My Forums Broken Fix

PMs for support will be returned with dynamite attached

Offline Squash

  • Semi-Newbie
  • *
  • Posts: 59
Re: Medal Honor For Years
« Reply #15 on: May 20, 2012, 07:26:01 PM »
I installed this and it works perfectly for me.

The only thing I noticed with it is it shows medals in threads/posts but not if you are looking at a members profile. Not a huge deal really...I love the effect it has otherwise.  ;D

Online Old Fossil

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 9,561
  • Gender: Male
  • Fussy Old Sod
    • @mkcommforum on Twitter
Re: Medal Honor For Years
« Reply #16 on: May 20, 2012, 07:27:46 PM »
I installed this and it works perfectly for me.

The only thing I noticed with it is it shows medals in threads/posts but not if you are looking at a members profile. Not a huge deal really...I love the effect it has otherwise.  ;D

On my radio forum I swapped the medals for music notes but don't tell the mods author.
My Forum
Simple Portal Beta Tester
 Mod Emulate
Forum Themes
My Forums Broken Fix

PMs for support will be returned with dynamite attached

Offline David111567

  • Semi-Newbie
  • *
  • Posts: 85
Re: Medal Honor For Years
« Reply #17 on: May 27, 2012, 02:00:47 PM »
Great mod! Enjoying it! Terrific idea and well executed!  Thank you!

Offline Kirsten07734

  • Semi-Newbie
  • *
  • Posts: 39
Re: Medal Honor For Years
« Reply #18 on: June 10, 2012, 12:20:05 AM »
Nice mod.  Would be great to have options on date setting, such as using a text abbreviation for the month (8 JAN 2006) or allowing admin to set the order either DD/MM/YYYY or MM/DD/YYYY.

Offline etms52

  • Newbie
  • *
  • Posts: 7
Re: Medal Honor For Years
« Reply #19 on: June 30, 2012, 03:43:53 AM »
My italian language of this tool


Quote
File:./Themes/default/languages/Modifications.italian.php

Trova (alle fine del file):
Code: [Select]
?>
Aggiungi sopra:
Code: [Select]
$txt['MedalHonorForYears'] = 'Con noi da:';
$txt['mhfyenabled'] = 'Mostra la data di registrazione:';
$txt['mhfyenabledtext'] = 'Testo da mostrare nella zona profilo';
$txt['mhfyenabledtextsub'] = 'Il predefinito è: '.$txt['MedalHonorForYears'];
$txt['mhfyenabledimgs'] = 'Mostra una medaglia per ogni anno:';
$txt['mhfyears'] = 'Anni';

Source: hxxp:www.ikariamtools.netsons.org/Forum/index.php?topic=149.0 [nonactive]