Author Topic: {if log_in} something {if log_out}  (Read 4648 times)

0 Members and 1 Guest are viewing this topic.

Offline Stefandv

  • Pre-Newbie
  • Posts: 7
    • View Profile
{if log_in} something {if log_out}
« on: May 24, 2002, 12:33:40 PM »
I want to create some options wich should only be visable when logged in.
And i want to use it like this {if log_in} option {if log_out}.
can someone help?

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
{if log_in} something {if log_out}
« Reply #1 on: May 24, 2002, 12:52:40 PM »
Hi,

try this (untested):

open "includes/page_header.php" and find line:
Code: [Select]
$user_box = $site_template->parse_template("user_logininfo");

add after
Code: [Select]
$site_template->register_vars(array(
  "log_in" => 1,
  "log_out" => 0
));


then find line:
Code: [Select]
$user_box = $site_template->parse_template("user_loginform");

and add after
Code: [Select]
$site_template->register_vars(array(
  "log_in" => 0,
  "log_out" => 1
));


Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Stefandv

  • Pre-Newbie
  • Posts: 7
    • View Profile
{if log_in} something {if log_out}
« Reply #2 on: May 25, 2002, 12:06:23 PM »
Yes it worked, thank you