News:

Per request, I added a Forum Status page while revamping the AARoads back end.
- Alex

Main Menu

NEW features

Started by rickmastfan67, March 26, 2024, 12:44:11 PM

Previous topic - Next topic

vdeane

I've also noticed that the alerts menu doesn't work - I have to middle-click it to open the main alerts page.
Please note: All comments here represent my own personal opinion and do not reflect the official position of NYSDOT or its affiliates.


kphoger

Quote from: hotdogPi on May 07, 2025, 11:33:15 AM1. <hr> and <br> with square brackets used to add a horizontal line. Now, they add extra space, but no line is visible.

Testing

this

out

now

He Is Already Here! Let's Go, Flamingo!
Dost thou understand the graveness of the circumstances?
Deut 23:13
Male pronouns, please.

Quote from: PKDIf you can control the meaning of words, you can control the people who must use them.

hotdogPi

Attempting to search, unless it succeeds, results in being locked out (pages refuse to load) for about a minute.
Clinched

Traveled, plus
US 13, 50
MA 22,35,40,53,79,107,109,126,138,141,151,159,203
NH 27, 78, 111A(E); CA 90; NY 9A, 366; GA 42, 140; FL A1A, 7; CT 32, 193, 320; VT 2A, 5A; PA 3, 51, 60, WA 202; QC 162, 165, 263; 🇬🇧A100, A3211, A3213, A3215, A4222; 🇫🇷95 D316

Lowest untraveled: 36

hotdogPi

Looking at the code:

https://github.com/SimpleMachines/SMF/blob/release-3.0/Sources/Actions/Search2.php lines 263-271; sapi.php (https://github.com/SimpleMachines/SMF/blob/release-3.0/Sources/Sapi.php) determines the maximum memory allowed
Code (php) Select
/**
* Aborts search if the load average is too high right now.
*/
protected function checkLoadAverage(): void
{
if (Sapi::isOverloaded(Config::$modSettings['loadavg_search'] ?? null)) {
ErrorHandler::fatalLang('loadavg_search_disabled', false);
}
}

same page, lines 510-518
Code (php) Select
// How many results will the user be able to see?
$this->num_results = !empty($_SESSION['search_cache']['num_results']) ? $_SESSION['search_cache']['num_results'] : SearchResult::getNumResults();

// If there are no results that means the things in the cache got deleted, so pretend we have no topics anymore.
if ($this->num_results == 0) {
SearchApi::$loadedApi->results = [];

return;
}

https://github.com/SimpleMachines/SMF/blob/release-3.0/Sources/Search/SearchApi.php lines 1063-1070
Code (php) Select
// Searching a specific topic?
if (!empty($_REQUEST['topic']) || (!empty($_REQUEST['search_selection']) && $_REQUEST['search_selection'] == 'topic')) {
$this->params['topic'] = empty($_REQUEST['search_selection']) ? (int) $_REQUEST['topic'] : (isset($_REQUEST['sd_topic']) ? (int) $_REQUEST['sd_topic'] : '');

$this->params['show_complete'] = true;
} elseif (!empty($this->params['topic'])) {
$this->params['topic'] = (int) $this->params['topic'];
}

The first code block could be used for fixing search in general, while the second and third could be used for fixing thread search. If thread search is fixed but not overall, it will work, as searching right now if the parameters are highly specific. (Trying a thread search right now completes with 0 results rather than refusing to load like a generic search does.)
Clinched

Traveled, plus
US 13, 50
MA 22,35,40,53,79,107,109,126,138,141,151,159,203
NH 27, 78, 111A(E); CA 90; NY 9A, 366; GA 42, 140; FL A1A, 7; CT 32, 193, 320; VT 2A, 5A; PA 3, 51, 60, WA 202; QC 162, 165, 263; 🇬🇧A100, A3211, A3213, A3215, A4222; 🇫🇷95 D316

Lowest untraveled: 36

hotdogPi

Thread search is back!
Clinched

Traveled, plus
US 13, 50
MA 22,35,40,53,79,107,109,126,138,141,151,159,203
NH 27, 78, 111A(E); CA 90; NY 9A, 366; GA 42, 140; FL A1A, 7; CT 32, 193, 320; VT 2A, 5A; PA 3, 51, 60, WA 202; QC 162, 165, 263; 🇬🇧A100, A3211, A3213, A3215, A4222; 🇫🇷95 D316

Lowest untraveled: 36

Roadgeekteen

Quote from: hotdogPi on September 30, 2025, 10:46:10 PMThread search is back!
Let's go! No more Google search and hopefully no more me posting duplicate topics (I'll try my best...)
My username has been outdated since August 2023 but I'm too lazy to change it