vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Welcome back... on main site (https://vborg.vbsupport.ru/showthread.php?t=47234)

Ember 01-01-2003 10:03 PM

Welcome back... on main site
 
How would I go about adding:

"Welcome back Username"

and if they're not registered

"Welcome back Guest"

onto my homepage, this was really easy to do using invision, but all the hacks for vb seem totally stupidly complex, trying people trying to do as much as they can, like having an entire welcome bar, avatar n all... I dont want that much!!!

So how can I just add that?

Xenon 01-01-2003 10:21 PM

install logicians conditional in templates hack, then you can use conditions to show Username or Guest :)

Ember 01-01-2003 10:30 PM

Thanks! I will look it up now :)

Ember 01-02-2003 06:21 PM

Ok, I installed the hack, but ehhhh, how do I set it to do conditions? Kinda not making sense!

Xenon 01-02-2003 06:34 PM

no idead, ask in the supportthread, i use another hack for conditions ;)

i think it's something like that:

Welcome [[$bbuserinfo[userid]>0]]$bbuserinfo[username][[/$bbuserinfo[userid]>0]][[$bbuserinfo[userid]==0]]Guest[[$bbuserinfo[userid]==0]]

DrkFusion 01-02-2003 06:57 PM

Logicien = Smart Man :-p
I havn't got around to installing the Conditionals hack, but I think this is a great addition and will be adding it soon.,

Ember 01-02-2003 07:16 PM

Never mind, I worked out how to do it... but it just shows Unregisered... even if you are logged in, so I think I messed up somewhere...


All times are GMT. The time now is 07:13 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.00993 seconds
  • Memory Usage 1,714KB
  • 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