Welcome, Guest. Please login or register.
March 21, 2010, 06:27:01 PM

Login with username, password and session length
Search:     Advanced search
WB 2.8.1 released!
Download and additional information are available here .
110606 Posts in 15975 Topics by 9316 Members
Latest Member: melaniejohnson54
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Modules (Moderators: Argos, BerndJM)
| | |-+  Downloads Module: Download Gallery v1.0 Final released
Pages: 1 2 [3] 4 5 ... 10 Go Down Print
Author Topic: Downloads Module: Download Gallery v1.0 Final released  (Read 51486 times)
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):

Code:
// 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
Leaders Team
*****
Offline Offline

Posts: 7211


Keep on Rockin


WWW
« Reply #53 on: January 03, 2006, 11:50:17 PM »

Version 1.1 of Download Gallery modul released

you can download it at completed modules.

Quote
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

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
ruebenwurzel
Leaders Team
*****
Offline Offline

Posts: 7211


Keep on Rockin


WWW
« 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

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
mroony

Offline Offline

Posts: 24


« Reply #55 on: January 05, 2006, 06:13:11 PM »

Version 1.1 of Download Gallery modul released

you can download it at completed modules.

Quote
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?Huh  smiley  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:
Code:
$module_function = 'page';
wich was added in 2.6

John
Logged
ruebenwurzel
Leaders Team
*****
Offline Offline

Posts: 7211


Keep on Rockin


WWW
« Reply #57 on: January 05, 2006, 09:59:20 PM »

Hello,

Code:
$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

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
mroony

Offline Offline

Posts: 24


« Reply #58 on: January 06, 2006, 02:10:16 AM »

Hello,

Code:
$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 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
Leaders Team
*****
Offline Offline

Posts: 7211


Keep on Rockin


WWW
« 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

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
jschor

Offline 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
Leaders Team
*****
Offline Offline

Posts: 7211


Keep on Rockin


WWW
« Reply #65 on: January 08, 2006, 09:48:31 PM »

@woudloper

Thanks for the fix. Delete the files works now  wink.

But had now another problem. Couldn't rename the filenames  evil.

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

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
Timber

Offline Offline

Posts: 7


« Reply #66 on: January 11, 2006, 09:55:53 PM »

I'm having a small problem.
The download module places all the downloads at the bottom of the page, check this:
http://www.sandenburg.i-designmedia.nl/pages/downloads/notulen-alv.php

Please advise undecided
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 Offline

Posts: 89


Grammaton Cleric 1st Class


WWW
« 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 updates
Add 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. smiley
Logged

andy

Offline 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 Offline

Posts: 51



WWW
« Reply #70 on: January 25, 2006, 03:32:59 AM »

As long as people are making suggestions  wink :

It would be great to include some of the features of the Bookmark module:
  • organize downloads into groups
  • *include a thumbnail image


Logged
ruebenwurzel
Leaders Team
*****
Offline Offline

Posts: 7211


Keep on Rockin


WWW
« Reply #71 on: January 25, 2006, 07:29:56 AM »

@andy

If you use the latest version from completed Modules, maybe this fix your problem:

http://forum.websitebaker.org/index.php/topic,1849.msg13336.html#msg13336

Matthias
Logged

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
andy

Offline 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
Leaders Team
*****
Offline Offline

Posts: 7211


Keep on Rockin


WWW
« 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

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
orbiteleven

Offline Offline

Posts: 27


WWW
« Reply #74 on: January 26, 2006, 08:52:36 PM »

@woudloper

Thanks for the fix. Delete the files works now  wink.

But had now another problem. Couldn't rename the filenames  evil.

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:
Code:
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:
Code:
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
Pages: 1 2 [3] 4 5 ... 10 Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!