Page 12 of 12 FirstFirst ... 2101112
Results 111 to 120 of 120
  1. #111
    Join Date
    Jul 2009
    Posts
    19
    Plugin Contributions
    0

    Default Re: Download Fetch [support thread]

    Quote Originally Posted by skipwater View Post
    Locate this file:

    /public_html/includes/modules/pages/fetch/header_php.php

    Line 23 find:
    Code:
    $intDownloadId = $_GET['id'];
    $strEmail = $_GET['email'];
    Now for testing change to:
    Code:
    $intDownloadId = $_GET['id'];
    $strEmail = $_GET['email'];
    
    echo 'File ID '. $intDownloadId . '<br />';
    echo 'Email '. $strEmail . '<br />';
    exit();
    When clicking on the emailed link this should show the file id and the email address. In the browser window.

    Let me know Skip
    Found that file, made the changes, got the same blank screen, it didn't come up with the file id or email address.

    One thing I should note, is that you said that it should be on line 23, that started on line 64 for me.

  2. #112
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    785
    Plugin Contributions
    7

    Default Re: Download Fetch [support thread]

    Here is what the start of the file should look like.
    Code:
    <?php
    /**
    * $Id header_php.php V1.1 01.23.2010
    * Written by SkipWater <[email protected]>
    *
    * /includes/modules/pages/fetch/header_php.php
    *
    * @package page
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: Define Generator v0.1 $
    *
    * NOTE: this file must contain only PHP code and nothing else. No blank lines 
    * before or after. Blank lines before will cause PHP to default to 
    * Content-type: text/html. Blank lines after will be sent as additional "garbage" 
    * data after the file, potentially causing problems. 
    *
    */
    include(DIR_WS_CLASSES."fetch_download.php");  // load the class file
    require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
    
    $intDownloadId = $_GET['id'];
    $strEmail = $_GET['email'];
    
    
    $sql = "SELECT fetch_email, file_id, UNIX_TIMESTAMP(date_created) as unix_date_created , count FROM ".TABLE_DOWNLOAD_FETCH." WHERE download_fetch_id = '$intDownloadId'";
    
    $result = $db->Execute($sql);
    Skip
    • 446F63746F722057686F •

  3. #113
    Join Date
    Jul 2009
    Posts
    19
    Plugin Contributions
    0

    Default Re: Download Fetch [support thread]

    Here's what mine looks like.

    Code:
    <?php
    /**
    * $Id header_php.php V1.3 01.23.2010
    * Written by SkipWater <[email protected]>
    *
    * /includes/modules/pages/fetch/header_php.php
    *
    * @package page
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: Define Generator v0.1 $
    *
    * NOTE: this file must contain only PHP code and nothing else. No blank lines 
    * before or after. Blank lines before will cause PHP to default to 
    * Content-type: text/html. Blank lines after will be sent as additional "garbage" 
    * data after the file, potentially causing problems. 
    *
    * Updated 10.05.10 by SkipWater
    * Added Set PHPs own memory limit:
    * Added Is Apache trying to compress the output:
    *
    */
    include(DIR_WS_CLASSES."fetch_download.php");  // load the class file
    require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
    
        // gmtime() This one doesn't involve messing around with timezones at all
        function gmtime($ts=null, $is_associative=false){
        	if(is_null($ts)) $ts=time();
        		$t=array_map('intval',explode(',',gmdate('s,i,H,d,m,Y,w,z,I',$ts)));
        		$t[4]--;
        		$t[5]-=1900;
        	if(!$is_associative) return $t;
        return array_combine(array('tm_sec','tm_min','tm_hour','tm_mday','tm_mon',
                                   'tm_year','tm_wday','tm_yday','tm_isdst'),
                           		   $t);
    	}
    
    	// Get the size
    	function return_bytes($val) {
        $val = trim($val);
        $last = strtolower($val[strlen($val)-1]);
        	switch($last) {
            	// The 'G' modifier is available since PHP 5.1.0
            	case 'g':
                	$val *= 1024;
            	case 'm':
                	$val *= 1024;
            	case 'k':
                	$val *= 1024;
        	}
        return $val;
    	}
    
    	// Set PHPs own memory limit:
    	if (intval($size + 1) > return_bytes(ini_get('memory_limit')) && intval($size * 1.5) <= 1073741824) { //Not higher than 1GB
      		ini_set('memory_limit', intval($size * 1.5));
    	}
    
    	// Is Apache trying to compress the output:
    	@apache_setenv('no-gzip', 1);
    	@ini_set('zlib.output_compression', 0);
    
    $intDownloadId = $_GET['id'];
    $strEmail = $_GET['email'];
    
    echo 'File ID '. $intDownloadId . '<br />';
    echo 'Email '. $strEmail . '<br />';
    exit();
    
    
    $sql = "SELECT fetch_email, file_id, UNIX_TIMESTAMP(date_created) as unix_date_created , count FROM ".TABLE_DOWNLOAD_FETCH." WHERE download_fetch_id = '$intDownloadId'";

  4. #114
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    785
    Plugin Contributions
    7

    Default Re: Download Fetch [support thread]

    Replace your file with the one attached here. It is the same but the code you have shown above has been removed.

    Skip
    Attached Files Attached Files
    • 446F63746F722057686F •

  5. #115
    Join Date
    Jul 2009
    Posts
    19
    Plugin Contributions
    0

    Default Re: Download Fetch [support thread]

    Quote Originally Posted by skipwater View Post
    Replace your file with the one attached here. It is the same but the code you have shown above has been removed.

    Skip
    I put in the attached file and it worked great. Thank you very much for all of your help.

    David

  6. #116
    Join Date
    Jul 2009
    Posts
    19
    Plugin Contributions
    0

    Default Re: Download Fetch [support thread]

    OK....so it's working about 95%, I just found one more hitch.

    I can download the file using both Firefox and Chrome, but it won't download through Internet Explorer.

    The Error Messages come up saying:

    "Internet Explorer cannot dowload index.php from traegertimer.com.

    Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again laster."

    I get the same message on my computer, as well as on a colleagues computer. We are both running IE8.

  7. #117
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    785
    Plugin Contributions
    7

    Default Re: Download Fetch [support thread]

    It seems that the server you are using is not liking some of the newer code in the files.

    Replace includes/classes/fetch_download.php file with the attached one.

    This attached file has no browser checking so we will see if that fixes things.

    Skip
    Attached Files Attached Files
    • 446F63746F722057686F •

  8. #118
    Join Date
    Jul 2009
    Posts
    19
    Plugin Contributions
    0

    Default Re: Download Fetch [support thread]

    Quote Originally Posted by skipwater View Post
    It seems that the server you are using is not liking some of the newer code in the files.

    Replace includes/classes/fetch_download.php file with the attached one.

    This attached file has no browser checking so we will see if that fixes things.

    Skip
    That appears to have worked, thank you.

  9. #119
    Join Date
    Jul 2008
    Posts
    360
    Plugin Contributions
    0

    Default Re: Download Fetch [support thread]

    I just installed the module on ZC 1.5.0 but I can't get the admin menu to item(no download Fetch under Tools) to show up, it's there but it's just not working ...

  10. #120
    Join Date
    Jul 2008
    Posts
    360
    Plugin Contributions
    0

    Default Re: Download Fetch [support thread]

    Quote Originally Posted by icecold View Post
    I just installed the module on ZC 1.5.0 but I can't get the admin menu to item(no download Fetch under Tools) to show up, it's there but it's just not working ...
    Never mind I fixed myself, the structure and names of the files in Admin has changed.

 

 
Page 12 of 12 FirstFirst ... 2101112

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 20
    Last Post: 23 Apr 2025, 08:49 AM
  2. Download File Manager Support Thread
    By balihr in forum All Other Contributions/Addons
    Replies: 24
    Last Post: 17 Aug 2017, 10:32 PM
  3. goMobile Support Thread
    By steveyork136 in forum Addon Templates
    Replies: 29
    Last Post: 26 Aug 2015, 11:56 AM
  4. SnapShot [support thread]
    By skipwater in forum All Other Contributions/Addons
    Replies: 32
    Last Post: 26 Oct 2012, 08:38 PM
  5. Download fetch changes the file name
    By davidwenkuisz in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 3 Mar 2010, 01:20 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR