All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.


Author Topic: most yes, recent no!  (Read 6043 times)

0 Members and 1 Guest are viewing this topic.

Offline Jaihoon

  • Newbie
  • *
  • Posts: 27
    • View Profile
most yes, recent no!
« on: 26 February 2008, 16:54 »
hi

the download plugin is working like a breeze.. but only for the latest download widget. I am not getting any display for the recent download widget.

i even tried the code via a text widget

<?php if (function_exists('get_newest_downloads')): ?>
   <?php get_newest_downloads(); ?>
<?php endif; ?>

but this gives no results

Any suggestions

http://jaihoon.tv


Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: most yes, recent no!
« Reply #1 on: 26 February 2008, 18:36 »
what version of wp-downloadmanager are you using?

How about:
Code: [Select]
<?php if (function_exists('get_recent_downloads')): ?>
   <?php get_recent_downloads(); ?>
<?php endif; ?>

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline Jaihoon

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: most yes, recent no!
« Reply #2 on: 27 February 2008, 05:59 »
thanx for reply

i am using 1.0 and the new code did not yield any results. Do I need to use plugin which executes php?

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: most yes, recent no!
« Reply #3 on: 27 February 2008, 07:38 »
yeap of course as it is a PHP code. In that case get a PHP Exec Widget and then the code you posted in the first post should work fine.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline Jaihoon

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: most yes, recent no!
« Reply #4 on: 27 February 2008, 09:57 »
i used exec-php plugin and it worked.

thanks

i have another doubt though. On what basis the recent downlaod widget lists the files? I wish to do the follwoing:

- list the files of most recent date (but past only or till today)
- Hide the files of future dates from being shown

Can I do this...  it wud be of great help

thanx again

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: most yes, recent no!
« Reply #5 on: 27 February 2008, 15:41 »
In downloadmanager.php
Find (Line 773):
Code: [Select]
$files = $wpdb->get_results("SELECT * FROM $wpdb->downloads ORDER BY file_date DESC LIMIT $limit");Replace:
Code: [Select]
$files = $wpdb->get_results("SELECT * FROM $wpdb->downloads WHERE file_date <= ".gmdate('U')." ORDER BY file_date DESC LIMIT $limit");

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline Jaihoon

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: most yes, recent no!
« Reply #6 on: 28 February 2008, 02:31 »
wow. thankx. it worked fine.

keep up the coding

Offline Ttech

  • Official Support
  • Global Moderator
  • *****
  • Posts: 4,294
    • View Profile
Re: most yes, recent no!
« Reply #7 on: 29 February 2008, 00:02 »
Glad it works.. ;)
Learning and Helping one day at a time.




DevNode.org Operator - The IRC network for Programers

Offline Jaihoon

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: most yes, recent no!
« Reply #8 on: 09 April 2008, 18:21 »
Hi

I am back with a minor issue. When I put the php code in a text widget, it of course yields results. However, I am forced to use/position it as the last widget or else it creates alignment problems, the bulleted list gets out of the side-bar.

Anyone help

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: most yes, recent no!
« Reply #9 on: 09 April 2008, 18:26 »
you can edit the template in WP-Admin -> Downloads -> Download Templates

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.