The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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? |
#2
|
||||
|
||||
Is this mydomain.com a portal page or just a regular html/php/whatever page?
|
#3
|
|||
|
|||
It's just a regular php page.
Any help would be greatly appreciated. |
#4
|
|||
|
|||
Does anyone have any ideas? I got most of it right I think, but I want your input.
|
#5
|
|||
|
|||
try this..
chdir("./forum/"); include_once('./global.php'); chdir("../"); if ( !$bbuserinfo['userid'] ) { print "you gets no love"; } else { print "content content content!!!" } |
#6
|
|||
|
|||
I need this too but also a check if the user is a member. What do I have to add?
|
#7
|
|||
|
|||
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.
|
#8
|
|||
|
|||
I will be patient :-)
|
#9
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|