Resource icon

WDB Popular Content 1.0.5

No permission to download
This addon shows the deleted threads too.

I'm sure it'll be fixed, but that's a big bug.
Crawling_bug.gif
 
One thing that's occurred to me though is that if a post/thread is deleted since the cache was last updated then it will still show, I may need to rethink a few things to get round that.
 
Hi, thanks for you add-on. It's great addon for xenforo )

Small bug in forum which use russian language (unicode bug?)
 

Attachments

  • popular-content.webp
    popular-content.webp
    67.4 KB · Views: 12
Hi, thanks for you add-on. It's great addon for xenforo )

Small bug in forum which use russian language (unicode bug?)

I guess that will be because I have used preg_replace() and substr() which don't recognise multi-byte characters, I'll look into fixing that for the next update.
 
I guess that will be because I have used preg_replace() and substr() which don't recognise multi-byte characters.

Temporaly fix. line 83,84. preg_replace + /u, substr > mb_substr.

But not sure that this correct solution...
Code:
$message = preg_replace('#(\S{25})\S+/u#is','$1...', $message); //shorten long strings
$message = mb_substr($message, 0,350); // truncate message
 
Thanks for the update (fix) it was showing posts in moderation and it seems the update fixed that. Thanks again. :)
 
This add-on works great and I will like to give it 5 star.
Is it possible to change the default result from 3 months to 3 weeks?
Thanks a lot for sharing this add-on with rest of us
 
This add-on works great and I will like to give it 5 star.
Is it possible to change the default result from 3 months to 3 weeks?
Thanks a lot for sharing this add-on with rest of us


Yes, if you edit WdbPopularContent/ControllerPublic/Index.php
and change line 39 from

if (!$timeFrame) $timeFrame=2;
to
if (!$timeFrame) $timeFrame=1;

that should do it.
 
It looks like you've added the option to change the timeframe which show up for the results but the tabs remain as the default. Could you point me in the right direction for adjusting these to one week, one month and 6 months? Thanks.
 
It looks like you've added the option to change the timeframe which show up for the results but the tabs remain as the default. Could you point me in the right direction for adjusting these to one week, one month and 6 months? Thanks.
Log into the admin panel, go to appearance > phrases, and change the three phrases wdb_popular_time_frame_x
 
Top Bottom