Giter Site home page Giter Site logo

download-gallery-wbce's People

Contributors

instantflorian avatar webbird avatar

Watchers

 avatar  avatar  avatar

download-gallery-wbce's Issues

Error with manually added large files

When uploading a large file via FTP to /media/download_gallery (what is necessary when the file size is larger than the upload limit an/or the PDF upload would exhaust the script execution time) and adding it to the DLG as a "Medienverzeichnis Datei", the download from the frontend fails with the message " Sorry, your download failed.".
Furthermore, the file size is shown with "0" (FE/BE).

problem with uninstall

PHP 7.4 on Xampp WBCE 1.4.1

First try uninstall was not possible, Error log shows:
2020-01-22T10:17:08+00:00 [Warning] \admin\modules\uninstall.php:[80] from \admin\modules\uninstall.php:[80] "include_once(D:\xampp\htdocs\wbce/modules/download_gallery_3/info.php): failed to open stream: No such file or directory"
2020-01-22T10:17:08+00:00 [Warning] \admin\modules\uninstall.php:[80] from \admin\modules\uninstall.php:[80] "include_once(): Failed opening 'D:\xampp\htdocs\wbce/modules/download_gallery_3/info.php' for inclusion (include_path='D:\xampp\php\PEAR')"
2020-01-22T10:17:08+00:00 [Warning] \framework\functions.php:[69] from \admin\modules\uninstall.php:[96] rm_full_dir "rmdir(D:\xampp\htdocs\wbce/modules/download_gallery_3): Directory not empty"
2020-01-22T10:17:08+00:00 [Deprecated] \include\Sensio\Twig\lib\Twig\Node.php:[42] from :[] Twig_Autoloader::autoload "Unparenthesized a ? b : c ? d : e is deprecated. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e)"
2020-01-22T10:17:08+00:00 [Deprecated] \include\Sensio\Twig\lib\Twig\Node.php:[198] from :[] Twig_Autoloader::autoload "Unparenthesized a ? b : c ? d : e is deprecated. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e)"

Second try uninstall shows "success", but Error Log shows more:
2020-01-22T10:17:08+00:00 [Warning] \admin\modules\uninstall.php:[80] from \admin\modules\uninstall.php:[80] "include_once(D:\xampp\htdocs\wbce/modules/download_gallery_3/info.php): failed to open stream: No such file or directory"
2020-01-22T10:17:08+00:00 [Warning] \admin\modules\uninstall.php:[80] from \admin\modules\uninstall.php:[80] "include_once(): Failed opening 'D:\xampp\htdocs\wbce/modules/download_gallery_3/info.php' for inclusion (include_path='D:\xampp\php\PEAR')"
2020-01-22T10:17:08+00:00 [Warning] \framework\functions.php:[69] from \admin\modules\uninstall.php:[96] rm_full_dir "rmdir(D:\xampp\htdocs\wbce/modules/download_gallery_3): Directory not empty"
2020-01-22T10:17:08+00:00 [Deprecated] \include\Sensio\Twig\lib\Twig\Node.php:[42] from :[] Twig_Autoloader::autoload "Unparenthesized a ? b : c ? d : e is deprecated. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e)"
2020-01-22T10:17:08+00:00 [Deprecated] \include\Sensio\Twig\lib\Twig\Node.php:[198] from :[] Twig_Autoloader::autoload "Unparenthesized a ? b : c ? d : e is deprecated. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e)"

Wrong paging

Unten am Fußende steht "Zeige -15- von insgesamt -48- Dateien. Dazu wird (siehe beigefügtes Bild) ein Symbolband angezeift mit "Vorherige" Seite und "Nächste" Seite, dazwischen die Seiten zahlen. Leider werden nicht alle Dateien angezeigt (bei 15 von 48 anzuzeigenden Dateien müssten je 15 auf den ersten drei Seiten und auf der vierten Seite noch 3 Dateien angezeigt werden).

Zusätzlich stimmen die Seitenzahlen nicht mit den anzuzeigenden Seiten überein. Ab der zuletzt (gefüllt) anzuzeigenden Seite werden mehr Seiten (ohne Datei-Inhalt) aufgezählt

Dateigröße auch bei Unterordner erkennen / Recognize the datasize in subfolders

Vielleicht wäre es möglich, das Modul so zu gestalten, dass die Dateigröße auch bei Unterordnern von "downloadgallery" erkannt wird.
Auch die Auswahl von bereits auf dem Server liegenden Daten, dürfte/sollte die Verzeichnisstruktur so anzeigen wie im normalen Dateimanager (Explorer etc.) und nicht alle einzelnen Dateien, egal ob diese im Hauptordner oder in einem Unterordner liegen. Dies würde die Übersichtlichkeit und somit auch Auswahl bei vielen abgelegten Downloaddateien enorm erleichtern.

Maybe its possible that the modul recognize the datasize even the file is in a subfolder.
Also it would be nice, if you select a file which is already on the server, that you see the whole directory structure - that means the subfolders too - and not only every single file, independt off where the are located, in the mainfolder or in a subfolder. this would improve the handling of many files a lot.

upgrade.php MySQL-Strict error

Da sind für MySQL-Strict noch Fehlerchen in der upgrade.php (war auch schon in der vorherigen Version drin):
Zeile 73:
Can't DROP 'extposition' ...
Zeile 72:
Duplicate column name 'position'...

Da sollte man wohl mal entsprechende Abfragen drum klöppeln.

PHP 8.1 deprecated & date issue

modify_file.phtml / save_file.phtml:
Deprecated-Meldung wegen leerem htmlspecialchars beim WYSIWYG-Editor
Fatal Error, wenn ungültiges Release-Datum angegeben

Vorschlag:
Abfrage date_released mit input file=date und Lösch-Checkbox

<tr>
    	<td><label for="released"><?php echo $DGTEXT['THRELEASED']; ?></label>:</td>
    	<td>
    		<input type="date" name="released" id="released" value="<?php if($data->released > 1): echo date('Y-m-d', $data->released); endif; ?>" />
		<input type="checkbox" name="delete_datereleased" id="delete_datereleased" value="yes" /><label for="delete_datereleased"><?php echo $TEXT['DELETE']; ?></label>
    	</td>
 </tr>

Prüfung, ob description leer

<tr>
    	<td colspan="2">
    		<?php 
			if ($data->description != null) {
				show_wysiwyg_editor("description","description",htmlspecialchars($data->description), "100%", "400"); 
			} else {
				show_wysiwyg_editor("description","description","", "100%", "400"); 
			}
			?>
    	</td>
    </tr>

Anpassung der save_file.php

if ($released <> '') {
	$rdate = strtotime($released);	
	if ($rdate==false || isset($_POST['delete_datereleased'])  && $_POST['delete_datereleased']  == 'yes') {
		$qs = $database->query("UPDATE `".TABLE_PREFIX.$tablename."_files` SET `released` = '' WHERE `file_id` = '$file_id' AND `page_id` = '$page_id'");
	} else {
		$qs = $database->query("UPDATE `".TABLE_PREFIX.$tablename."_files` SET `released` = '$rdate' WHERE `file_id` = '$file_id' AND `page_id` = '$page_id'");
	}
}	

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.