Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 07:24 am EST

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: 1470
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: 1470
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 EST. The time is now 07:24 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