The AnimeFanlistings Network Message Board

Fanlisting Management => Fanlistings Chit-Chat => Topic started by: Jessy on March 04, 2010, 03:38:10 AM

Title: Enth 3 Neglected Listings Notification
Post by: Jessy on March 04, 2010, 03:38:10 AM
I have a question about Enth 3. I just received a notice from TFL that some of my fanlistings haven't been updated for 2 months (and I suspect that some of my TAFL fls). When I look at my enth administration I see that there isn't any fanlisting standing in the Neglected Listings Notification list.
Does anybody else have that problem? Or should I redownload the latest version (I do think that I have that version) and install it again?

Never mind, I toggled a bit with the php and now I get the list.

For those who also have this problem, I changed the 8 weeks to 6 on line 144 and suddenly the list grows.

I've looked a little bit further and found that the problem was in the calculation of the weeks. I found out that not all the weeks were showing.

After changing
Code: [Select]
if( $stats['lastupdated'] && date( 'Y' ) != date( 'Y', strtotime( $stats['lastupdated'] ) ) ) {
 $weeks = ( 52 - date( 'W', strtotime( $stats['lastupdated'] ) ) ) + date( 'W' );
   } else if( $stats['lastupdated'] ) {
 $weeks = date( 'W' ) - date( 'W', strtotime( $stats['lastupdated'] ) );
   }
to
Code: [Select]
$difference = strtotime(date('Y-m-d'), 0) - strtotime($stats['lastupdated'], 0 );
$weeks = floor($difference / 604800);

I got the complete list of fanlistings that wre being neglected.

Man, that took a while to found out. It's been to long since I've coded in php.
Title: Enth 3 Neglected Listings Notification
Post by: Mitchii on March 05, 2010, 10:10:05 AM
I decided to change the coding in dashboard.php to the one you mentioned and after I log in my admin, I saw the fls that haven't updated in 2 months.  I'm not aware about this thing with enth.

This is a great help, I'll end up on troubles as well.. Thanks for the heads up Jessy~ :wub:
Title: Enth 3 Neglected Listings Notification
Post by: Saya on March 16, 2010, 04:50:41 AM
thank you!
I got a similar result of stuff that IS in trubles
Title: Enth 3 Neglected Listings Notification
Post by: arashi on March 16, 2010, 07:48:48 AM
Ahh! I had the same trouble! Thanks for this :frustrated: I'll have to try it!
Title: Enth 3 Neglected Listings Notification
Post by: Katze on March 16, 2010, 06:56:31 PM
I had the same problem :frustrated:  Shall try, thanks~ Possibly it got thrown off by February being a short month? X3
Title: Enth 3 Neglected Listings Notification
Post by: Nekoi Echizen on March 17, 2010, 05:46:01 AM
This really helped a lot! :frustrated: Thank you so much! :frustrated:
Title: Enth 3 Neglected Listings Notification
Post by: Estefania on March 17, 2010, 06:20:52 AM
Wow, I didn't even know about this issue! I had a couple of FLs which hadn't been updated for more than 2 months and I had no idea about it, so thanks a lot for bringing this up! =)
Title: Enth 3 Neglected Listings Notification
Post by: Angiie on September 04, 2011, 11:50:28 AM
This was driving me crazy! Thank you so much for the fix~  :flower: