vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Simple Code (https://vborg.vbsupport.ru/showthread.php?t=132691)

samharris 11-28-2006 10:25 AM

Simple Code
 
Is there a simple code to see if a user has signed into vbulletin or not???

peterska2 11-28-2006 10:27 AM

You can use
Code:

$show[member]
for members and
Code:

$show[guest]
for guests anywhere in the templates. Or you can use
Code:

$bbuserinfo[userid]!=0
for members again anywhere in the templates.

samharris 11-28-2006 10:37 AM

How would the code look if i wanted it to say
if a user is login then show
link 1 - link2 - link3
else
show
link a - linkb - linkc

thanks


Quote:

Originally Posted by peterska2 (Post 1127155)
You can use
Code:

$show[member]
for members and
Code:

$show[guest]
for guests anywhere in the templates. Or you can use
Code:

$bbuserinfo[userid]!=0
for members again anywhere in the templates.


peterska2 11-28-2006 10:49 AM

something along the lines of
Code:

<if condition="$show[member]">
Member stuff here
<else />
guest stuff here
</if>


samharris 11-28-2006 10:56 AM

Quote:

Originally Posted by peterska2 (Post 1127166)
something along the lines of
Code:

<if condition="$show[member]">
Member stuff here
<else />
guest stuff here
</if>


would that be th same if u put it on a php page which also contains the forum?

peterska2 11-28-2006 11:00 AM

No, this is just for in the templates. The code you would need for in the php file is completely different and unless the file is linked to vBulletin then the required variables (which I can't remember off the top of my head) won't work.

samharris 11-28-2006 11:16 AM

is there a way to change the size of the navbar so it fits into the page properly and the search box is under the search box and not 10cm to the side?

peterska2 11-28-2006 02:23 PM

That will be due to a problem with your template, probably due to a modification to it that has not been correctly applied.


All times are GMT. The time now is 08:25 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.00948 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
  • (8)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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