Johan Steen
Forum Replies Created
-
Forum: Plugins
In reply to: [Donations via PayPal] Test Donation displays "this site is a non-secure"Have you embedded a logo/image at the PayPal checkout page? If you do that, and your logo is on a http:// and not https://, you will get a message like that.
I believe when you visit a PayPal checkout page, it stores a cookie with some information about your visit, so the next time, the cookie is used to tailor the page for the visitor.
If you delete your cookies, you’ll probably get the first checkout page again.
Let me know if that was it.
Cheers,
JohanForum: Plugins
In reply to: [Donations via PayPal] Return page option not workingJohn,
For the next update, I’ve added a setting for the return mode. I think that should make it possible to use a return page with query strings.
If you’d like, you can try it now, by getting the latest version from my GitHub, https://github.com/artstorm/paypal-donations
or if not used to github, I can zip it for you if you want to try it. Let me know if it works in that case.It’s a new mode under Extras (I’ll probably rename that section to advanced) for setting the return mode. Using the last option, POST mode, should make query strings working.
Cheers,
JohanForum: Plugins
In reply to: [Donations via PayPal] Return page option not workingHi John,
The reason it is not working is that you are using a querystring as the return url (ie, an url based on .net/?something). That’s why they return to your root url, as PayPal strips away the query string. I believe there might be an option to allow query strings, but I would need to look into that first. If it’s possible to enable support for query strings, I’ll add that feature to a new version.
Cheers,
JohanForum: Plugins
In reply to: [Donations via PayPal] Return page option not workingHi,
Well, you can actually define an URL on the PayPal end. If you click My Profile -> My Selling Tools -> Website Preference, you can enable auto return, and a return url.
But the thing is, that if the button specifies a return URL, it should override and settings done at the PayPal end. Button defined return URL have priority over a default URL set at PayPal. Do you have a page where I can take a look at your button?
Cheers,
JohanThanks for contributing code! π
Cheers,
JohanVersion 2.1.1 is now live, and should take care of the problem.
Cheers,
JohanThanks for the heads up. I can replicate that if I use a PHP snippet. I assume that is what you were using too?
In that case I have a fix ready, I can push it out right away.
Cheers,
JohanGetting into the code, I started thinking. Currently editors gets a non editable view of the snippets. Allowing editors to edit snippets, will allow them to enter and execute PHP code. That would probably not be desired.
I will copy this note to my issue list at GitHub, and give it some more thought. What do you think?
Hi,
Sorry for super late reply. But you are right, and it makes sense. I’ve added it to the things to change for the soon upcoming 2.1 update.
https://github.com/artstorm/post-snippets/issues/12Cheers,
JohanI see, so basically you need get_post_snippet to execute any shortcodes contained within the snippets.
It would make sense that it did do that. I’ll have that changed for 2.1, being released soon.
https://github.com/artstorm/post-snippets/issues/11Also note that in 2.1 I’ll deprecate
get_post_snippet()and replace it withPostSnippets::getSnippet().
get_post_snippet() will continue working for a few more versions, but it’s best to update any code using it to the new method, for future proofing.Cheers,
Johan.Agree, good idea. I’ll add that to the feature list for upcoming versions.
Cheers,
JohanHi,
You could use a PHP post snippet to retrieve a custom field from the snippet.
Cheers,
JohanSee my reply here:
http://wordpress.org/support/topic/no-wordpress-search-in-snippetsWordPress search does not search within shortcodes.
For a workaround, maybe a plugin like Ultimate Search would be helpful, that adds search within shortcodes?
http://wordpress.org/extend/plugins/wp-ultimate-search/