Current time: 03-20-2010, 09:36 AM Hello There, Guest! (LoginRegister)


 
Thread Rating:
  • 3 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] inc/functions_online.php broken
08-03-2008, 05:06 PM
Post: #1
[F] inc/functions_online.php broken
There's something wrong in the file inc/functions_online.php.

1. In the who's online list it is shown that a user is reading a thread but not which thread. The same applies for profiles and so on. If you replace
PHP Code:
        case "showthread":
            if(
$threads[$user_activity['tid']])
            {
                
$pagenote '';
                
$location_name $lang->sprintf($lang->reading_thread2get_thread_link($user_activity['tid']), $threads[$user_activity['tid']], $pagenote);
            }
            else
            {
                
$location_name $lang->reading_thread;
            }
            break; 
with
PHP Code:
        case "showthread":
            if(
$threads[$user_activity['activity']['tid']])
            {
                
$pagenote '';
                
$location_name $lang->sprintf($lang->reading_thread2get_thread_link($user_activity['activity']['tid']), $threads[$user_activity['activity']['tid']], $pagenote);
            }
            else
            {
                
$location_name $lang->reading_thread;
            }
            break; 
the thread issue is fixed. $user_activity['tid'] should be $user_activity['activity']['tid']. The issue with the profiles etc. should be the same.

2. In the profiles the location is always shown as "Unknown location".

Greets,
Michael
-------------
German MyBB-Site
MyBBoard.de
Get the german languagepack here
Visit this user's website Find all posts by this user
08-03-2008, 05:55 PM
Post: #2
RE: inc/functions_online.php broken
I agree this bug by MyBBoard Italia.

[Image: imlovinitly5.gif]
Find all posts by this user
08-03-2008, 06:03 PM
Post: #3
RE: inc/functions_online.php broken
Hi,

Please see if this file fixes both issues. It should go in the inc/ folder.


Attached File(s)
.php  functions_online.php (Size: 26.86 KB / Downloads: 136)

[Image: ryangordon.png]
My Blog - My Mods
Visit this user's website Find all posts by this user
08-03-2008, 06:15 PM
Post: #4
RE: inc/functions_online.php broken
No that did not fix it.. it's still doing it.. heres a pic.

as you can see in the pic when i view my profile it is saying Unknown location.


Attached File(s) Thumbnail(s)
   

[Image: statsig.php]
Visit this user's website Find all posts by this user
08-03-2008, 06:19 PM
Post: #5
RE: inc/functions_online.php broken
Does it fix the first problem though?

[Image: ryangordon.png]
My Blog - My Mods
Visit this user's website Find all posts by this user
08-03-2008, 06:45 PM
Post: #6
RE: inc/functions_online.php broken
With the beta file it works...were there any "important" changes from the beta file? If not we could use the beta file instead or not?

MyBBoard.de Mentor
Find all posts by this user
08-03-2008, 06:52 PM
Post: #7
RE: inc/functions_online.php broken
The fix of Michael83 works partly...

If a user view a profil: Viewing Profile of Array.
Opps bug..

MyBB Version: 1.4.11
DB Version: MySQL 5.0.51
PHP Version: 5.2.6

Sebastian @ http://www.computerhartware.de/
Visit this user's website Find all posts by this user
08-04-2008, 07:48 AM
Post: #8
RE: inc/functions_online.php broken
any word on this ?

[Image: statsig.php]
Visit this user's website Find all posts by this user
08-04-2008, 08:11 AM
Post: #9
RE: inc/functions_online.php broken
Having same problem. Above file does not fix anything.

Hey, Mr. Feather!
Find all posts by this user
08-04-2008, 09:07 AM (This post was last modified: 08-04-2008 09:08 AM by Manuel.)
Post: #10
RE: inc/functions_online.php broken
(08-04-2008 08:11 AM)Jed K Wrote:  Having same problem. Above file does not fix anything.

Does nobody read my postHuh Upload the beta file of it until the team finds the bug in the Gold file and it'll work without any problems, too.


.php  functions_online.php (Size: 26.4 KB / Downloads: 132)

MyBBoard.de Mentor
Find all posts by this user


Forum Jump: