Previous Thread
Next Thread
Print Thread
Hop To
Anonymous
Unregistered
Anonymous
Unregistered
Not sure if this is the correct place for this, but under 6.2, ALL visitors show up in "Who is Online" with the Location of "Private". Some say things like, "Private<Forum Name>" or "Private<something that must be an internal message ID>", but everyone has "Private" in front of their location.

Why is this?? Doesn't seem useful if everyone has it... or am I missing something?

[This message was edited by Raconteur on February 01, 2003 at 08:48 PM.]

Anonymous
Unregistered
Anonymous
Unregistered
I took a look at your forum....
Who's online generally displays "Private" if it's on a page outside the threads directory.

Your URL is like this:
http://www.syngnathid.org//ubbthreads/ubbthreads.php?Cat=

Note the extra slash. That might be confusing things.
Go through your config file and look for the trailing / and get rid of it. Then, when the online table updates.... it might just solve the problem.

Josh
www.joshuapettit.com
ThreadsDev.com Administrator
Register to see my How To/Site Help Library Forum at ThreadsDev.com.
My threads 'tweaking' abilities are for hire for upgrades, tweaks and modifications.

Anonymous
Unregistered
Anonymous
Unregistered
Thanks, Josh. I will give it a shot.

Cheers,

Chris

"Education is what you must acquire without any interference from your schooling."
     - Mark Twain

Anonymous
Unregistered
Anonymous
Unregistered
Nope... still the same...

"Education is what you must acquire without any interference from your schooling."
     - Mark Twain

Anonymous
Unregistered
Anonymous
Unregistered
Hmmm....

have you done any modifications to your forum?

Josh
www.joshuapettit.com
ThreadsDev.com Administrator
Register to see my How To/Site Help Library Forum at ThreadsDev.com.
My threads 'tweaking' abilities are for hire for upgrades, tweaks and modifications.

Anonymous
Unregistered
Anonymous
Unregistered
Nope... other than altering the control panel items and creating a new style-sheet...

"Education is what you must acquire without any interference from your schooling."
     - Mark Twain

Anonymous
Unregistered
Anonymous
Unregistered
You might try this SQL Query

REPAIR TABLE w3t_Online


Otherwise.... I'm stumped... Rick? Brett?

Josh
www.joshuapettit.com
ThreadsDev.com Administrator
Register to see my How To/Site Help Library Forum at ThreadsDev.com.
My threads 'tweaking' abilities are for hire for upgrades, tweaks and modifications.

Anonymous
Unregistered
Anonymous
Unregistered
The Onlne table does not show Private... it must be added in the PHP processing...

"Education is what you must acquire without any interference from your schooling."
     - Mark Twain

Anonymous
Unregistered
Anonymous
Unregistered
What it does.... is the extra information typically holds a forum name and post number to process and display the link of what post a person is looking at.

"Private" usually happens when it's confused and outside of the threads directory.

Not sure why it's not processing correctly... I would try fresh copies of online.php, online.tmpl and ubbt.inc.php to see if that solves the problem.

Josh
www.joshuapettit.com
ThreadsDev.com Administrator
Register to see my How To/Site Help Library Forum at ThreadsDev.com.
My threads 'tweaking' abilities are for hire for upgrades, tweaks and modifications.

Anonymous
Unregistered
Anonymous
Unregistered
Ok... I think I have narrowed it down to a problem with the environment var "PHP_SELF" not getting populated... ever.

Beginning on line 295 in ubbt.inc.php:

if ($inputTitle == $config['title']) {
if (!${$config['cookieprefix']."w3t_language"}) {
${$config['cookieprefix']."w3t_language"} = $config['language'];
}
require ("{$config['path']}/languages/${$config['cookieprefix']."w3t_language"}/online.php");
$What = find_environmental ("PHP_SELF");
$script['0'] = "";
preg_match ("/(.*)\/(.*).php/",$What,$script);
$What = $script['2'];
if (stristr($What,"faq_")) {
$What = "faq_english";
}
if (isset($ubbt_lang[$What])) {
$inputTitle = $ubbt_lang[$What];
}
if (!$inputTitle) { $inputTitle = $ubbt_lang['all_admin']; }
}

the system always drops into the last if statement because $inputTitle is not populated.

I verified this by changing the value of 'all_admin' in my English online.php file, and all users appear with that change in the list.

Any help greatly appreciated!

"Education is what you must acquire without any interference from your schooling."
     - Mark Twain

Anonymous
Unregistered
Anonymous
Unregistered
Not sure if that's a bug or a PHP setting problem.

Rick?

Josh
www.joshuapettit.com
ThreadsDev.com Administrator
Register to see my How To/Site Help Library Forum at ThreadsDev.com.
My threads 'tweaking' abilities are for hire for upgrades, tweaks and modifications.

Anonymous
Unregistered
Anonymous
Unregistered
What version of PHP are you running? You might try making a small php script with the following and put it into your ubbthreads directory and see if it prints anything out:

<?

require ("main.inc.php");
$What = find_environmental ("PHP_SELF");
echo $What;

?>

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
We are running 6.2

I will try the script and get back...

Thanks,

Chris

"Education is what you must acquire without any interference from your schooling."
     - Mark Twain

Anonymous
Unregistered
Anonymous
Unregistered
Blank page... check it out at www.syngnathid.org/ubbthreads/WOLTest.php

"Education is what you must acquire without any interference from your schooling."
     - Mark Twain

Anonymous
Unregistered
Anonymous
Unregistered
Hmm, interesting. Actually I meant the version of PHP that you are running, not .threads. PHP is only up to 4.3 right now <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
<img border="0" title="" alt="[Embarrassed]" src="images/icons/blush.gif" /> Sorry...

We are on 4.2.3


"Education is what you must acquire without any interference from your schooling."
     - Mark Twain

Anonymous
Unregistered
Anonymous
Unregistered
Ok, hmm. Do you know how to bring up your phpinfo page? You should be able to see there if your PHP_SELF variable is reporting anything.

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
I don't think so... is it one of the pages in the Information section of the control panel?

"Education is what you must acquire without any interference from your schooling."
     - Mark Twain

Anonymous
Unregistered
Anonymous
Unregistered
Make a script on your server like this:

<?
phpinfo()
?>


That'll show you all the PHP Settings... look for the PHP SELF that Rick mentions. <img border="0" title="" alt="[Wink]" src="images/icons/wink.gif" />


Josh
www.joshuapettit.com
ThreadsDev.com Administrator
Register to see my How To/Site Help Library Forum at ThreadsDev.com.
My threads 'tweaking' abilities are for hire for upgrades, tweaks and modifications.

Anonymous
Unregistered
Anonymous
Unregistered
Yeah... I tried it, but our host has expose_php off.

"Education is what you must acquire without any interference from your schooling."
     - Mark Twain

Anonymous
Unregistered
Anonymous
Unregistered
Rick, any other ideas or input to resolve this one?

"Education is what you must acquire without any interference from your schooling."
     - Mark Twain

Anonymous
Unregistered
Anonymous
Unregistered
Is anyone else having this problem? Has anyone got any ideas on how to fix it??

"Education is what you must acquire without any interference from your schooling."
     - Mark Twain

Anonymous
Unregistered
Anonymous
Unregistered
Without being able to look at the phpinfo to find out if PHP_SELF is getting reported correctly by PHP it's hard to say for sure what's going on. You might want to put in a request to your host to check on this since you are unable to do so. That would help so we'd at least know if PHP was reporting correctly.

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
Thanks, Rick. I am checking with our host for details... Will post when I hear from them.

"Education is what you must acquire without any interference from your schooling."
     - Mark Twain

Anonymous
Unregistered
Anonymous
Unregistered
Hi Rick,

Here is the response from our host:

PHP_SELF has been deprecated in php for the last
couple of versions. You will need to replace all references
to $PHP_SELF with $SCRIPT_NAME. The phpinfo function has been turned off
for security reasons.

Does this mean I am going to have to modify all of my PHP files?

"Education is what you must acquire without any interference from your schooling."
     - Mark Twain

Anonymous
Unregistered
Anonymous
Unregistered
Ha HA!!

That did it!

Replacing all occurrences of "PHP_SELF" with "SCRIPT_NAME" fixed it right up!

Cheers,

Chris

"Education is what you must acquire without any interference from your schooling."
     - Mark Twain

Anonymous
Unregistered
Anonymous
Unregistered
Rick -
This fixes the issue of the forum headers sometimes appearing in the admin section as well. <img border="0" title="" alt="[Wink]" src="images/icons/wink.gif" />

Thanks Racantauor!

Josh
www.joshuapettit.com
ThreadsDev.com Administrator
Register to see my How To/Site Help Library Forum at ThreadsDev.com.
My threads 'tweaking' abilities are for hire for upgrades, tweaks and modifications.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Havenofsobriety), 522 guests, and 99 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)