vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Hello [username]! (https://vborg.vbsupport.ru/showthread.php?t=93145)

i-Xp 07-29-2005 05:13 PM

Hello [username]!
 
Wherever I put this tag in my title, post or sig your logged in username will appear. If you're not logged in then something else pre-defined will show up.

I have seen this in action on a live board. How can I do it? I searched this forum but I haven't had a lot of luck :(

Thank you.

Andreas 07-29-2005 05:17 PM

Hookname: global_complete
PHP Code:

$output str_replace('[username]'$vbulletin->userinfo['username'], $output); 

Please note that this replace takes place EVERYWHERE.

i-Xp 07-29-2005 05:23 PM

Ok, couple of questions.

So, I can start a topic that says "Hi [username], how are you today?" and it will output for instance, "Hi KirbyDE, how are you today?"

What file does this go in to?

Andreas 07-29-2005 05:40 PM

1) Yes
2) No File - Hook global_complete

i-Xp 07-29-2005 05:43 PM

Thank you :)

What would it display to a user who is not logged in?

How can it be : "Guest" ?

Andreas 07-29-2005 05:56 PM

Unregistered User or smth. like that.

bchertov 07-29-2005 06:18 PM

<off topic>

KIRBY!
Please contact me ASAP! I need the a file you changed for me.
It's URGENT!

Barry@waccobb.net

Boofo 07-29-2005 11:00 PM

How do we make the plug-in for this?

Shy 07-31-2005 08:24 AM

It doesn't work with 3.5.0 RC 1 for me.
Any idea why?

Andreas 07-31-2005 10:03 AM

Just tested, works fine for me on RC 1


All times are GMT. The time now is 02:26 AM.

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.02659 seconds
  • Memory Usage 1,725KB
  • 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)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete