MemberNumber

Started by Peludo_08, February 19, 2009, 03:53:10 PM

Previous topic - Next topic

Peludo_08

Link to Mod

v1.1

  • Compatible with smf 2.0 rc1 and smf 1.1.8
  • Swedish translation added
  • Change "Member Number X" for "Member Nº X"


English:

Well, this modification does the following:

Adds a field in the profile of users indicating the number of registration
is not as explain very well xD
look at the images


-----------------------------------


Espanol
Bueno, esta modificacion hace lo siguiente:

Agrega un campo en el perfil de los usuarios indicando el numero de registro
no se como explicarlo muy bien xD
miren las imagenes



Compatible with:
Version: 1.1.8, 2.0 RC1(new)
Language: English, Spanish, Swedish(new)
Author: Peludo_08
Website: http://descargawarez.net
Demo: Click Here





Make a paypal donation:
[/hr]
Mi Foro: http://www.descargawarez.net
Mi Venganza: http://www.mivenganza.com
Mi Web de Videos: http://www.videosplay.net
Venta de Host: http://www.comprahost.net
Otro Foro: http://descargawarez.net
Descarga Premium de RS, MU y mas por 1 sms diario http://www.descargapremium.com

DareDevil1990

i have installed the mod working good but how do i make it show up under the various suer details that come on the left side of the post?

ManilaGurL

Will this work with dilbermc and tinyportal?

Ravac

Quote from: ManilaGurL on February 20, 2009, 07:09:25 AM
Will this work with dilbermc and tinyportal?

i don't know what files dilbermc theme have, but, if you know how to put the code manualy you need to change just Profile.template.php and Display.template.php and index.language.php

Try instaling mod through acp, if everything is ok, then, there is no need for putting code manualy, if not, search which code is missing

Angelotus

what is the difference with member id?

timned88

i have it working with SMF 2.0RC1 just fine.  i copy pasted the code into the files and it worked great.
one suggestion.... is there a way to make it say Member X of Y where Y is the total members?  (Member 1 of 300)?
Just an idea.

Ravac

#6
Quote from: timned88 on February 20, 2009, 11:00:05 PM
i have it working with SMF 2.0RC1 just fine.  i copy pasted the code into the files and it worked great.
one suggestion.... is there a way to make it say Member X of Y where Y is the total members?  (Member 1 of 300)?
Just an idea.

Display.template.php

find:
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';


Replace with:
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
', $txt['memberid'], '&nbsp;', $message['member']['id'], '&nbsp;', $txt[309], '&nbsp;', $context['common_stats']['total_members'], '<br />
<br />';


Index.language.php

find:
$txt[233] = 'Date Registered';

Add before:
$txt['memberid'] = 'Member';

If you don't wanna change index.language.php try this code below in display.template.php

// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
', $txt['who_member'], '&nbsp;', $message['member']['id'], '&nbsp;', $txt[309], '&nbsp;', $context['common_stats']['total_members'], '<br />
<br />';


PS: This is just for info in topic, not in profile


timned88

here is the code if you want to add member # X of Y to the profile of each person:
profile.template.php

echo '
<dt>', $txt['date_registered'], ': </dt>
<dd>', $context['member']['registered'], '</dd>
<dt>', $txt['lastLoggedIn'], ': </dt>
<dd>', $context['member']['last_login'], '</dd>
<dt>', $txt['memberid'], ':</dt>
<dd> ', $context['member']['id'], ' of ', $context['common_stats']['total_members'], '</dd>';

Marcus Forsberg

Swedish translation:

$txt['memberid'] = 'Medlemsnummer';


Peludo_08

#10
Quote from: timned88 on February 20, 2009, 11:00:05 PM
i have it working with SMF 2.0RC1 just fine.  i copy pasted the code into the files and it worked great.
one suggestion.... is there a way to make it say Member X of Y where Y is the total members?  (Member 1 of 300)?
Just an idea.

good idea


thanks

Quote from: Nas on February 22, 2009, 02:38:58 PM
Swedish translation:

$txt['memberid'] = 'Medlemsnummer';







Edit:

Link to Mod

v1.1

  • Compatible with smf 2.0 rc1 and smf 1.1.8
  • Swedish translation added
  • Change "Member Number X" for "Member Nº X"


Mi Foro: http://www.descargawarez.net
Mi Venganza: http://www.mivenganza.com
Mi Web de Videos: http://www.videosplay.net
Venta de Host: http://www.comprahost.net
Otro Foro: http://descargawarez.net
Descarga Premium de RS, MU y mas por 1 sms diario http://www.descargapremium.com

Allen09

#11
doesnt work for me i get this message The package you are trying to download or install is either corrupt or not compatible with this version of SMF. Im running smf v 2.0 RC1

Peludo_08

#12
Quote from: Allen09 on February 25, 2009, 07:35:42 PM
doesnt work for me i get this message The package you are trying to download or install is either corrupt or not compatible with this version of SMF. Im running smf v 2.0 RC1

OMG... WORK on 2.0 RC1

lock at images..


------------------------------

Download again the mod

or

install with the paraser

Mi Foro: http://www.descargawarez.net
Mi Venganza: http://www.mivenganza.com
Mi Web de Videos: http://www.videosplay.net
Venta de Host: http://www.comprahost.net
Otro Foro: http://descargawarez.net
Descarga Premium de RS, MU y mas por 1 sms diario http://www.descargapremium.com

SgtMic

#13
Installed with one error for the profile.template. That is because of this mod.
But if I add the 2 lines of code in manually, it all works except when I click on profile.
Then I get this error:


Template Parse Error!
There was a problem loading the /Themes/default/Profile.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected '<' in .../Themes/default/Profile.template.php on line 249

240:
241: echo '
242: <dt>', $txt['date_registered'], ': </dt>
243: <dd>', $context['member']['registered'], '</dd>';
244:
245: if (!allowedTo('profile_logged_in'))
246: echo '
247: <dt>', $txt['lastLoggedIn'], ': </dt> 
248: <dd>', $context['member']['last_login'], '</dd>'; 
249: <dt><b>', $txt['memberid'], ': </b></dt>
250: <dd>', $context['member']['id'], '</dd>';
251: if (allowedTo('profile_logged_in'))
252: echo '
253: <dt><b>', $txt['tli_logged_in'], ': </b></dt>


ETA: I get the same error if I install the 2 lines of code starting on line 244 instead of 249.
There is nothing more deadly than a US Marine and his rifle.
A close second is a US Marine and his K-BAR.
2/5 Fox Co.  (BlackHearts)
FAST Co. 5th Plt. (FIDO)

Peludo_08

es por problema de incompatibilidad amigo..


yo lo probe mas de 20 veces en un foro en localhost y andubo de lujo..


saludos

PD: use google translator :D

Mi Foro: http://www.descargawarez.net
Mi Venganza: http://www.mivenganza.com
Mi Web de Videos: http://www.videosplay.net
Venta de Host: http://www.comprahost.net
Otro Foro: http://descargawarez.net
Descarga Premium de RS, MU y mas por 1 sms diario http://www.descargapremium.com

SgtMic

Quote from: Peludo_08 on March 22, 2009, 09:19:48 PM
es por problema de incompatibilidad amigo..


yo lo probe mas de 20 veces en un foro en localhost y andubo de lujo..


saludos

PD: use google translator :D



In English?
There is nothing more deadly than a US Marine and his rifle.
A close second is a US Marine and his K-BAR.
2/5 Fox Co.  (BlackHearts)
FAST Co. 5th Plt. (FIDO)

BigMike

#16
Guys,

Please remember this modification does NOT show member numbers in a chronological order (at least it is not designed to do so) but rather it simply displays the member's identification number.

This mod is rather old (back to 2004 at least).

This topic has been beat and beat until [Unknown] and others were blue in the face.

Please see my posts on this 2004 thread for plenty of details on what I am talking about:
http://www.simplemachines.org/community/index.php?topic=11118.0

Unfortunately there really isn't such a thing as a "Member Number" for SMF. That was an old dream of mine that faded into the history of the world.

BigMike

To realize the sentiment of the developers of SMF, please consider the following thread:
http://www.simplemachines.org/community/index.php?topic=13830.0

Please note how that thread was LOCKED DOWN and a SMF developer wrote,
Quote from: Grudge
How is the member number even vaguely interesting to anyone ever?

SgtMic

Quote from: BigMike on March 30, 2009, 05:54:28 PM
To realize the sentiment of the developers of SMF, please consider the following thread:
http://www.simplemachines.org/community/index.php?topic=13830.0

Please note how that thread was LOCKED DOWN and a SMF developer wrote,
Quote from: Grudge
How is the member number even vaguely interesting to anyone ever?

That thread kept going after Grudge's personal and unwarranted opinion was stated. It was only locked after the OP had his questions answered and ask to close it.

Irregardless of someone's personal opinions, some mods/ tweaks are and will be favored by certain members. For what ever their reasons. Doesn't mean they need to be shot down.
Just my .02.
There is nothing more deadly than a US Marine and his rifle.
A close second is a US Marine and his K-BAR.
2/5 Fox Co.  (BlackHearts)
FAST Co. 5th Plt. (FIDO)

kkattfish

are you going to update this for 2.0 RC1-1

Advertisement: