vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   [Urgent] Check if user is logged in. (https://vborg.vbsupport.ru/showthread.php?t=170801)

HKothari 02-18-2008 12:12 AM

[Urgent] Check if user is logged in.
 
Can someone help me on this, I finally got a working login page to integrate my site by using the code from this page but I can't seem to figure out how to hide the form and show something else if the user is already logged in. Anyone have ideas?

Hex_legend 02-18-2008 01:17 AM

<if condition="$show['register']>
LOGIN CODE
<else />
Text for logged in users
</if>

How about that?

HKothari 02-18-2008 01:29 AM

That didn't seem to work at all, it showed both the login code and the other.

What Do I have to include for this to work, that may be the problem.

Dismounted 02-18-2008 03:59 AM

Is this on your own custom page? Could you post that page?

MiahBeSmokin420 02-18-2008 07:51 AM

HTML Code:

<if condition="$bbuserinfo[userid]">
Text For Logged In Users
<else />
LogIn Code
</if>


HKothari 02-18-2008 11:14 AM

Quote:

Originally Posted by Dismounted (Post 1445702)
Is this on your own custom page? Could you post that page?

http://www.truewebgaming.com
and to use the if statements, what do I need to include?

Also, can I just use php's if statements, and as far as the bbuser thing, what do I need to include?

Opserty 02-18-2008 11:26 AM

<a href="https://vborg.vbsupport.ru/showthread.php?t=170110" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=170110</a>

HKothari 02-18-2008 11:49 AM

Ok, well, I followed that, but it says this when I test it:
Quote:

Notice: Undefined index: HTTPS in /usr/local/pem/vhosts/133519/webspace/httpdocs/forums/includes/class_core.php on line 1591

Notice: Undefined index: HTTPS in /usr/local/pem/vhosts/133519/webspace/httpdocs/forums/includes/class_core.php on line 1591




Unable to add cookies, header already sent.
File: /usr/local/pem/vhosts/133519/webspace/httpdocs/forums/includes/class_core.php
Line: 1591


Any Ideas why?

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

I found out that it's a notice, so it's not important, but it still isn't checking whether the user is logged in. Anyone?

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

If you aren't logged in, all it does is show the error, and nothing else is loaded, if you are logged in, it just shows the notices at the top, but it loads the rest of the page


All times are GMT. The time now is 09:37 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.01097 seconds
  • Memory Usage 1,727KB
  • 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_html_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