Jump to content

Yarnell

Member
  • Posts

    27
  • Joined

  • Last visited

Posts posted by Yarnell

  1. Sup everyone,

    I noticed that the front-end login form has a remember me feature that only remembers the username. Anyone know how to go about remembering the password as well? Also, It would be nice to have the remember me on the backend administration panel. Is there a quick way to do that?

    Thanks.

  2. I've tried changing the tiplocation but that didn't work either. I found a solution but it does not work with the joyride in cube cart. Maybe some code needs to be added to the javascript file im thinking. the solution is https://codepen.io/adam-huffman/pen/eKgIE. I'm going to requestit be added to cube cart.

  3. 3 hours ago, Hanson said:

    Unplug your mouse, then plug it back in after a few minutes.

    Plug your mouse into a different USB port.

    Make sure your mouse cable isn't damaged.

    If you're using a wireless mouse, check or change your batteries.

    Make sure there's no dirt blocking your scroll wheel.

    Hey Hanson, I don't think it has anything to do with the mouse, it works fine as far as I know. For some reason, anytime there is a # in the address bar (such as admin.php#dashboard) and I refresh the page. it jerks and tries to scroll up.

  4. Hey all,

    I've managed to figure out how to reposition the nub in the welcome tour using the following:

    <li data-button="Next" data-id="joy-side" data-options="tipLocation:top;nubPosition:left;">

    Does anyone know how to get the bottom left? I've tried the following:

    nubPosition:left, bottom;
    nubPosition:left-bottom;
    nubPosition:left bottom;
    nubPosition:bottom, left;
    nubPosition:bottom-left;
    nubPosition:bottom left;

  5. Yea, I didn't even think to use the drop zone, that would be even better... I was able to figure out how to add the regular upload form though.

    For anyone interested.

    I placed this code above the Custom File Path in /admin/skins/default/templates/products.index.php

    <fieldset>
    <legend>{$LANG.common.upload_files}</legend>
    <p>Select image files to start uploading. There is a max filesize of {$upload_max_filesize}.</p>
    <input name="file" id="uploader" type="file" class="multiple">
    <input type="submit" name="submit_cont" value="{$LANG.common.upload}">
    </fieldset>

    And this code right below global $lang; in /admin/sources/products.index.inc.php

    $select_button = false;
    $mode = FileManager::FM_FILETYPE_DL;
    $path = "public";
    $fm  = new FileManager($mode, $path);
    if (!empty($_FILES) && Admin::getInstance()->permissions('filemanager', CC_PERM_EDIT)) {
    	if ($fm->upload()) {
    		if ($fm->buildDatabase()) {
    		$GLOBALS['main']->successMessage($lang['filemanager']['notify_list_update']);
    		} else {
    		$GLOBALS['main']->errorMessage($lang['filemanager']['error_list_update']);
    		}
    		if (count($_FILES)>1) {
    		$GLOBALS['main']->successMessage($lang['filemanager']['notify_files_upload']);
    		} elseif ($_FILES['file0']['size']>0) {
    		$GLOBALS['main']->successMessage($lang['filemanager']['notify_file_upload']);
    		}
    	} else {
    	$GLOBALS['main']->errorMessage($lang['filemanager']['error_file_upload']);
    	}
    }

    You will need to change the $path to where you store your files.

  6. hmmm. the only changes i made to php.ini was

    session.gc_maxlifetime=10800
    max_input_time=10800
    max_execution_time=10800
    upload_max_filesize=110M
    post_max_size=120M
    max_input_vars=8000

    Think I may have to reinstall.

    That makes sense.

  7. I ended up fixing the error with the following code.

    if (!empty($_GET)) {
    $get = $_GET;
    }

    From my understanding, the script only needs to continue if $_GET holds a value, if it's empty we can ignore it all together.

  8. Nice, found the -81, awesome, thank you sir.

    I'm using the latest version 6.4.2. Ahhh, didn't notice that, that makes a difference. the line it is referring to is

        if (is_array($get) && count($get) > 0) {
            $params = array_merge($params, $get);
        }

    Specificcly the $params = array_merge($params, $get); part

    I also get this notice at the top of my page

     Notice: Undefined variable: _GET in /var/www/clients/client1/web3/web/includes/functions.inc.php on line 208

     

  9. We'll i'll be :-)

    You just fixed my logout problem. I was get a csrf error when I tried to logout. Genius ** Salute **

    Thanks B

     

    another quick question while I got you here.

    When ever I submit a form in the backend the page will load, and then it tries to start auto scrolling to the top of the page.

    Any idea what would cause it to try and auto scroll to the top of the page?

  10. Hey folks,
    I am getting the following error, any ideas why this would happen?

    Hack: 1615340154.58800 --- Duration: 419 µs [ERROR - NOT CACHED]
    INSERT INTO `cc6_CubeCart_system_error_log` (`message`,`time`) VALUES ('[<strong>Notice</strong>] /var/www/clients/client1/web3/web/includes/functions.inc.php:221 - Undefined variable: get','1615340154');

     

×
×
  • Create New...