Advertisement:

Author Topic: Hide Topics From View  (Read 3728 times)

Offline DanCarlos

  • Semi-Newbie
  • *
  • Posts: 24
Re: Hide Topics From View
« Reply #20 on: September 12, 2020, 03:57:39 PM »
Change Profile-HideTopics.php lines 255-256:

Code: (find) [Select]
if (empty($board))
continue;

Code: (replace) [Select]
if (empty($board))
return;

This should never have worked and only worked in PHP before PHP 7 by accident.

It worked but another problem exist, after i hide the topic i wasn't able to UNHIDE it,

1st Error :

After i open GENERAL DISCUSSION BOARD and click SHOW ALL TOPICS this problem will show up.



Then i go to PROFILE -> PROFILE INFO -> HIDDEN TOPICS this one will show up.



And when i try to HIDE another topic, this error will show up.



And this is what i see in the error.log

Code: [Select]
PHP Fatal error:  'continue' not in the 'loop' or 'switch' context in /home4/MYNAME/MYDOMAIN/Sources/Profile-HideTopics.php on line 256

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,139
Re: Hide Topics From View
« Reply #21 on: September 12, 2020, 04:27:25 PM »
So the code I explicitly told you to change was line 256... if you replaced it as I said, you could not possibly have *that* error.
No good deed goes unpunished
All helpful urges should be circumvented

Offline DanCarlos

  • Semi-Newbie
  • *
  • Posts: 24
Re: Hide Topics From View
« Reply #22 on: September 13, 2020, 02:05:52 AM »
So the code I explicitly told you to change was line 256... if you replaced it as I said, you could not possibly have *that* error.

Yes, i did exactly what you said and those errors appeared.

What i did is i uninstalled the MOD, edited the source code and change the CONTINUE to RETURN, and re-installed it again.

Offline DanCarlos

  • Semi-Newbie
  • *
  • Posts: 24
Re: Hide Topics From View
« Reply #23 on: September 23, 2020, 06:35:38 AM »
Any updates?