dragonexpert / recentthreads

Adds a section to your index page for recent threads.
Other
8 stars 2 forks source link

Doubled items #87

Open Eldenroot opened 6 months ago

Eldenroot commented 6 months ago

@dragonexpert - please check this - if you click on display "more recent thread" - it is doubled.

The threads which are displayed on the index page are added twice into the list

/misc.php?action=recent_threads

Please, let me know what to do...

image

dragonexpert commented 5 months ago

So I looked into what is happening and first global_end will call recentthread_list_threads. That is called on every page and is used for the feature so it can be used anywhere. There is a separate hook that runs on misc.php and within that function it calls recentthread_list_threads with some parameters. I'm not 100% sure on how to fix, but the file itself is inc/plugins/hooks.php. The best thing I can think of is not running a hook specific for misc.php at all and instead using the constant THIS_SCRIPT to check if i is misc.php.

Eldenroot commented 5 months ago

image