MyBB Community Forums
Member number ? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Requests (https://community.mybb.com/forum-65.html)
+---- Thread: Member number ? (/thread-229091.html)



Member number ? - philbean - 2020-08-17

Not sure if this is a plugin or just an easy tweak or whether it already exists.


Just migrated from IPB (spit) and that had a 'member number' show in the profile and next to the username in thread posts.
ie: First person to join is member #1.  100th person to join is Member #100.

Is this doable in myBB ?


RE: Member number ? - Crazycat - 2020-08-17

Might be possible to edit the templates and add the correct variable (probably {$post['uid']}).
Not really sure it's directly accessible, but you can try.


RE: Member number ? - KevinVR - 2020-08-17

Sure can by editing some templates!

Open up postbit template

Find
{$post['user_details']}

Before, add
Member ID: #{$post['uid']}<br />

For classic postbit mode, you can do a similar change in the postbit_classic template. Give it a try! You can change the location by putting it somewhere else in the templates.

Here you can see the result (I tested on my test forum):

http://prntscr.com/u14fl6


RE: Member number ? - Omar G. - 2020-08-17

Please notet hat {$post['uid']} isn't formatted. However, a plugin for this would be quite pointless.

If you use the Template Conditionals plugin you could use <?=my_number_format($post['uid'])?>.


RE: Member number ? - KevinVR - 2020-08-17

(2020-08-17, 09:53 PM)Omar G. Wrote: Please notet hat {$post['uid']} isn't formatted. However, a plugin for this would be quite pointless.

If you use the Template Conditionals plugin you could use <?=my_number_format($post['uid'])?>.

Just wondering, what do you mean with number format? In this case it's just a number, I don't see what has to be formatted.

Edit: okay I realised, the spacing for numbers can make sense Smile. Not sure in this case what OP wants.


RE: Member number ? - philbean - 2020-08-17

Thanks all.
Exactly what I was after. I'll have a play tomorrow.

+ reps all round Smile