xoops forums

Forum Index


Board index » All Posts (suico)




suico

Friend of XOOPS
Posted on: 2004/9/27 16:31
suico
suico (Show more)
Friend of XOOPS
Posts: 374
Since: 2003/7/24
#211

Re: Mydownloads module modified

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

Someone?


suico

Friend of XOOPS
Posted on: 2004/9/26 21:53
suico
suico (Show more)
Friend of XOOPS
Posts: 374
Since: 2003/7/24
#212

Re: Mydownloads module modified

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.


suico

Friend of XOOPS
Posted on: 2004/9/14 17:04
suico
suico (Show more)
Friend of XOOPS
Posts: 374
Since: 2003/7/24
#213

Re: Mydownloads module modified

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.


suico

Friend of XOOPS
Posted on: 2004/7/12 15:35
suico
suico (Show more)
Friend of XOOPS
Posts: 374
Since: 2003/7/24
#214

Double Post on my fóruns

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?


suico

Friend of XOOPS
Posted on: 2004/6/24 21:48
suico
suico (Show more)
Friend of XOOPS
Posts: 374
Since: 2003/7/24
#215

Re: Error after upgrade for 2.0.7

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?


suico

Friend of XOOPS
Posted on: 2004/6/10 21:23
suico
suico (Show more)
Friend of XOOPS
Posts: 374
Since: 2003/7/24
#216

File Uploading in submit Download

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



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