WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.12.x) »
  • General Help & Support »
  • Built-in Search: Template definition commented out??
  • Print
Pages: [1]   Go Down

Author Topic: Built-in Search: Template definition commented out??  (Read 4045 times)

Offline CodeALot

  • Posts: 579
  • Gender: Male
Built-in Search: Template definition commented out??
« on: February 10, 2020, 01:39:23 PM »
The website I was working on seemed to ignore what template I set for the SEARCH-function.

I just discovered that this is commented out in /search/index.php:
Code: [Select]
 
    //  Find out what the search template is
/*
        $query_template = $database->query("SELECT `value` FROM `".TABLE_PREFIX."search` WHERE `name` = 'template'");
        $fetch_template = $query_template->fetchRow(MYSQLI_ASSOC);
        $template = ($fetch_template['value'] ?: DEFAULT_TEMPLATE);
        if ($template != '') {
//            define('TEMPLATE', $template);
        }
        unset($template);
*/

This of course causes WB to complete ignore what you define in the settings for a Search-template. Why is that commented out?
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.12.x) »
  • General Help & Support »
  • Built-in Search: Template definition commented out??
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2