Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Mike

    (@mobius5150)

    That works. 🙂
    Thanks for the quick fix!

    Glad to hear it. I’m going to look into why this is failing and will patch it in a better fashion ASAP.

    Sidenote: Any idea re: the PHP CodeSniffer message? Is there a package I can download to fix that?

    Certainly! Check out the WordPress Coding Standards on GitHub. You’ll want to look at the “How to use this” section and follow the instructions to install phpcs and the WordPress Coding Standards.

    Plugin Author Mike

    (@mobius5150)

    Thanks for doing that. I think the new analyzers feature is giving you trouble. Can you edit line 135 of vip-scanner.php within the plugin files like this:

    Original:

    $scanner = VIP_Scanner::get_instance()->run_theme_review( $theme, $review );

    Modified:

    $scanner = VIP_Scanner::get_instance()->run_theme_review( $theme, $review, array( 'checks' ) );

    Plugin Author Mike

    (@mobius5150)

    Sorry to hear about these issues Chris. Lets try a couple things:

    – When you navigate to the page, does it take a while to error out (30s-1m) or does it error out instantaneously?
    – Are you running this on your own theme, or a public one? Could you please try switching your active theme to twenty fourteen, twenty eleven etc.. and then browse to the VIP Scanner page?
    – Do you have access to WP CLI on your machine? If so could you run wp vip-scanner scan-theme --theme=twentyfourteen --scan_type="WP.org Theme Review" and let me know if it completes?

    Thanks,
    Mobius5150

    Plugin Author Mike

    (@mobius5150)

    Hi there,

    As soon as I get the chance I’ll start working PHP 5.4 compatibility. Do you have any specific errors that you’re experiencing? Could you perhaps post some of the error messages from your logs?

    If you like, you can try installing the current development version of GlobalFeed which is available here: http://downloads.wp.xz.cn/plugin/globalfeed.zip

    The development version may fix some issues as I’ve been working on a number of bug fixes with various PHP versions.

    Thank you!
    Mobius5150

    Plugin Author Mike

    (@mobius5150)

    My apologies for not responding to this sooner! I didn’t receive a notification of your post. I hope this isn’t too late!

    The Facebook feed within GlobalFeed requires that you setup a Facebook app. Essentially what this is is a way of accessing your Facebook profile/wall/stream etc without being on Facebook.com. This is your way of telling Facebook “This server is allowed to get stuff from my account without being a Facebook user”.

    Enough about that, on to setting it up. You’ll want to have a Facebook account and head over to the Facebook Developers Site. Here you’ll want to first setup your Facebook account as a developer, then create a new app by going to the apps tab at the top right. Once you’ve created an app, Facebook will give you an app and an app secret.

    Before you can use GlobalFeed however you’ll have to setup your domain with your app. Within the settings page for the app you’ve created, you’ll see a box that says app domains, you’ll need to add your domain name here. Also under the heading “Select how your app integrates with Facebook” you’ll want to check “Website with Facebook Login” and place the URL to your site (http://coldcockspirits.com) here. Save your changes and you should be setup. Now just paste the App ID and App Secret into GlobalFeed and you should be good to go!

    I’ll try and post this as a step-by-step tutorial at some point so that its easier to follow.

    Hope that helps! Feel free to ask more questions.

    Mobius5150

    Mike

    (@mobius5150)

    I too find this highly annoying. It does not fit in with the rest of the WordPress theme, and I think that if everyone did this then the blog admin is going to start looking like a visually terrifying web page from the late 90’s-early 2000’s.

    Additionally, the WordPress plugin guidelines (http://ww.wp.xz.cn/extend/plugins/about/guidelines/) specifically state:

    Plugins should not hijack the blog admin. It is fine to include an Upgrade prompt on the plugin admin page, but not throughout the blog. It is acceptable to embed a widget on the dashboard but this should be the same size as others and be dismissable. It’s fine to put an error message at the top of the admin for special cases, but it should be linked to a way to fix the error and it should be infrequent. Any form of “nagging” is absolutely prohibited.

    And:

    In general, things like banner or text link advertising should not be anywhere in a plugin, including on its settings screen. Advertising on settings screens is generally ineffective anyway, as ideally users rarely visit these screens, and the advertising is low quality because the advertising systems cannot see the page content to determine good ads. So they’re best just left off entirely. Putting links back to your own site or to your social-network of choice is fine. If the plugin does include advertising from a third party service, then it must default to completely disabled, in order to prevent tracking information from being collected from the user without their consent. This is the method commonly known as “opt-in”.

    Your plugin does both of these. (and this could be easily seen as advertising within WordPress). Although, the second one (advertising) I’m not too worried about, as a developer I know that its nice to at least receive some compensation for something you’ve put many hours into (as you obviously have) — so I can’t fault you for that. The plugins page however, looks terrible, is intrusive, and is against WP plugin guidelines.

    Aside from that, it’s a really good and handy plugin, but I absolutely hate anything that touches my WordPress admin outside of a single settings page. At best, this should be “opt-in”.

    I would say that if this is not fixed by the next version I’ll likely downvote the plugin.

    Thread Starter Mike

    (@mobius5150)

    Hi George,

    So this is what I think I did:

    I created a folder within the paypal-framework plugin directory called ‘CACERTS’. To this folder I added a couple certificates including (majorly) this one:http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1

    This certificate is the stock CA’s included in Firefox (straight from mozilla to boot!)

    I then added the following lines to the paypal-framework.php file at the very start of the ‘_validateMessage()’ function: (ensure to replace ‘<—————Name of Certificate file——————>’ with the filename of the certificates you want.

    $ch = curl_init();
                    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
                    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
                    $_POST['cares'] = curl_setopt($ch, CURLOPT_CAINFO, dirname(__FILE__) . "/CAcerts/<---------------Name of Certificate file------------------>");
                    $_POST['caurl'] = dirname(__FILE__) . "/CAcerts/<---------------Name of Certificate file------------------>";
    		// Set the command that is used to validate the message
    		$_POST['cmd'] = "_notify-validate";

    Like I said, I really don’t remember a whole lot about this, except for having to do ALOT to get this working.. I checked my old copy of WP and I don’t think I had to modify the source to get this to work. Let me know if it works for you though… Also note that I did this using V1.06 of paypal-framework and 3.1 of WordPress, so something may have changed with the versions.

    Hope this helps.
    Mike

    Thread Starter Mike

    (@mobius5150)

    To clarify, are you using the PayPal Framework plugin?

    Thread Starter Mike

    (@mobius5150)

    This was a while ago. If I remember Correctly, the hosting provider did not have the standard certificate authorities installed and therefor curl cannot verify that certificate is correct.

    The solution is either to download the certificate for the root CA that signed te certificate in question, or link to a bundle of CA certificates. I did the bundle. you link to it within your php code. As for linking to the bundle, you need to do it somewhere within the WordPress source, in the bit that does remote connections.

    I can’t remember where I found it, but you might find it in a google search. If I get a chance this week I’ll post something on my blog and put a link here.

    Hope that helps,
    Mike

    Hello,

    I too am looking for this new functionality. Unfortunately however, despite the fact that the actual backend of WordPress supports multiple roles per user, the front end does not. Furthermore, the WordPress core does not have the actions/filters that would be necessary for plugin authors to create a good easy to use plugin that could add this functionality.

    I’ve created a Trac ticket here that would address the issue of missing actions & filters here: http://core.trac.ww.wp.xz.cn/ticket/17924. Should this ticket be accepted, I will promptly release a plugin that adds this functionality to WordPress.

    If you would like to see these features added, please go to the ticket and weigh in on the issue so that we can get a bit of attention from core developers.

    Thread Starter Mike

    (@mobius5150)

    I made one more update to the diff patch. I changed it so that when it checks if $attachment_count == 0 it also checks if $output == '', and if either is true it returns ''.

    I then removed several if statements that were checking if $output == '' to optimize the code a little.

    This diff is available here: eg-attachments-no-attachments-optimize.patch

    Mike

    Thread Starter Mike

    (@mobius5150)

    Hmm… Nevermind.. This plugin isn’t in Trac…

    Thread Starter Mike

    (@mobius5150)

    Actually… Come to think of it, not sure why I posted this here.. Anyways, creating a post in trac…

Viewing 13 replies - 1 through 13 (of 13 total)