Welcome, Guest. Please login or register.
March 20, 2010, 02:17:11 PM

Login with username, password and session length
Search:     Advanced search
WB 2.8.1 veröffentlicht!
Download und weitere Informationen gibt es hier .
110527 Posts in 15961 Topics by 9309 Members
Latest Member: garugc
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code) (Moderators: Argos, BerndJM)
| | |-+  Most Popular Downloads call for Download Gallery 1.9?
Pages: [1] Go Down Print
Author Topic: Most Popular Downloads call for Download Gallery 1.9?  (Read 1570 times)
aggiejag

Offline Offline

Posts: 9



« 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

Thanks in advance!
~Russell
Logged
Ruud
Development Team
******
Offline Offline

Posts: 1273


[[droplets]]


WWW
« Reply #1 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
Logged

aggiejag

Offline Offline

Posts: 9



« Reply #2 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
Logged
aggiejag

Offline Offline

Posts: 9



« Reply #3 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!
Logged
Ruud
Development Team
******
Offline Offline

Posts: 1273


[[droplets]]


WWW
« Reply #4 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  smiley

Cheers,

Ruud
Logged

Availor

Offline Offline

Posts: 171


Yup it's me


« Reply #5 on: July 13, 2008, 11:38:12 PM »

That's a GREAT module!!!  grin
Logged
Ruud
Development Team
******
Offline Offline

Posts: 1273


[[droplets]]


WWW
« Reply #6 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!!!  grin

Do you know a place that lists those small WB tricks ?  cool

Ruud

Edit: ahh.. it's there already wink
« Last Edit: July 13, 2008, 11:45:14 PM by RuudE » Logged

Availor

Offline Offline

Posts: 171


Yup it's me


« Reply #7 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  afro
Logged
Pages: [1] 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!