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.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jschodde

Pages: [1] 2
1
WP-EMail / Re: Successful emails per post?
« on: 01 August 2009, 15:46 »
Code: [Select]
SELECT COUNT(email_id) FROM $wpdb->email WHERE email_status = '".__('Success', 'wp-email')."' AND email_postid = 1"Where 1 is your post ID[/code]

Thanks Lester, I got it working. Here is the new function in case someone needs it. Let me know if you see anything wrong with it please:

Code: [Select]
### Function: Get EMail Total Sent Success by Post
if(!function_exists('get_emails_success_by_post')) {
function get_emails_success_by_post($echo = true) {
global $wpdb, $post;
$totalemails_success = $wpdb->get_var("SELECT COUNT(email_id) FROM $wpdb->email WHERE email_status = '".__('Success', 'wp-email')."' AND email_postid=$post->ID");
if($echo) {
echo number_format_i18n($totalemails_success);
} else {
return number_format_i18n($totalemails_success);
}
}
}

Usage:

Code: [Select]
<?php if (function_exists('get_emails_success_by_post')) { get_emails_success_by_post(); } ?><?php _e(' emails','cp'); ?>

This will display: "nnn emails", where nnn is the count.

Thanks,
Jeff

2
WP-EMail / Successful emails per post?
« on: 31 July 2009, 16:46 »
I need a way to indicate how many times a post was emailed. I found the get_emails_success() function and I can see the sql statement. I think I would create a new function based on this one, and modify the sql statement to search for the current post. Can anyone offer me a little help on how I would set up the sql statement?  ::)

### Function: Get EMail Total Sent Success
if(!function_exists('get_emails_success')) {
   function get_emails_success($echo = true) {
      global $wpdb;
      $totalemails_success = $wpdb->get_var("SELECT COUNT(email_id) FROM $wpdb->email WHERE email_status = '".__('Success', 'wp-email')."'");
      if($echo) {
         echo number_format_i18n($totalemails_success);
      } else {
         return number_format_i18n($totalemails_success);
      }
   }
}

3
WP-PostRatings / Notify author upon rating?
« on: 30 July 2009, 21:01 »
Does anyone have a hack that would send an email notification to the post's author whenever a visitor rates the post?

4
Thanks Lester! You are THE man. :D

5
WP-PluginsUsed / Re: Plugin don't work in my site
« on: 30 July 2009, 04:09 »
Wow!  :o

6
if you did it with wp-postviews.php, it is the same, wp-email.php. You may want to take a look at the function at 758, get_mostemailed()

Forgot to mention that I'm on WP2.8.2 using WP-Email 2.5.

Here's what I did starting at line 1543 in wp-email.php:

foreach ($mostemailed as $post) {
   // JAS 7/29/09 - Added next two lines to display price with post title.
   $ad_currency = get_option('currency');
   $ad_price = $ad_currency.get_post_meta($post->ID, "price", true);
   
   // JAS 7/29/09 - Original Code
   //$post_title = get_the_title();
   
   // JAS 7/29/09 - New Code...
   $post_title = get_the_title().' - '.$ad_price;


Do you see anything wrong with this?

Thanks,
Jeff

7
I have a classifieds site and I need to display the item price after the post title in the widget (I did something similar to the WP-Post Views plugin).

I can't figure out which lines of code to edit for this change in wp-email.php. My desired results are like this:

Top 10 Most Emailed Ads
-----------------------------
2008 Arctic Cat Thundercat - $9500
2005 Polaris Trailboss - $2400
etc...

Thanks!

8
Thanks so much! I got it to work! Now all I need is a way to scale the images. :-\

9
WP-Print / How to print images listed in a custom field?
« on: 13 July 2009, 22:16 »
The custom field is called "images" and has data like this:

http://mydomain.com/wp-content/uploads/classipress/2008-thundercat-335620547.jpg,http://mydomain.com/wp-content/uploads/classipress/2008-thundercat-335620548.jpg,http://mydomain.com/wp-content/uploads/classipress/2008-thundercat-335620549.jpg,http://mydomain.com/wp-content/uploads/classipress/2008-thundercat-335620550.jpg,http://mydomain.com/wp-content/uploads/classipress/2008-thundercat-335620551.jpg,

Since the images are not embedded into the actual post, they do not print! How difficult would it be to include them?

I read the post on how to print custom fields which is working, but for images in an array of sorts, is a little more complex. ???

10
I'll run with it. thanks for your help  ;D

11
My mistake, I apologize. I am on 1.4 and not 1.5. Will this code change be OK for 1.4?

It seems to work.

12
Crap, I'm still on 2.7.1 because I was waiting for a 2.8 "dot" release (i.e. bug fixes).

When I saw your plugin was updated I simply did the automatic upgrade when it came out.

What now?  :-\

13
If I delete the folder I'll lose wp-postviews-widget.php. Does that matter?

14
Ouch!

Fatal error: Cannot redeclare widget_views_init() (previously declared in /home/jschodde/public_html/wp-content/plugins/wp-postviews/wp-postviews-widget.php:33) in /home/jschodde/public_html/wp-content/plugins/wp-postviews/wp-postviews.php on line 761

What should I do?

15
OK thanks! I'll let you know.

16
Yikes! That's a lot of changes and my line numbers are not matching. What do you recommend?

Is there a way to download just that file?

17
Nevermind, i didn't read all of your last post. I'll check the changelog.
Jeff

18
Is that in the DEV version or should I just change the version I have now? If so, can you be more specific on which lines to change for the permalink?

Thanks,
Jeff

19
Actually, I think I fixed it but not sure if what I did will break something else.
I kept your change mentioned earlier for line 218.

Here's my additional change on Line 235:

From this: $post_title = get_the_title();
To this: $post_title = get_the_title($post->ID);

Do you see a problem with this anywhere else like on the widgets or something?

[attachment deleted by admin]

20
Thanks for quick reply and I LOVE your plugins. :D

This code changed fixed the category display problem but broke the listings portion. See screenshots.

Thanks,
Jeff

[attachment deleted by admin]

Pages: [1] 2