Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 2001
Posts: 379
Member
Member
Offline
Joined: Sep 2001
Posts: 379
I removed the status checking (Moderator/Administrator) after figuring out this would affect normal members in some awful way (no status shown at all, haha).

Here's the finished code:
-------------------------

# get status line
&RequireVars("$vars_config{VariablesPath}/vars_idle.cgi");

# get status separator
if ($vars_idle{status_sep} ne ''){
$status_sep = "$vars_idle{status_sep}";
} else {
$status_sep = "
";
}# end get status separator

$status = $user_profile[8];
$custom_status = $user_profile[31];

if ($vars_idle{append_status} eq 'APPEND' && $custom_status ne '') {
$user_status = &CustomTitle($status) . $status_sep . $user_profile[31];
}
elsif ($vars_idle{append_status} eq 'APPEND' && $custom_status eq '') {
$user_status = &CustomTitle($status);
}
elsif ($vars_idle{append_status} eq 'OVERWRITE' && $custom_status ne '') {
$user_status = $user_profile[31];
}
elsif ($vars_idle{append_status} eq 'OVERWRITE' && $custom_status eq '') {
$user_status = &CustomTitle($status);
}
#end get status line
-------------------------

I don't get it, but sometimes it would read vars_idle.cgi, sometimes not.
So I added the RequireVars and "completed" the if-elsif part so I'd definately get the status looking the way I want it to be.

Interesting site, by the way.
Thanks!

Sponsored Links
Entire Thread
Subject Posted By Posted
Logical operators and if-elsif statements Idle 04/05/2002 1:14 AM
Re: Logical operators and if-elsif statements Dave_L 04/05/2002 1:38 AM
Re: Logical operators and if-elsif statements Idle 04/05/2002 2:49 AM
Re: Logical operators and if-elsif statements Dave_L 04/05/2002 6:26 AM
Re: Logical operators and if-elsif statements Dave_L 04/05/2002 6:32 AM
Re: Logical operators and if-elsif statements Idle 04/05/2002 12:09 PM
Re: Logical operators and if-elsif statements Dave_L 04/05/2002 7:08 PM
Re: Logical operators and if-elsif statements Idle 04/05/2002 10:24 PM
Re: Logical operators and if-elsif statements Dave_L 04/05/2002 10:54 PM
Re: Logical operators and if-elsif statements Idle 04/05/2002 11:45 PM
Re: Logical operators and if-elsif statements Dave_L 04/06/2002 12:01 AM
Re: Logical operators and if-elsif statements Idle 04/06/2002 12:06 AM
Re: Logical operators and if-elsif statements Dave_L 04/06/2002 12:13 AM
Re: Logical operators and if-elsif statements Idle 04/06/2002 12:26 AM
Re: Logical operators and if-elsif statements Dave_L 04/06/2002 1:14 AM
Re: Logical operators and if-elsif statements Idle 04/06/2002 4:44 AM
Re: Logical operators and if-elsif statements Dave_L 04/06/2002 11:32 AM
Re: Logical operators and if-elsif statements Idle 04/06/2002 8:09 PM
Re: Logical operators and if-elsif statements Idle 04/07/2002 10:28 AM
Re: Logical operators and if-elsif statements Dave_L 04/07/2002 12:06 PM
Re: Logical operators and if-elsif statements Idle 04/07/2002 10:40 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 850
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 27
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)