MyBB.de Forum
$unsearchforums in 1.4? - Druckversion

+- MyBB.de Forum (https://www.mybb.de/forum)
+-- Forum: Archiv (https://www.mybb.de/forum/forum-57.html)
+--- Forum: MyBB 1.4.x (https://www.mybb.de/forum/forum-51.html)
+---- Forum: Allgemeiner Support (https://www.mybb.de/forum/forum-52.html)
+---- Thema: $unsearchforums in 1.4? (/thread-10239.html)



$unsearchforums in 1.4? - master_of-games - 06.08.2008

Und wieder ichBig Grin

Ich wollte grade meine search.php so anpassen, dass bestimme Foren von der Suche ausgeschlossen sind...
In 1.2 musste man dazu ja jedes
PHP-Code:
$unsearchforums get_unsearchable_forums(); 
in
PHP-Code:
$unsearchforums get_unsearchable_forums('20','18','19','76'); 
umändern...

Anscheinend funktioniert dies bei 1.4 nicht mehr, oder mache ich (mal wieder) irgendwas falsch?


RE: $unsearchforums in 1.4? - Michael - 07.08.2008

Ich bezweifle, dass das jemals so funktioniert hat. Füge unter der Zeile
PHP-Code:
$unsearchforums get_unsearchable_forums(); 
folgendes ein:
PHP-Code:
if(empty($unsearchforums)) {
    
$unsearchforums "20,18,19,76";
} else {
    
$unsearchforums .= ",20,18,19,76";