vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   translate userid into username (https://vborg.vbsupport.ru/showthread.php?t=256866)

SoloX 01-10-2011 03:56 AM

translate userid into username
 
hello:

an external program (chat presence) generates a list of userids and dumps them into a file:

232
2
334
54

I saw somewhere where i can include a php file in my templates but can someone suggest a quick(er) way to translate these ids into usernames so that I can display them on my forums?

Thanks

midnz 01-10-2011 06:16 AM

The following link to the 3.8 BBCode works with vB4.
What it does is simple... when you use the tag [user] to identify a certain member of the site, its real username with markup will appear.

[user] musername with profile link

SoloX 01-10-2011 06:26 AM

perfect!!! thanks midnz

--------------- Added [DATE]1294648670[/DATE] at [TIME]1294648670[/TIME] ---------------

ah. spoke too soon.

the code works fine in a thread or when creating a post but i am using another product to display a sidebar column. It does not render [user] in there.

Would you be so nice as to guide me where do I need to make the change in plugin so that this works?

Thanks


All times are GMT. The time now is 01:31 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.01303 seconds
  • Memory Usage 1,709KB
  • 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
  • (3)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