|
Woudloper
Guest
|
 |
« Reply #50 on: December 20, 2005, 01:45:51 PM » |
|
I'm interested. Where do I change this code? You need to go to the settings of the 'Download Gallery' module. There you can change the layout settings for the header, loop and footer. The code suggested by bhenry can be placed loop field.
|
|
|
|
|
Logged
|
|
|
|
|
Woudloper
Guest
|
 |
« Reply #51 on: December 21, 2005, 11:31:24 PM » |
|
Update (new version!)Although I was not planning to release a new 'release candidate' for this download gallery attached you will find a new version. Between the RC4 and this RC5 not many has changed. The only change I have made is the following: - Added: Multilanguage support; Multiple language files can be stored in the language subdirectory and the selection for this language is depended on the language you have selected within the admin settings.
What I did was the following. I added the below mentioned code to the file 'modify_settings.php' ( since this is only using the language.php file within this module): // Load Language file if(LANGUAGE_LOADED) { if(!file_exists(WB_PATH.'/modules/download_gallery/languages/'.LANGUAGE.'.php')) { require_once(WB_PATH.'/modules/download_gallery/languages/EN.php'); } else { require_once(WB_PATH.'/modules/download_gallery/languages/'.LANGUAGE.'.php'); } } This code retrieves the language based upon the settings. If no language can be found the default EN.php file will be loaded. Important! This code has mainly been added so other module developers can include this in their code! If I don't see any remarks/complains about this module the coming days, this version will be released as final.
|
|
|
|
|
Logged
|
|
|
|
|
Woudloper
Guest
|
 |
« Reply #52 on: December 23, 2005, 12:06:29 AM » |
|
The final version of the Download Gallery has been release. You can find it in this reply in the 'Completed Modules' thread. The ones who have downloaded the RC5 don't panic because between version RC5 and 1.0. Final no changes have been implemented. Hope you all are happy with this christmas present...
|
|
|
|
|
Logged
|
|
|
|
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7660
|
 |
« Reply #53 on: January 03, 2006, 11:50:17 PM » |
|
Version 1.1 of Download Gallery modul releasedyou can download it at completed modules.v1.1. December 28, 2005 Added: Language support to modify extension windows Fixed: Bug in modify extension window Changed: Minor layout changes in admin Interface Fixed: Code cleaning and all files stored in UNIX Attention:- This modul is designed for WB 2.6.1. It is not recommanded to use this for WB 2.5.x or less.
- This modul includes the languages EN, NL and DE. You can add your own language in the languages dir of the modul.
How to update:Copy all files to modules/download_gallery, overwrite the existing ones. There are no Database changes. Have fun Matthias
|
|
|
|
|
Logged
|
|
|
|
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7660
|
 |
« Reply #54 on: January 05, 2006, 04:51:31 PM » |
|
@woudloper
found a little bug in Edit File window (affected files: modify_file.php, delete_file.php). Cannot delete the File. If i choose delete and save nothing happens. The File is already there. What could be wrong? Also should the "view" ability be deleted, if you click on it, the file started to download. I think thats not necessary.
Can you have a look at this?
Thanks
Matthias
|
|
|
|
|
Logged
|
|
|
|
mroony
Offline
Posts: 24
|
 |
« Reply #55 on: January 05, 2006, 06:13:11 PM » |
|
Version 1.1 of Download Gallery modul releasedyou can download it at completed modules.v1.1. December 28, 2005 Added: Language support to modify extension windows Fixed: Bug in modify extension window Changed: Minor layout changes in admin Interface Fixed: Code cleaning and all files stored in UNIX Attention:- This modul is designed for WB 2.6.1. It is not recommanded to use this for WB 2.5.x or less.
- This modul includes the languages EN, NL and DE. You can add your own language in the languages dir of the modul.
How to update:Copy all files to modules/download_gallery, overwrite the existing ones. There are no Database changes. Have fun Matthias Amazing work. Thank you so much. I do have one issue, and I am not sure where it lies. I recently upgraded a site from 2.5.2 to 2.6.1 with the script. Before the upgrade I didn't use the download mod. but I am now. It installed fine, but when I try to manage sections the download mod doesn't show up in the list, but it really is there. Anyone?  No big hurry... I have it all workin, just figured I would say something. edit... I did try to reload the modules, but that didn't work. Just figured I should throw that in.
|
|
|
|
« Last Edit: January 05, 2006, 06:16:29 PM by mroony »
|
Logged
|
|
|
|
|
pcwacht
Guest
|
 |
« Reply #56 on: January 05, 2006, 08:11:33 PM » |
|
I think the file : info.php needs the line: $module_function = 'page'; wich was added in 2.6 John
|
|
|
|
|
Logged
|
|
|
|
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7660
|
 |
« Reply #57 on: January 05, 2006, 09:59:20 PM » |
|
Hello, $module_function = 'page'; is in the info.php. Try to use the reload addon. Go in admin interface to settings/advanced settings. At the bottom you find the Reload Tool. Reload all modules. should work then Matthias
|
|
|
|
|
Logged
|
|
|
|
mroony
Offline
Posts: 24
|
 |
« Reply #58 on: January 06, 2006, 02:10:16 AM » |
|
Hello, $module_function = 'page'; is in the info.php. Try to use the reload addon. Go in admin interface to settings/advanced settings. At the bottom you find the Reload Tool. Reload all modules. should work then Matthias Double checked and made sure that the info.php was correct and all good, and did the reload.... still no go. I am guessing this has something to do with the upgrade (which went well otherwise). Oh well... thank you for the attempt to fix.
|
|
|
|
|
Logged
|
|
|
|
|
Woudloper
Guest
|
 |
« Reply #59 on: January 06, 2006, 08:57:52 AM » |
|
found a little bug in Edit File window (affected files: modify_file.php, delete_file.php). Cannot delete the File. If i choose delete and save nothing happens. The File is already there. What could be wrong? At home I have almost a final version ready which fixes this problem. The problem was in the 'save_file.php', there I combined the $fname and the $fext and this was needed to be deleted, but the $fname already holds the extension of the file, so that part in the deletion can be removed...
|
|
|
|
|
Logged
|
|
|
|
jschor
Offline
Posts: 110
|
 |
« Reply #60 on: January 06, 2006, 07:23:23 PM » |
|
I am testing the download module (wb 2.6.1) but something is going wrong in the uploading. I get the following error when i visit the page: Warning: filesize(): Stat failed for /usr/home/schor/domains/hjvisuals.nl/public_html/WBTEST/wb/media/download_gallery/wb-manual.pdf (errno=2 - No such file or directory) in /usr/home/schor/domains/hjvisuals.nl/public_html/WBTEST/wb/modules/download_gallery/view.php on line 153 Any idea someone?
SOLVED: when i chmodded download_gallery to 777
|
|
|
|
« Last Edit: January 06, 2006, 07:34:02 PM by jschor »
|
Logged
|
|
|
|
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7660
|
 |
« Reply #61 on: January 06, 2006, 08:35:03 PM » |
|
Look at completed modules. There is the Version 1.1 of download gallery. This fixes some problems with 1.0. So if you have installed 1.0 only overwrite the files with the newer ones from 1.1 There are no Database changes.
Matthias
|
|
|
|
|
Logged
|
|
|
|
jschor
Offline
Posts: 110
|
 |
« Reply #62 on: January 06, 2006, 09:54:34 PM » |
|
I installed version download_gallery_v1[1].1. But changing the permission to 777 did the trick. Again for those who don't have so much knowledge about this a readme document would be a good thing (see my reply on your reply on the template edit question)
|
|
|
|
|
Logged
|
|
|
|
|
pcwacht
Guest
|
 |
« Reply #63 on: January 06, 2006, 11:07:32 PM » |
|
permissions
permissions on a webserver has basicly nothing to do with the way wb handle things
Basic information for permissions on a erver: - the webserver runs under a the user http, apache, nobody or other user - everything the webserver does to the filesystem (installing modules/templates/etc, uploading pictures etc) is done under that username AND UNDER THE RIGHTS IT HAS!
When you ftp to your webservers space, you use the username given to you, wich is ALLWAYS ANOTHER USER, with different credentials.
This might differ from isp to isp!!
That's why you have the option in admin -> admin -> advanced settings -> linux rights to set the rights remember, on servers it is allways good practice to give only the rights needed to do a job!
John
|
|
|
|
|
Logged
|
|
|
|
|
Woudloper
Guest
|
 |
« Reply #64 on: January 08, 2006, 01:05:11 PM » |
|
Update: version 1.2. released
After the earlier comment of ruebenwurzel I updated the download_gallery in the 'completed modules' thread. The version over there should solve the unable to delete option. For this change I have modified the 'modify_file.php' and the 'save_file.php' files, the other files are unchanged...
|
|
|
|
|
Logged
|
|
|
|
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7660
|
 |
« Reply #65 on: January 08, 2006, 09:48:31 PM » |
|
@woudloperThanks for the fix. Delete the files works now  . But had now another problem. Couldn't rename the filenames  . Did a look at the code and found that your inserted javascript in modify_file.php causes this problem. Attached you find a new file, without this javascript and little layout changes in one line. With this file all works and i think the layout of the modify file window is no a little bit clearer. Have a look at it an maybe you can include it in your modul. Thanks for this great modul Matthias
|
|
|
|
|
Logged
|
|
|
|
|
|
|
pcwacht
Guest
|
 |
« Reply #67 on: January 11, 2006, 10:49:04 PM » |
|
Goto admin -> pages -> download page -> settings change the header, <table cellpadding="0" cellspacing="0" border="0" width="100%"> change the width, make it less.
Good luck, John
|
|
|
|
|
Logged
|
|
|
|
gavjof
Offline
Posts: 89
|
 |
« Reply #68 on: January 19, 2006, 03:38:00 PM » |
|
Looks like a great module. Just tried it out and it's definately a must have. One suggestion for possible future updatesAdd another field to track the downloads of the files. I know we all have webstats, but customers can never work them out and this is always something people ask for. 
|
|
|
|
|
Logged
|
|
|
|
andy
Offline
Posts: 48
|
 |
« Reply #69 on: January 25, 2006, 02:14:46 AM » |
|
I uploaded a file to the download gallery. Then I attempted to change its description, but the save button doesn't work. I click on it, and nothing happens. This bug happens in both IE and firefox. Any ideas?
|
|
|
|
|
Logged
|
|
|
|
bhhenry
Offline
Posts: 51
|
 |
« Reply #70 on: January 25, 2006, 03:32:59 AM » |
|
As long as people are making suggestions  : It would be great to include some of the features of the Bookmark module: - organize downloads into groups
- *include a thumbnail image
|
|
|
|
|
Logged
|
|
|
|
|
|
andy
Offline
Posts: 48
|
 |
« Reply #72 on: January 25, 2006, 07:27:15 PM » |
|
I am using the latest version. I downloaded it yesterday. Or has another one been released since then?
|
|
|
|
|
Logged
|
|
|
|
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7660
|
 |
« Reply #73 on: January 25, 2006, 07:31:17 PM » |
|
@andy
I meant if you use the latest version copy the file you find in the attachement from the link of my last post over the existing one. Rename it from ...php.txt to only ...php. This file only works with the latest version and fixes the bug you posted.
Hop this is clearer now
Matthias
|
|
|
|
|
Logged
|
|
|
|
orbiteleven
Offline
Posts: 27
|
 |
« Reply #74 on: January 26, 2006, 08:52:36 PM » |
|
@woudloperThanks for the fix. Delete the files works now  . But had now another problem. Couldn't rename the filenames  . Did a look at the code and found that your inserted javascript in modify_file.php causes this problem. Attached you find a new file, without this javascript and little layout changes in one line. With this file all works and i think the layout of the modify file window is no a little bit clearer. Have a look at it an maybe you can include it in your modul. Thanks for this great modul Matthias The only issue on the modify_file.php page is that the javascript returns false as opposed to true on the last line. It reads: function checkForm(form) { // Ask confirmation to the user if he really wants to delete the file... if (form.delete_file.checked == true) { var answer = confirm("Are you sure you want to delete the following file or folder?"); if (answer != 0) { return true; } else { return false; } } return false; // <--------- This is bad }
As opposed to: function checkForm(form) { // Ask confirmation to the user if he really wants to delete the file... if (form.delete_file.checked == true) { var answer = confirm("Are you sure you want to delete the following file or folder?"); if (answer != 0) { return true; } else { return false; } } return true; //<-------- This is good }
|
|
|
|
|
Logged
|
|
|
|
|