WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Droplets & Snippets => Topic started by: aggiejag on July 11, 2008, 11:57:02 PM

Title: Most Popular Downloads call for Download Gallery 1.9?
Post by: aggiejag on July 11, 2008, 11:57:02 PM
I'm using Download Gallery 1.90 and would like to have 5 of the most popular downloads listed on the front page and I can't figure out the call...  can anyone help?  I'm running WB 2.7, MySQL 5, PHP 4.1

http://www.marineofficerprograms.com (http://www.marineofficerprograms.com)

Thanks in advance!
~Russell
Title: Re: Most Popular Downloads call for Download Gallery 1.9?
Post by: Ruud on July 13, 2008, 04:04:14 PM
Just made a small snippet. Feel free to modify, improve, or do whatever you want with it.

Based on anynews, this lists a number of downlod links and the counter.
Optionally the file description is added.
No support for groups is built in.
Output is based on a table, with CSS classes added. Look at the output for the classes to add in your css.

Install this as a module and call it with <?php topgal(); ?> in your template.
(look at readme.txt for more info)

Cheers,

Ruud

[gelöscht durch Administrator]
Title: Re: Most Popular Downloads call for Download Gallery 1.9?
Post by: aggiejag on July 13, 2008, 07:38:24 PM
Ruud,
  Exactly what i was looking for... will mod the output so it is in an unordered list vice a table, but THANKS a million!

Cheers,
~Russell
Title: Re: Most Popular Downloads call for Download Gallery 1.9?
Post by: aggiejag on July 13, 2008, 08:58:14 PM
Here's my mod... i changed it so it's an unordered list, removed the description and the download count...  thanks again, Ruud!

[gelöscht durch Administrator]
Title: Re: Most Popular Downloads call for Download Gallery 1.9?
Post by: Ruud on July 13, 2008, 11:01:00 PM
yr welcome,

I like to help a bit if I can, this was a nice "challenge" for a Sunday afternoon  :-)

Cheers,

Ruud
Title: Re: Most Popular Downloads call for Download Gallery 1.9?
Post by: Availor on July 13, 2008, 11:38:12 PM
That's a GREAT module!!!  :-D
Title: Re: Most Popular Downloads call for Download Gallery 1.9?
Post by: Ruud on July 13, 2008, 11:43:26 PM
.....Feel free to modify, improve, or do whatever you want with it.

That's a GREAT module!!!  :-D

Do you know a place that lists those small WB tricks ?  8-)

Ruud

Edit: ahh.. it's there already :wink:
Title: Re: Most Popular Downloads call for Download Gallery 1.9?
Post by: Availor on July 14, 2008, 12:00:30 AM
Yes I was quick already tested all posibilities and aded it... I still owe you a tutorial for the classifieds as I promised, though I really hope someone will fix the catalog module.

Got a book on php but an't go through the second page (lol). Day after tomorrow I have an exam on C#, meanwhile I'm playing around with all sorts of javascript and flash thingies... Sorry for the OT  :mrgreen: