 | [Solved] few problems with the online/offline mod |  |
Posted: 05/18/2007 5:42 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 5:39 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] few problems with the online/offline mod |  |
Posted: 05/18/2007 5:58 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 5:39 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
I'm guessing it's a permissions problem but the easymods_list I didn't even touch and it’s set to 644 so I can't see why it aint loading up for
Not sure what's up with the memberlist page
Just getting blank pages I've took my time going through all the mods I’ve installed today too  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] few problems with the online/offline mod |  |
Posted: 05/18/2007 7:06 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 5:39 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
I've just gone through this mod and have done everything as instructed to, well apart from doing just this bit
| Code:
|
#
#----------[ OPEN ]-------------------------------------
#
language/lang_german/lang_main.php
#
#----------[ FIND ]-------------------------------------
#
//
// That's all Folks!
// -------------------------------------------------
#
#----------[ BEFORE, ADD ]------------------------------
#
// Another Online/Offline indicator
$lang['Online'] = 'Online';
$lang['Offline'] = 'Offline';
$lang['Hidden'] = 'Versteckt';
|
because I don't use lang_german
still no working memberlist page  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] few problems with the online/offline mod |  |
Posted: 05/18/2007 8:04 PM |
|
|
|
|
|
| Hawk |
| Posts |
193 |
| Word Cnt. |
9,285 |
| BDay |
Jun 8 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Apr 25, 2007
Local time: 12:39 AM
Location: Esperance, Australia
|

|
|
|
|
 |
Before this
| Code:
|
#
#----------[ OPEN ]-------------------------------------
#
language/lang_german/lang_main.php
|
does it say
| Code:
|
#
#----------[ OPEN ]-------------------------------------
#
language/lang_english/lang_main.php
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] few problems with the online/offline mod |  |
Posted: 05/18/2007 8:34 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 5:39 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] few problems with the online/offline mod |  |
Posted: 05/18/2007 8:50 PM |
|
|
|
|
|
| Hawk |
| Posts |
193 |
| Word Cnt. |
9,285 |
| BDay |
Jun 8 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Apr 25, 2007
Local time: 12:39 AM
Location: Esperance, Australia
|

|
|
|
|
 |
Damn oh well, nightrider will be on l8a  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] few problems with the online/offline mod |  |
Posted: 05/18/2007 8:54 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 5:39 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: few problems with the online/offline mod |  |
Posted: 05/18/2007 11:57 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:39 PM
Location: St Pete, FL
|

|
|
|
|
 |
Ok, the Another Online/Offline indicator MOD only caused the problem with the Memberlist display. The EasyMOD List display problem was caused by the View number of new posts since last visit MOD. This is what I had to do to fix both of these problems...
First I restored the EM Backups for the Another Online/Offline indicator MOD. Then I made the following adjustment to the MOD script:
OPEN
Another Online_Offline indicator.txt
FIND
| Code:
|
#
#----------[ FIND ]-------------------------------------
#
if ( !empty($row['user_viewemail']) || $userdata['user_level'] == ADMIN )
|
REPLACE WITH
| Code:
|
#
#----------[ FIND ]-------------------------------------
#
if ( empty($userdata['user_id']) || ($userdata['user_id'] == ANONYMOUS) )
|
Then I reinstalled it using EM and the Memberlist displayed as expected...
Then I did the following to correct the problem in the View number of new posts since last visit MOD so that the EasyMOD List will display again...
OPEN
MOD_newposts_number.php
FIND
| Code:
|
|
global $HTTP_COOKIE_VARS, $HTTP_GET_VARS, $SID;
|
AFTER, ADD
The reason why this was necessary is because the $total variable was being defined as an array rather than an integer or float. Then in the code, it tried to do a calculation on the variable, which would only be valid on an integer or a float, but not an array. Because it was running an invalid operation on the variable, it just stopped and didn't report any errors. But it didn't do anything else either. So by clearly defining the variable near the top of the file, it correctly defined as an integer and all operations that follow function as expected...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] few problems with the online/offline mod |  |
Posted: 05/19/2007 6:06 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 5:39 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
Yeah, this mod is a right mess. I had to correct INLINE to IN-LINE throughout the mod and also had to delete the German section as well as tidy up a few other things. This alone took me well over a 1 hour to do. But even after all that I still had problems with the memberlist.php which I just couldn't work out. And going by your explanation no bloody wonder *whoosh! The mod author needs shooting Nightrider
Thanks for fixing it and explaining to me why it was doing what it was doing  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: few problems with the online/offline mod |  |
Posted: 05/19/2007 4:59 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:39 PM
Location: St Pete, FL
|

|
|
|
|
 |
The Another Online/Offline indicator MOD was tested for phpBB 2.0.11 and older, so it's not surprising that the MOD script needed to be adjusted to work with current phpBB versions. That's what caused the problem with the Memberlist. If you had been running an old phpBB version, you would not have had this problem. The MOD script needs to be revalidated and the MOD author needs to update it so that it will work correctly with newer phpBB versions...
The problem with the View number of new posts since last visit MOD was just a logic flaw which could not have been seen without viewing the contents of the $total variable. I bet the MOD author is not aware of this small but potentially serious flaw...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|