Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[Solved] few problems with the online/offline mod
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: 1, 2  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
[Solved] few problems with the online/offline mod
PostPosted: 05/18/2007 5:42 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 10:34 AM
Location: Birmingham, UK.
greatbrE.gif
The easymods_list and memberlist pages aint working since I’ve installed this mod. What’s up now  dontknow

this is the mod i installed http://www.phpbbhacks.com/download/4427
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: [Solved] few problems with the online/offline mod
PostPosted: 05/18/2007 5:58 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 10:34 AM
Location: Birmingham, UK.
greatbrE.gif
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  Brick wall
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: [Solved] few problems with the online/offline mod
PostPosted: 05/18/2007 7:06 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 10:34 AM
Location: Birmingham, UK.
greatbrE.gif
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  munky2

still no working memberlist page  violent1
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: [Solved] few problems with the online/offline mod
PostPosted: 05/18/2007 8:04 PM Reply with quote
Hawk
danrider
Hawk
Posts 193
Word Cnt. 9,285
BDay Jun 8
Sign Gemini
Sex Sex:Male
Joined: Apr 25, 2007
Local time: 5:34 PM
Location: Esperance, Australia
australC_1xa.gif
Before this  
Code:
#
#----------[ OPEN ]-------------------------------------
#

language/lang_german/lang_main.php


does it say

Code:
#
#----------[ OPEN ]-------------------------------------
#

language/lang_english/lang_main.php


munky2
Back to Top
View user's profile Find all posts by danrider Send private message [ Hidden ] Visit poster's website MSN Messenger Phoogle Map
Re: [Solved] few problems with the online/offline mod
PostPosted: 05/18/2007 8:34 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 10:34 AM
Location: Birmingham, UK.
greatbrE.gif
Yep
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: [Solved] few problems with the online/offline mod
PostPosted: 05/18/2007 8:50 PM Reply with quote
Hawk
danrider
Hawk
Posts 193
Word Cnt. 9,285
BDay Jun 8
Sign Gemini
Sex Sex:Male
Joined: Apr 25, 2007
Local time: 5:34 PM
Location: Esperance, Australia
australC_1xa.gif
Damn oh well, nightrider will be on l8a  dontknow
Back to Top
View user's profile Find all posts by danrider Send private message [ Hidden ] Visit poster's website MSN Messenger Phoogle Map
Re: [Solved] few problems with the online/offline mod
PostPosted: 05/18/2007 8:54 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 10:34 AM
Location: Birmingham, UK.
greatbrE.gif
lol Crying or Very sad  crybaby  violent1
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: few problems with the online/offline mod
PostPosted: 05/18/2007 11:57 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 5:34 AM
Location: St Pete, FL
peace.gif
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
Code:
$total = 0;

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...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] few problems with the online/offline mod
PostPosted: 05/19/2007 6:06 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 10:34 AM
Location: Birmingham, UK.
greatbrE.gif
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!  Shocked  The mod author needs shooting Nightrider Wink

Thanks for fixing it and explaining to me why it was doing what it was doing  Applause
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: few problems with the online/offline mod
PostPosted: 05/19/2007 4:59 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 5:34 AM
Location: St Pete, FL
peace.gif
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...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours
Goto page: 1, 2  Next
Page 1 of 2


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0877s (PHP: 64% - SQL: 36%) - SQL queries: 57 - GZIP disabled - Debug on