News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

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

Sweetwater

FYI

This mod currently won't install on 1.1.9

QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF. 

Regards,

Sweetwater

BAMAVAMP

I would love to see this functioning on 1.1.10. 

Would this work?
http://www.simplemachines.org/community/index.php?topic=13830.0

Scoobymaniac

I'm getting a warning that some of the files are corrupt on 1.1.11 and now on 1.1.12.

Is there any update in the pipeline?

Scoobymaniac

I got this to work by manual install on 1.1.13/14 but have now switched to 2.0. Is there any updates planned?

Inti31

#24
I modified that a few minutes ago just for 2.0 Gold - german-utf8 - took only minutes to make it working...

if you want to have that working in your language - it's simple:

extract modification_2.xml and open it with e.g. notepad - you have to download the attached file

3 things you've to modify - enter your language also your translation for the word "registered" and what your label should be (bold).
You find that at the end of that modification-2.xml

<file name="$languagedir/index.[b]german[/b]-utf8.php">
<operation>
<search position="before"><![CDATA[$txt['date_registered'] = '[b]Registriert[/b]';
]]></search>
<add><![CDATA[$txt['memberid'] = '[b]Mitglied N&#186;[/b]';
]]></add>
</operation>
</file>


hmmh, have seen that in code-tags bold is not working - see the text between [b][/b]

See my profile - okay Iam No 1 :)
my forum
my testforum


my mods - which I only made them work for 2.0 Gold:
Topics Filter v3.2 SMF 2.0 Gold
MemberNumber

Eskuineko

¿Nadie retomará el desarrollo de mod? es decir, que lo actualizen, ¿Alguien sabe cómo poner en el campo del perfil el número de usuario? y también en el perfil ya que tengo instalado Ultimate Profile, uso SMF 2.0.1 y el theme Estalia :-\

Espero que alguien hable español.

Biology Forums

Useful :) Especially with prettyURLs

BigMike

Quote from: SgtMic on March 30, 2009, 06:35:29 PM
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.

X2.

This thread needs to be renamed to "MemberID" because it is certainly not a MemberNumber (which doesn't exist in SMF).

BigMike

Advertisement: