Welcome to Geeklog Friday, November 16 2018 @ 01:00 am EST

Geeklog Forums

layout corrupted when you sea help for Advanced Search on mobile


Status: offline

OMAL

Forum User
Chatty
Registered: 06/12/17
Posts: 63

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.

Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/05
Posts: 1316
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:

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



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



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

PHP 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.

Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/05
Posts: 1316
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.

Status: offline

OMAL

Forum User
Chatty
Registered: 06/12/17
Posts: 63
Thanks. The quick way works.

All times are EST. The time is now 01:00 am.

  • 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