vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Outside of Forums Check for Forum Cookie (https://vborg.vbsupport.ru/showthread.php?t=93105)

Jako 07-28-2005 11:40 PM

Outside of Forums Check for Forum Cookie
 
I have my site at mydomain.com and my forums at mydomain.com/forums

I want the information at mydomain.com to be only viewable to the people that are logged in. What cookie should I check for and include on every page to see if the user is logged in or not?

Tony G 07-29-2005 12:34 AM

Is this mydomain.com a portal page or just a regular html/php/whatever page?

Jako 07-29-2005 02:20 AM

It's just a regular php page.

Any help would be greatly appreciated.

Jako 07-30-2005 05:31 AM

Does anyone have any ideas? I got most of it right I think, but I want your input.

romerom 07-30-2005 05:02 PM

try this..

chdir("./forum/");
include_once('./global.php');
chdir("../");

if ( !$bbuserinfo['userid'] ) {
print "you gets no love";
} else {
print "content content content!!!"
}

harry1951 07-31-2005 07:40 AM

I need this too but also a check if the user is a member. What do I have to add?

Jako 07-31-2005 07:41 AM

Harry, I have been working on this for a while tonight, it's already going on 6am over here. I'm off to bed, but I got it to work finally, I will post the code in the morning.

harry1951 07-31-2005 07:56 PM

I will be patient :-)

romerom 07-31-2005 11:08 PM

Quote:

Originally Posted by harry1951
I need this too but also a check if the user is a member. What do I have to add?

did that code snippet i posted up work? you'll obviously have to modify it to fit your use


All times are GMT. The time now is 08:04 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.01444 seconds
  • Memory Usage 1,717KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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