Support-Forum
19.05.2013 10:27:32 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: jDownloads Security Fix Published!
It is very recommended, that all jDownloads users makes a update to this fixed release. It exists for both Joomla versions separate as jD 1.8.3. & 1.9.1.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: New Module - List all downloads for a category  (Read 3387 times)
0 Members and 1 Guest are viewing this topic.
dazza_dog
Newbie
*
Offline Offline

Posts: 13


« on: 25.11.2010 14:04:25 »

I have modified the mod_jdownloads_top and created a module to show all of the downloads for a particular category. Credit has to go to Arno for the original module and for jDownloads as a whole.
I have tested this module on an internally hosted site and it works fine so I have attached the module for you to download.

Note: This is an Alpha release

Known Issues:
  • If you click on a file you are taken to the category list and not a direct download

If you have any problems, comments or suggestions can you please post them here.

Darryn
« Last Edit: 25.11.2010 14:20:50 by dazza_dog » Logged
Arno
Administrator
***
Offline Offline

Posts: 8.019



WWW
« Reply #1 on: 25.11.2010 16:43:39 »

Hi Darryn,
many thanks for your created module. Good Work.  Wink

I have installed it for a test and all works fine.
But i have a few improvement suggestions:
- add a new module option: maximum viewed downloads (it is a problem when a categorie has a few hundred downloads)
- please add the new options from the last module releases (1.8.1) for view the file pic before the file name

Can i publish your module in the download area?

Thanks again.
Logged

Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions archive!
dazza_dog
Newbie
*
Offline Offline

Posts: 13


« Reply #2 on: 25.11.2010 18:47:24 »

Arno

Thanks for the encouragement.

I will update the module and let you have updated version.

I did not include a max option as I use sub categories (A client has over 300 data-sheets/white-papers but only about 10/15 in each sub category)
----
A quick question - How can I get it to go direct to the download instead of the category - I can add this as an option

Darryn
Logged
Arno
Administrator
***
Offline Offline

Posts: 8.019



WWW
« Reply #3 on: 25.11.2010 19:15:43 »

Hi,
ok, i understand, but not every user has only 15 files in the categories.  Grin

For go to the download details use this (as sample):

Code:
           if ($detail_view == '1'){
                // details view link
                $link = 'index.php?option='.$option.'&Itemid='.$Itemid.'&task=view.download&catid='.$files[$i]->cat_id.'&cid='.$files[$i]->file_id;
            } else {    
                // category link
                $link = 'index.php?option='.$option.'&Itemid='.$Itemid.'&task=viewcategory&catid='.$files[$i]->cat_id;
            }

You can it seen in the mostly jD modules.
Logged

Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions archive!
dazza_dog
Newbie
*
Offline Offline

Posts: 13


« Reply #4 on: 25.11.2010 23:11:43 »

Thanks for the code Arno.

I should have this done tomorrow, I'll add the following three options:-

  • Show No of downloads - 0 for all,  1-? will show the number of downloads Default = 0
  • Show Pics - Yes/No Default =No
  • Direct Download or Category List Default=Direct Download

Darryn
Logged
Arno
Administrator
***
Offline Offline

Posts: 8.019



WWW
« Reply #5 on: 25.11.2010 23:35:13 »

Great!
Logged

Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions archive!
Shakall
Jr. Member
**
Offline Offline

Posts: 55


« Reply #6 on: 14.05.2011 12:17:42 »

Its great but was more better is possible to put subkategory together.
I have one kategory whit many subkategory and if i put the first kategory the subkategory is not to see.
Logged
Arno
Administrator
***
Offline Offline

Posts: 8.019



WWW
« Reply #7 on: 14.05.2011 12:23:19 »

What is, when you add all subcategories IDs ?
Logged

Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions archive!
Shakall
Jr. Member
**
Offline Offline

Posts: 55


« Reply #8 on: 14.05.2011 12:25:49 »

Thats working Arno but i must give than more than 1000 subcategory in the list.
Its a litte more work Smiley

You can see it here what i mean
http://www.balkan-raja.com/index.php?option=com_jdownloads&view=viewcategory&catid=1164&Itemid=197

The first cat is the number 1164 but if i give this they can nothing see because the all other cats are as subfolder in the vat 1164
« Last Edit: 14.05.2011 12:27:59 by Shakall » Logged
Arno
Administrator
***
Offline Offline

Posts: 8.019



WWW
« Reply #9 on: 14.05.2011 13:25:44 »

Quote
Thats working Arno but i must give than more than 1000 subcategory in the list.
Yes, not a good solution.  Grin
I will add a new option for use all published subcategories for output...

By the way, i am not sure that your used category structure is the best way.
You has many sub categories with only one (or a few) downloads. As result has you a few thousand sub categories.
It is not better to move this in a few 'miscellaneous' categories?  Roll Eyes

Edit:
I see that i have not the last version from this module. Can you contact the developer dazza_dog for it and post it then here?
« Last Edit: 14.05.2011 13:45:18 by Arno » Logged

Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions archive!
Shakall
Jr. Member
**
Offline Offline

Posts: 55


« Reply #10 on: 16.05.2011 21:16:38 »

I become no answer from developer Sad
Logged
JohnD
Newbie
*
Offline Offline

Posts: 6



WWW
« Reply #11 on: 01.10.2012 12:40:26 »

It makes that product  better and more functional .
Logged
Arno
Administrator
***
Offline Offline

Posts: 8.019



WWW
« Reply #12 on: 01.10.2012 13:47:38 »

It makes that product  better and more functional .
You mean the module from the first post?
Logged

Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions archive!
JohnD
Newbie
*
Offline Offline

Posts: 6



WWW
« Reply #13 on: 01.10.2012 13:56:26 »

I mean this

Quote
- add a new module option: maximum viewed downloads (it is a problem when a categorie has a few hundred downloads)
- please add the new options from the last module releases (1.8.1) for view the file pic before the file name
Logged
BoomBox
Newbie
*
Offline Offline

Posts: 1


« Reply #14 on: 17.10.2012 00:58:55 »

I was struggling with this.  Thanks for taking away the frustration and making it easy to understand.
I am learning heaps in this forum and appreciate the helpfulness. Smiley
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

-->
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.488 seconds with 17 queries.