[phpwslistings-dev] [ phpwslistings-Feature Requests-1153620 ] Search Block on Home
Brought to you by:
rizzo,
wendall911
|
From: SourceForge.net <no...@so...> - 2005-02-28 16:47:05
|
Feature Requests item #1153620, was opened at 2005-03-01 00:46 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=538277&aid=1153620&group_id=73598 Category: Search Improvements Group: v0.3.0 Status: Open Priority: 5 Submitted By: Kinchan de Guzman Cepillo (xorprime) Assigned to: Nobody/Anonymous (nobody) Summary: Search Block on Home Initial Comment: I have added the following fields in mod_listings_settings TABLE: `search_title` varchar(80) NOT NULL default 'Search Listings', `show_menu` smallint(6) NOT NULL default '1', `show_search` smallint(6) NOT NULL default '1', Can somebody guide me in creating a function in ListingManager.php to display the SEARCH BLOCK on Home? I already made the ff changes, pls bear with me: index.php line 32 // xorcode Listing_runtime::showSearchBlock(); inc/runtime.php line 10 // xorcode Listing_runtime::showSearchBlock(); class/ListingManager.php line 19 // xorcode var $_showSearch; line 34 //xorcode var $_searchTitle; line 214 //xorcode $tags["SHOW_SEARCH"] = PHPWS_Form::formCheckBox("LISTING_showSearch", 1, $this->_showSearch, NULL, $_SESSION["translate"]->it("Show Search Block")); line 237 //xorcode $tags["SEARCH_TITLE_LABEL"] = $_SESSION["translate"]->it("Search Block Title"); $tags["SEARCH_TITLE"] = PHPWS_Form::formTextField("LISTING_searchTitle", $this->_searchTitle, 20, 80); line 264 //xorcode $this->_showSearch = $_POST["LISTING_showSearch"]; line 281 //xorcode $this->_searchTitle = $_POST["LISTING_searchTitle"]; line 288 //xorcode $data["show_search"] = $this->_showSearch; line 302 //xorcode $data["search_title"] = $this->_searchTitle; line 864 //xorcode $this->_showSearch = $result[0]["show_search"]; line 878 //xorcode $this->_searchTitle = $result[0]["search_title"]; line 1327 // xorcode function showSearchBlock() { if(!$this->_showSearch) return; // $GLOBALS["CNT_phpwslistings"]["title"] = $this->_searchTitle; // $GLOBALS["CNT_phpwslistings"]["content"] = "Search Box"; }// END FUNC showSearchBlock Can someone guide me on creating the function showSearchBlock() ? Thank you ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=538277&aid=1153620&group_id=73598 |