vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Show member's ID ! (https://vborg.vbsupport.ru/showthread.php?t=223788)

vuive360 09-23-2009 01:51 AM

Show member's ID !
 
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 02: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 01: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 02: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 02: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 02: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 02:25 PM

^^ wooot ^^! it worked ..... thanks lynne for helping !


All times are GMT. The time now is 12:18 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02766 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete