211
suico
Re: Mydownloads module modified
  • 2004/9/27 16:31

  • suico

  • Friend of XOOPS

  • Posts: 374

  • Since: 2003/7/24


Maybe it could open a new page saying that the download will start automatically and having a link to the file?

Someone?



212
suico
Re: Mydownloads module modified
  • 2004/9/26 21:53

  • suico

  • Friend of XOOPS

  • Posts: 374

  • Since: 2003/7/24


Maybe if I can show you the code you can help me with it?

include "../../mainfile.php";
include_once(
"./include/functions.php");
$myts =& MyTextSanitizer::getInstance(); // MyTextSanitizer object
$lid intval($HTTP_GET_VARS['lid']);
$cid intval($HTTP_GET_VARS['cid']);


if ( 
$xoopsModuleConfig['check_host'] ) {
    
$goodhost      0;
    
$referer       parse_url(xoops_getenv('HTTP_REFERER'));
    
$referer_host  $referer['host'];
    foreach ( 
$xoopsModuleConfig['referers'] as $ref ) {
        if ( !empty(
$ref) && preg_match("/".$ref."/i"$referer_host) ) {
            
$goodhost "1";
            break;
        }
    }
    if (!
$goodhost) {
        
redirect_header(XOOPS_URL "/modules/mydownloads/singlefile.php?cid=$cid&lid=$lid"20_MD_NOPERMISETOLINK);
        exit();
    }
}

$sql sprintf("UPDATE %s SET hits = hits+1 WHERE lid = %u AND status > 0"$xoopsDB->prefix("mydownloads_downloads"), $lid);
$xoopsDB->queryF($sql);
$result $xoopsDB->query("SELECT url,groupid, usersid FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE lid=$lid AND status>0");
list(
$url,$groupid,$usersid) = $xoopsDB->fetchRow($result);
checkMyDownloadsAccess($groupid,$usersidXOOPS_URL2_NOPERM);

    
$separator="-_MYDWONLOADSPRO_-";
    
$download explode($separator,$url);

if (!
preg_match("/^ed2k*:///i"$url) && $download[1]=='') {
    
Header("Location: $url");
}
    
    
header("Content-Disposition: attachment; filename=$download[1]");
    
readfile($myts->oopsHtmlSpecialChars($url));


exit();


Please, it really is important for me , if you know how to help me, do it.



213
suico
Re: Mydownloads module modified
  • 2004/9/14 17:04

  • suico

  • Friend of XOOPS

  • Posts: 374

  • Since: 2003/7/24


Hi samuels. I would like to congratulate you for this great module.

I want to ask you a question about a problem I have have with it:

It happens only when I have a big file (3MB 4MB ...).

I click the download
It opens a white page
Only 3 4 minutes after the download dialog box opens.

If I simply had a direct link to the download it would open right away.
Can I do something for clicking on the download and not opening a white page but directly the download dialog box , or just make this time shorter?

Sorry for the bad english.



214
suico
Double Post on my fóruns
  • 2004/7/12 15:35

  • suico

  • Friend of XOOPS

  • Posts: 374

  • Since: 2003/7/24


Some of the users of my fórun are having double posts on each post of them and they don´t click twice on the button it just happens . Can anyone give me a light on this?



215
suico
Re: Error after upgrade for 2.0.7
  • 2004/6/24 21:48

  • suico

  • Friend of XOOPS

  • Posts: 374

  • Since: 2003/7/24


PLEase someone helkps me I habve this text showing before the site after upgrading to 2.0.7 :

* @return resource query result or FALSE if unsuccessful */ function &query($sql, $limit=0, $start=0) { $sql = ltrim($sql); if (strtolower(substr($sql, 0, 6)) == 'select') { //if (preg_match("/^SELECT.*/i", $sql)) { return $this->queryF($sql, $limit, $start); } $this->logger->addQuery($sql, 'Action not allowed', 0); return false; } } ?>

Ok I found my problem was on
mysqldatabase.php
I uploaded it again and it is over now.
But now I have another problem when I list the members in the admin menu the page keeps loading and loading again. Can anyone give me a tip on this?



216
suico
File Uploading in submit Download
  • 2004/6/10 21:23

  • suico

  • Friend of XOOPS

  • Posts: 374

  • Since: 2003/7/24


Yes I need it too, for files and for shots. Can anyone make a hack for those?




TopTop
« 1 ... 19 20 21 (22)



Login

Who's Online

142 user(s) are online (88 user(s) are browsing Support Forums)


Members: 0


Guests: 142


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits