[wp-hackers] wp-hackers Digest, Vol 87, Issue 1

Adebayo Mike adebayomike73 at yahoo.com
Mon Apr 2 12:29:55 UTC 2012



--- On Sun, 1/4/12, wp-hackers-request at lists.automattic.com <wp-hackers-request at lists.automattic.com> wrote:

From: wp-hackers-request at lists.automattic.com <wp-hackers-request at lists.automattic.com>
Subject: wp-hackers Digest, Vol 87, Issue 1
To: wp-hackers at lists.automattic.com
Date: Sunday, 1 April, 2012, 12:00

Send wp-hackers mailing list submissions to
    wp-hackers at lists.automattic.com

To subscribe or unsubscribe via the World Wide Web, visit
    http://lists.automattic.com/mailman/listinfo/wp-hackers
or, via email, send a message with subject or body 'help' to
    wp-hackers-request at lists.automattic.com

You can reach the person managing the list at
    wp-hackers-owner at lists.automattic.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of wp-hackers digest..."


Today's Topics:

   1. Re: Talking to Ajax (Kevin Stover)
   2. Re: Talking to Ajax (Dino Termini)

hello man i need credit card or paypal there do u have and giv eme for text  so we can deal moe cos dont want shit have been into much hacker who scammed
----------------------------------------------------------------------

Message: 1
Date: Sun, 1 Apr 2012 04:43:01 +0100
From: Kevin Stover <kstover at gmail.com>
Subject: Re: [wp-hackers] Talking to Ajax
To: wp-hackers at lists.automattic.com
Message-ID:
    <CAP+Cxx2BO=y3SYiATB8EBnk3q4cuYutsSPf-cPW9vo+sXOaegA at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hey Dino,

I use ajax quite a bit in many plugins. One of the things that I noticed is
you have closed-**postboxes in the first part of your add_action, and
closed_postboxes in your second half. Make sure that your ajax request uses
the right one. I've done silly things like that before. Secondly, make sure
that you put a "die();" at the end of your called php function
closed_postboxes(){}.

Hope that helps,

Kevin

On Sat, Mar 31, 2012 at 3:54 AM, Rafael Ehlers <rafaehlers at gmail.com> wrote:

> This screencast talks about the exactly issue your on:
> http://pippinsplugins.com/plugin-thoughts-episode-4-learn-how-core-does-it/
>
> ,please watch!
>
> On Fri, Mar 30, 2012 at 11:44 PM, Dino Termini <dino at duechiacchiere.it
> >wrote:
>
> > Hello list,
> >
> > I am developing a plugin that displays a bunch of meta boxes. I'm trying
> > to do something when the 'Show on screen' checkbox for the corresponding
> > meta box is (un)selected. So I added
> >
> > add_action('wp_ajax_closed-**postboxes',  'closed_postboxes');
> >
> > and
> >
> > function closed_postboxes(){
> >        echo 'yeah';
> > }
> >
> > to test it. But according to Firebug, admin-ajax.php returns -1, and the
> > hook is not executed. What am I missing? I found this page
> >
> > http://codex.wordpress.org/**AJAX_in_Plugins<
> http://codex.wordpress.org/AJAX_in_Plugins>
> >
> > Can you please point me in the right direction?
> >
> > Cheers,
> > Dino.
> > ______________________________**_________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.**com <wp-hackers at lists.automattic.com>
> > http://lists.automattic.com/**mailman/listinfo/wp-hackers<
> http://lists.automattic.com/mailman/listinfo/wp-hackers>
> >
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


------------------------------

Message: 2
Date: Sun, 01 Apr 2012 07:17:41 -0400
From: Dino Termini <dino at duechiacchiere.it>
Subject: Re: [wp-hackers] Talking to Ajax
To: wp-hackers at lists.automattic.com
Message-ID: <4F783955.7020402 at duechiacchiere.it>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Thank you Rafael and Kevin. FWIW, the problem in my case was that I had 
forgotten to pass the nonce as a hidden field.

By the way, happy April Fool's Day.

Dino.

On 3/31/2012 11:43 PM, Kevin Stover wrote:
> Hey Dino,
>
> I use ajax quite a bit in many plugins. One of the things that I noticed is
> you have closed-**postboxes in the first part of your add_action, and
> closed_postboxes in your second half. Make sure that your ajax request uses
> the right one. I've done silly things like that before. Secondly, make sure
> that you put a "die();" at the end of your called php function
> closed_postboxes(){}.
>
> Hope that helps,
>
> Kevin
>
> On Sat, Mar 31, 2012 at 3:54 AM, Rafael Ehlers<rafaehlers at gmail.com>  wrote:
>
>> This screencast talks about the exactly issue your on:
>> http://pippinsplugins.com/plugin-thoughts-episode-4-learn-how-core-does-it/
>>
>> ,please watch!
>>
>> On Fri, Mar 30, 2012 at 11:44 PM, Dino Termini<dino at duechiacchiere.it
>>> wrote:
>>> Hello list,
>>>
>>> I am developing a plugin that displays a bunch of meta boxes. I'm trying
>>> to do something when the 'Show on screen' checkbox for the corresponding
>>> meta box is (un)selected. So I added
>>>
>>> add_action('wp_ajax_closed-**postboxes',  'closed_postboxes');
>>>
>>> and
>>>
>>> function closed_postboxes(){
>>>         echo 'yeah';
>>> }
>>>
>>> to test it. But according to Firebug, admin-ajax.php returns -1, and the
>>> hook is not executed. What am I missing? I found this page
>>>
>>> http://codex.wordpress.org/**AJAX_in_Plugins<
>> http://codex.wordpress.org/AJAX_in_Plugins>
>>> Can you please point me in the right direction?
>>>
>>> Cheers,
>>> Dino.
>>> ______________________________**_________________
>>> wp-hackers mailing list
>>> wp-hackers at lists.automattic.**com<wp-hackers at lists.automattic.com>
>>> http://lists.automattic.com/**mailman/listinfo/wp-hackers<
>> http://lists.automattic.com/mailman/listinfo/wp-hackers>
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers



------------------------------

_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers


End of wp-hackers Digest, Vol 87, Issue 1
*****************************************


More information about the wp-hackers mailing list