Previous Thread
Next Thread
Print Thread
Rate Thread
#285414 05/24/2005 8:47 PM
Joined: Jun 2003
Posts: 88
Power User
Power User
Offline
Joined: Jun 2003
Posts: 88
this code displays the "welcome username" and "you are not loged in" stuff

<?php
// Require the library
require ("includes/main.inc.php");
include("languages/english/index.php");
// -------------

// ------------------------------
// Define any necessary variables
$Cat = get_input("Cat","get");
// -----------------

// Get the user info
$userob = new user;
$user = $userob -> authenticate("U_Groups, U_TimeOffset, U_FrontPage");
$Username = $user['U_Username'];

$html = new html;
if (!$user['U_Username']) {
//echo ("You are not Loged in. [<a href='http://spokejunkies.com/ubbthreads/login.php?Cat='>Login</a>]");
$html -> not_right ($ubbt_lang['notloggedin']. $ubbt_lang['WEL_PRIV_NO'],$Cat);
}
print ("Welcome ");
print ($Username);
print (". [<a href = 'http://spokejunkies.com/ubbthreads/logout.php?Cat='>Logout</a>]");

?>

i am currently inserting this code into an html page via include and it works great BUT when a user logs out it still shows them as loged in... any ideas?

Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
sounds like a cookie issue


- Allen wavey
- What Drives You?
Joined: Jun 2003
Posts: 88
Power User
Power User
Offline
Joined: Jun 2003
Posts: 88
it works ok on the page driven by the ubbthreads index_outside.php page though that’s why i think it has to be a code issue, i didn’t change any of the cookie related stuff... its almost like it isn’t grabbing the updated information from the database... either way i will check out cookies again

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Is this script inside of your ubbthreads directory?

If not, then a couple of things:
Make sure you set cookies site wide "/" in the config file.

These:
require ("includes/main.inc.php");
include("languages/english/index.php");

May need complete server paths if they aren't inside of the ubbthreads directory. example:
require("/home/youruser/public_html/forums/main.inc.php");
etc...


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:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,574
Posts293,926
Members13,850
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
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-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)