Hide Topics From View

Started by dougiefresh, December 29, 2016, 12:22:40 PM

Previous topic - Next topic

DanCarlos

Quote from: Toxicity Personified on September 12, 2020, 12:32:22 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

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

Arantor

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.

DanCarlos

Quote from: Toxicity Personified 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.

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.

DanCarlos


Advertisement: