vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   userid in phrases (https://vborg.vbsupport.ru/showthread.php?t=225813)

testbot 10-22-2009 11:12 PM

userid in phrases
 
i searched and searched for this but found nothing. i'm sure it's out there and/or something simple but i just can't find it.

i need to add the user id to phrases (phrase manager).

like when i see phrases {1} = site name {2} = user name.... i want {4} userid.

how do i get that to work in phrase manager?

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

hey guys. it's me. your favorite vb.org member. :hi:

testbot 11-03-2009 02:28 PM

really? there's no way to do this? seems like it should be easy.

testbot 11-06-2009 05:38 PM

really need this. i've been searching for days.

Brandon_R 11-07-2009 12:14 AM

Add

Code:

Site URL: {1}
Username: {2}
3rd Var: {3}
User ID: {4}

in the phrase "phrase_name"

And in the PHP Code/File add the following code

Code:

$vbphrase['phrase_name'] = construct_phrase('phrase_name', $vbulletin->options['bburl'], $userinfo['username'], 'Hello', $userinfo['userid']);
And in the template where you want to output it, put

HTML Code:

$vbphrase[phrase_name]
Construct Phrase Function


All times are GMT. The time now is 10:40 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.01910 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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