Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 10:14 pm EDT

Geeklog Forums

layout corrupted when you sea help for Advanced Search on mobile


Status: offline

OMAL

Forum User
Regular Poster
Registered: 12/06/17
Posts: 107

Sea attached file.

I want to hide/disable the help for geeklog's search on mobile devices. Where is the code for generating the help link marked by question mark.
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1468
Location:Canada
That does make a mess in mobile...

A quick way would be to modify the search.class.php file found in system/classes

Line 241 or so change:

Text Formatted Code
$retval .= COM_startBlock($LANG09[1], 'advancedsearch.html');



Text Formatted Code
$retval .= COM_startBlock($LANG09[1]);
 



The other option is to modify COM_startBlock found in lib-common.php and remove:

Text Formatted Code
        if (($_CONF['supported_version_theme'] !== '1.8.1') && !stristr($helpFile, 'http://') && !stristr($helpFile, 'https://')) {
            $helpPopup = "gl-help-popup";
            // Only need to set it once
            if (!defined('GL-HELP-SET')) {
                define('GL-HELP-SET', true);

                // Add in jQuery dialog for help file
                $_SCRIPTS->setJavaScriptLibrary('jquery-ui'); // Requires dialog, draggable, droppable, resizable, and button

                // Add Language variables
                $_SCRIPTS->setLang(array('close' => $LANG32[60]));

                // Add JavaScript
                $_SCRIPTS->setJavaScriptFile('dialog_help', '/javascript/dialog_help.js');
            }
        }


since this generates the JQUERY popup. With this removed the help file will load in a new page.

I have created a bug report to fix this in the next version of Geeklog: https://github.com/Geeklog-Core/geeklog/issues/899
One of the Geeklog Core Developers.
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1468
Location:Canada
I just fixed the issue for the next version of Geeklog (when it gets released). It makes the window responsive and sizes it to the screen if smaller.
One of the Geeklog Core Developers.
 Quote

Status: offline

OMAL

Forum User
Regular Poster
Registered: 12/06/17
Posts: 107
Thanks. The quick way works.
 Quote

All times are EDT. The time is now 10:14 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content