View Full Version : Show member's ID !
vuive360
09-23-2009, 02:51 AM
Hi everyone !
i'm looking for a mod ( may this mod will never use for everyone )
I dont know what code do i have to add on temprate and show up member's ID number
Eg: admin sign in and show up that ID is #1
follow register ID number...
can anyone help me this problem ?
thank you !
Lynne
09-23-2009, 03:51 AM
If you are just talking about putting it in the postbit (or postbit_legacy) template, then the variable name for the user who posted would be $post[userid]
vuive360
09-23-2009, 02:58 PM
hmmm ! i mean , i want to show this ID on nav or next to User CP , welcome message !!... somewhere like that ! so , can i do that
thank for helping
Lynne
09-23-2009, 03:02 PM
So, show the user who is viewing the page their own userid number? If it is for the user viewing the page, you would just use $bbuserinfo[userid]
vuive360
09-23-2009, 03:14 PM
so , if i want to add this USER # on these welcome meassge !
*************************************
Welcome, vuive360. You have 0 unread messages; Total 0.
You last visited: Today at 04:46; You Have 4,799 Unread Posts.
**************************************
which template could i add ?
thanks again !
Lynne
09-23-2009, 03:17 PM
That is probably the navbar template. To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.
vuive360
09-23-2009, 03:25 PM
^^ wooot ^^! it worked ..... thanks lynne for helping !
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.