TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 10:45:43 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,106
  • Total Topics: 21,213
  • Online today: 358
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 99
  • Total: 99

action=forum == 'Unknown action'

Started by akyhne, March 29, 2009, 03:23:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Akyhne

TP 1.0 beta 3 (and also this forum running 1.0 beta 4)

Whenever a user is watching the forums frontpage, like:
http://www.tinyportal.net/index.php?action=forum

... the status of the person is 'unknown action'.

This has been bothering me for some time, so if you have a quick fix, I would be glad to receive the fix.

Renegd98

The status of the user is a SMF function and not a TP unique function. Have you asked this question at SMF?

Akyhne

I only have the issue with TP installed, and as mentioned the error is also here in this forum.
And is action='forum' part of the standalone SMF? I don't think so, but could be wrong.

Akyhne

Everything that is related to action='forum' is TP related. There's just no relation to it in the who file.

Renegd98

Well when i go to your profile and look at the status is has online, not unknown.... is that what you are referring to?

Akyhne

No, I will go to "http://www.tinyportal.net/index.php?action=forum" after posting this, and you will see my status as 'unknown action'.

Renegd98

I just looked at your status and it has online.

Where are you referring to seeing "uknown action"?

Akyhne

In the 'Users Online'.

You can test it this way: Go to "http://www.tinyportal.net/index.php?action=forum" in your fav. browser, then open another browser where you are not logged in. Go to http://www.tinyportal.net/index.php?action=who and you will see your profile as "unknown action".

Renegd98

Hmmm, rather strange,

Mine said:  Renegd98      11:06     Viewing Who's Online.

But I did see alot of Unknown actions.

Renegd98

You can file it as a bug. Please provide the steps required to reproduce the error, like you did above so Bloc has all the info to look at this, and also refer to this post.

Akyhne

Quote from: Renegd98 on March 29, 2009, 05:07:49 PM
Hmmm, rather strange,

Mine said:  Renegd98      11:06     Viewing Who's Online.

But I did see alot of Unknown actions.

You have to use a browser (e.g IE7) to go to http://www.tinyportal.net/index.php?action=forum, then go to http://www.tinyportal.net/index.php?action=who in another browser (e.g FF) where you are not logged in, to see the status of your real profiles status.

I thought I was reporting in the bugs section.

IchBin

You are, but if you do it the proper way by going to the bugtracker a topic in the bugtracker will automatically generate the post in this board. This way, when Bloc looks at the bugtracker, he sees which bugs are open and closed. Right now, you have only made a topic, not a bug report.

Akyhne


Renegd98

Bu if you are not logged in then you shouldn't be able to see the status of logged in users...



Skhilled


Lesmond

Quote from: Renegd98 on March 29, 2009, 06:31:19 PM
Bu if you are not logged in then you shouldn't be able to see the status of logged in users...

You don't have to be logged in on tp to see the users or profiles, something I think should be changed IMHO 

Skhilled

I thought so. Can't see them on my site.

Renegd98

This setting may have something to do with it. i tis from SMF basic Settings...

Allow non-administrators to hide their online status?

Akyhne

Can't be. It's an option I always disable, and half of my users are often in "Unknown Action".
I tested with a few members today, and found it was only when they were on the board index we had the issue.
The same seems to apply here in this forum.

Renegd98

Ok, lets see what Bloc comes up with. Thanks for posting the bug.

IchBin

For a quick fix, open Who.php in Sources folder and find this code about line 268:
// Viewing/editing a profile.
if ($actions['action'] == 'profile' || $actions['action'] == 'profile2')
{
// Whose?  Their own?
if (empty($actions['u']))
$actions['u'] = $url[1];

$data[$k] = $txt['who_hidden'];
$profile_ids[(int) $actions['u']][$k] = $actions['action'] == 'profile' ? $txt['who_viewprofile'] : $txt['who_profile'];
}


Add after that code this:

elseif ($actions['action'] == 'forum')
{
$data[$k] = 'Viewing the Forum Index';
}


You can change the text to say what ever you'd like.

Akyhne

#23
IchBinâ„¢: Did the job, thx.

Akyhne

This is still an issue in TinyPortal 1.0 beta 5.2

ZarPrime

Akyhne,

Thanks for posting the reminder.  I'll make sure that this issue is in our new bugtracker and perhaps we can get Bloc to fix this for his next update. ;)

ZarPrime