vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   If registered see this, else see that (https://vborg.vbsupport.ru/showthread.php?t=89021)

Ajay 04-24-2004 09:54 PM

If registered see this, else see that
 
I want to modify one of my templates so that registered users see one thing, and guests see another, but I don't want the members to see that certain part.
ex:
member:
secret area

guest:
you must be logged on to see the secret area

I don't want the members to see the secret area, and "you must be logged in..."

Zachery 04-24-2004 09:56 PM

<if condition="$bbuserinfo[userid] != 0"> Registered users only <else /> Unregistered users </if>

Ajay 04-24-2004 10:01 PM

Thanks. Instead of making a new thread, could you tell me what the variables for Threads: ,
Posts: , and Members: would be? (template)

Zachery 04-24-2004 10:02 PM

You mean the one you see on the forumhome?

Ajay 04-24-2004 10:03 PM

Yeah

Zachery 04-24-2004 10:16 PM

Its kept in the forumhome template, they dont have their own templates anymore.

Ajay 04-24-2004 10:29 PM

I'm going to move it though. I tried: $vbphrase[threads]: $totalthreads, $vbphrase[posts]: $totalposts, $vbphrase[members]: $numbermembers - but that didn't work

Zachery 04-25-2004 12:22 AM

Where did you move it too?

Ajay 04-26-2004 10:41 PM

I moved it to the sidebar.

Zachery 04-27-2004 12:41 PM

Is the left sidebar in another template?


All times are GMT. The time now is 11:42 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.01548 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
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete