News:

Wondering if this will always be free?  See why free is better.

Main Menu

Medal Honor For Years

Started by vbgamer45, May 18, 2012, 11:59:02 AM

Previous topic - Next topic

vbgamer45

Link to the mod


[glow=black,2,300]Medal Honor For Years[/glow]
Developed by 4kstore
SMF 2.0.XX



[glow=black,2,300]El soporte oficial de los desarrolladores de nuestros mods lo encontraras en SMFSimple.com
Official Support in www.SmfSimple.com
[/glow]



[glow=black,2,300]Description:[/glow]
With this mod you can reward the oldiers users withs medal, one medal for each year

[glow=black,2,300]Descripcion:[/glow]
Con este mod podras recompenzar a los usuarios mas antiguos con medallas, una medalla por cada año




[glow=black,2,300]Screenshots | Imagenes[/glow]








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.)

[glow=black,2,300]Copyright 2012 | SMFSimple.com[/glow]


Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

vicram10


TheListener

Pleased to see this mod now active.

Well done.

4Kstore


¡¡NEW MOD: Sparkles User Names!!!

Colin

"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin


akbora

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.13
Default Theme
Utf8 Turkish
---------------

TheListener

What is the actual error message?

akbora

This: Site and topic link after than 2: str_repeat(): Second argument has to be greater than or equal to 0
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

TheListener

Quote from: akbora on May 20, 2012, 06:31:56 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.

akbora

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.13
Default Theme
Utf8 Turkish
---------------

Arantor

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

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

TheListener


akbora

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.13
Default Theme
Utf8 Turkish
---------------

TheListener

This is a mod I was interested in myself.

Squash

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

TheListener

Quote from: Squash 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

On my radio forum I swapped the medals for music notes but don't tell the mods author.

David111567

Great mod! Enjoying it! Terrific idea and well executed!  Thank you!

Kirsten07734

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.

etms52

My italian language of this tool


QuoteFile:./Themes/default/languages/Modifications.italian.php

Trova (alle fine del file):
?>

Aggiungi sopra:

$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]

Advertisement: