News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Latest Members

Started by Bulakbol, January 04, 2009, 02:26:23 PM

Previous topic - Next topic

Bulakbol

Link to Mod

Author: Bulakbol   Mod Name: LatestMembers  Version: 1.0 Tested: Freshly installed SMF 1.1.7 and SMF 2.0 Beta 4
  • This mod will display the latest members name and date of registration on board index. Also hide the [More Stats] link.
  • This will display the desired number of latest members on the right side of board index under Forum Stats category.
  • To configure the number of latest members to be displayed and to show the "[More Stats]" link, , navigate to "Admin =>  Features and Options => ("Layout and Options" for 1.1.7, "Layout" for 2.0 Beta 4)" and enter the number in  "Number of latest members on board index" textbox. If you enter zero, 1 or empty, it will use the default display of 1.
  • The checkbox for "Show latest member on board index" in "Admin => Current Theme => Theme Settings" will disable or enable this mod.
Supported SMF 2.0 Beta 4 Themes
  • Default Theme - Core
  • Classic
  • Babylon
  • shinyblue2b3
  • ShadowPeople03
Supported SMF 1.1.7 Themes
  • Default Theme - Core
  • Classic
  • Babylon
  • shinyblue115
  • DiberMC
  • Wowdk_114v1
  • Aa_New_Damage
Supported languages
  • English
  • English-utf8
Supports Tiny Portal and Simple Portal's block.
Happy New Year 2009!!

January 17, 2009

  • Fixed Tiny Portal display. Only Tiny Portal was affected.

February 18, 2009

  • Released update for version 2.0 RC1.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Burke ♞ Knight


TW1ST3D

Cool Mod !!  Is there any way to relpace the Key Stats Box with this mod?
Running 2.0 Gold.......SMF Rocks!!

Yağız...

Nice mod Bulakbol. Turkish translation:
Code (Modifications.turkish.php) Select

$txt['number_members'] = 'Anasayfada gösterilecek son üye sayısı';
$txt['show_more_stats'] = '[Daha fazla istatistik] linkini anasayfada göster';
$txt['latest_members'] = 'Son Üyeler';

Code (Help.turkish.php) Select

$helptxt['number_members'] = 'Anasayfada gösterilecek son üye sayısını girin. 1\'den fazla olmalı.';
$helptxt['show_more_stats'] = 'Anasayfada Forum İstatistikleri bölümünde bulunan[Daha fazla istatistik] linkini göster.';

Code (Modifications.turkish-utf8.php) Select

$txt['number_members'] = 'Anasayfada gösterilecek son üye sayısı';
$txt['show_more_stats'] = '[Daha fazla istatistik] linkini anasayfada göster';
$txt['latest_members'] = 'Son Üyeler';

Code (Help.turkish-utf8.php) Select

$helptxt['number_members'] = 'Anasayfada gösterilecek son üye sayısını girin. 1\'den fazla olmalı.';
$helptxt['show_more_stats'] = 'Anasayfada Forum İstatistikleri bölümünde bulunan[Daha fazla istatistik] linkini göster.';

edi67

CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

chrisb

Well done on the new mod to the site

RIGILKENTARUS

#6
Latin Spanish translation

Modifications.spanish_latin.php

$txt['number_members'] = 'Número de los últimos miembros a mostrar en el índice del foro';
$txt['show_more_stats'] = 'Mostrar el enlace [Más Estadísticas] en el índice del foro';
$txt['latest_members'] = 'Últimos miembros';


Help.spanish_latin.php
$helptxt['number_members'] = 'Ingresar el número de últimos miembros a mostrar en el índice del foro. Debe ser mayor que 1.';
$helptxt['show_more_stats'] = 'Mostrar el enlace a [Más Estadísticas] en el índice del foro debajo de las "Estadísticas del Foro"';



Modifications on the Black45 Theme (the same as the default theme)
./Themes/Black45/BoardIndex.template.php



Find:
<td class="titlebg" colspan="2">', $txt[645], '</td>

Replace With:
<td class="titlebg" colspan="2">', latestMembersOnBoard(), ($settings['show_latest_member'] && $context['member_limit'] > 1) ? '<div style="float: right; padding-right: 135px;">
' . $context['member_limit'] . ' ' . $txt['latest_members'] . '</div>' : '', $txt[645], '
</td>



Find:
<span class="middletext">
', $context['common_stats']['total_posts'], ' ', $txt[95], ' ', $txt['smf88'], ' ', $context['common_stats']['total_topics'], ' ', $txt[64], ' ', $txt[525], ' ', $context['common_stats']['total_members'], ' ', $txt[19], '. ', $txt[656], ': <b> ', $context['common_stats']['latest_member']['link'], '</b>
<br /> ' . $txt[659] . ': <b>&quot;' . $context['latest_post']['link'] . '&quot;</b>  ( ' . $context['latest_post']['time'] . ' )<br />
<a href="', $scripturl, '?action=recent">', $txt[234], '</a>', $context['show_stats'] ? '<br />
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</span>


Replace With:
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<span class="middletext">
', $context['common_stats']['total_posts'], ' ', $txt[95], ' ', $txt['smf88'], ' ', $context['common_stats']['total_topics'], ' ', $txt[64], ' ', $txt[525], ' ', $context['common_stats']['total_members'], ' ', $txt[19], '. ',
$context['member_limit'] > 1 ? '' : ($settings['show_latest_member'] ? $txt[656] . ': <b> ' . $context['common_stats']['latest_member']['link'] . '</b>' : ''), '
<br /> ' . $txt[659] . ': <b>&quot;' . $context['latest_post']['link'] . '&quot;</b>  ( ' . $context['latest_post']['time'] . ' )<br /><a href="', $scripturl, '?action=recent">', $txt[234], '</a>',
(isset($modSettings['show_more_stats']) && $modSettings['show_more_stats'] && $context['show_stats']) ? '<br /><a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</span>
</td>
', ($settings['show_latest_member'] && $context['member_limit'] > 1) ? '<td width="250" valign="middle" class="smalltext" align="left">' . implode($context['latest_members_dated'], '<br />') . '</td>' : '', '
</tr>
</table>
WwW.ChileDescargas.Com Comunidad de Descargas..... Si no lo tenemos, pidelo y lo traemos.......

edi67

is possibile have DATA of registration of new user in same format language used? i means , i have italian language and DATA of registration of 3 last users is wrote in english (Jan, ecc.. ) in italian is different i can have format that use italian language?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

TW1ST3D

Works on Heavily Modded 1.1.7 forum !!!   Kudos !!
Running 2.0 Gold.......SMF Rocks!!

Bulakbol

Thanks guys for all your compliments. Appreciated.

@TW1ST3D
You mean, the babylon theme, right? Yes, it is possible. Try this one. Edit index.template.php, find
', $txt[656], ': <b> ', $context['common_stats']['latest_member']['link'], '</b>

and replace with
', latestMembersOnBoard(), ($settings['show_latest_member'] && $context['member_limit'] > 1) ? $context['member_limit'] . ' ' . $txt['latest_members'] . ': <div style="padding-left: 20px;"><b>' . implode(', ', $context['latest_members_no_date']) . '</b></div>' :
$txt[656] . ': <b> ' . $context['common_stats']['latest_member']['link'] . '</b>


@Yağız
Thanks for the Turkish and utf8 language translation. I will add it today.

@RIGILKENTARUS
Thanks for the info and the Spanish_latin language translation . I know it will be benefecial to Black45 Theme users who want to install this mod.

@edi67
I uploaded a new package. Let me know if it will work. It will use the truncated months' name from languages/index.{language}.php called $txt['months_short'] for translating the month name.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

edi67

Quote from: Bulakbol on January 08, 2009, 10:03:15 PM

@edi67
I uploaded a new package. Let me know if it will work. It will use the truncated months' name from languages/index.{language}.php called $txt['months_short'] for translating the month name.


More better now bravo ;)

Italian Language:
$txt['number_members'] = 'Numero ultimi utenti da mostrare';
$txt['show_more_stats'] = 'Mostra il link [Altre Statistiche] sull\'indice';
$txt['latest_members'] = 'Ultimi Utenti Registrati';
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

willerby

I use a tailored version of Jade's Shadow People on my club forum and whilst the mod installed fine on 2.0 b4, in that theme the layout is a little screwed...

See attached:

- '3 Latest Members' title is not lined up with list of members
- mod pushes text down below shading leaving a large gap below the titles
- mod inserts latest members in a new shaded box within the existing table rather than overlay which looks odd

Any chance of looking at attached and suggesting fixes for these issues?

Many thanks for any help you can give. Great mod...

W
What type of washing machine is September?

An autumnatic. :)

Bulakbol

@edi67
Thanks for the translation. I will add them to the next update.

@willerby
You probably edited your Boardindex.template.php too much.  :D You can attach your BoardIndex.template.php and I'll look at it. It seems that there are extra linefeeds in there.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

willerby

#13
Board index attached... ex Latest Member mod...

Thanks for your help

W
What type of washing machine is September?

An autumnatic. :)

ManilaGurL

Hello, Bulakbol! LTNS  :D

Well, I got this error while trying to install this mod:

10.     Execute Modification     ./Themes/wowdk_114v1/BoardIndex.template.php     Skipping file
11.    Execute Modification    ./Themes/dilbermc/BoardIndex.template.php    Test failed
12.    Execute Modification    ./Sources/SPortal1-1.php    Skipping file

What should I do? Thanks!

Bulakbol

@willerby
I want to see the BoardIndex.template.php with the mod installed.

@Manilagurl
I'm glad to know it is now working fine.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

willerby

What type of washing machine is September?

An autumnatic. :)

Bulakbol

@willerby
You said  Shadow People Theme. The file you attached to your post doesn't seem to be the right one.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

willerby

I'm sorry...picked the wrong file from download folder...

This is my current board.index template file that produces the results as above using Shadow People

W
What type of washing machine is September?

An autumnatic. :)

Bulakbol

#19
@willerby
I cannot find anything wrong with your BoardIndex.template.php. There's is no space (linebreak) just like the image you posted. If you want to align the "X Latest Members" to the displayed list of members under it, find
Quote<div class="infocenter_section">', latestMembersOnBoard(), (!empty($settings['show_latest_member']) && $context['member_limit'] > 1) ? '<div class="headerpadding titlebg" style="float: right; padding-right: 154px;">
and change the 154 to less number. Try 134.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Advertisement: