Johan Steen
Forum Replies Created
-
Forum: Plugins
In reply to: [Donations via PayPal] How to get Paypal to open in a new TABI’ve just released version 1.8.2, where I’ve added this as an option in the advanced tab in settings.
Cheers,
JohanForum: Plugins
In reply to: [Donations via PayPal] How to open Paypal in new tab/window?I’ve just released version 1.8.2, where I’ve added this as an option in the advanced tab in settings.
Cheers,
JohanForum: Plugins
In reply to: [Donations via PayPal] pay pal short codeYes, you can use the shortcode
[paypal-donation]Hi,
WordPress does not execute shortcodes in comments for security, other any commenter could trigger all kinds of functions by using shortcodes.
If you really want to use shortcodes in comment, there might be some plugin out there that enables that in WP though, so that would be the solution to look into.
Cheers,
JohanForum: Plugins
In reply to: [Post Snippets - Custom WordPress Code Snippets Customizer] Tricky PHPHi,
A shortcode is evaluated per shortcode, so spreading a condition over two shortcodes wont work. But you can probably achive what you want using one shortcode php snippet and the content variable available for snippets:
snippet:
if (is_single()) { echo "{content}"; }WordPress Post
[snippet} Lorem Ipsum [/snippet]Cheers,
JohanForum: Plugins
In reply to: [Donations via PayPal] Installation of PayPal Donation on WordPress 3.6Hi,
It do seem like not all files were properly uploaded to the server. Try to upload the entire zip archive from WordPress’ plugin menu instead of going via FTP, and it should hopefully work out better for you.
Cheers,
JohanI’ve just released version 2.3.2 which should make it compatible with WordPress 3.6. Thanks for the report.
Cheers,
JohanHey,
Thanks for your report. And confirmed. I’ll update the plugin shortly to be compatible with the changes made to WordPress 3.6′ editor.
Cheers,
JohanHi,
Perhaps you can export the snippets, and get the file to me? That would help figure out what has happened.
Cheers,
JohanHi,
The problem is with your PHP code. The function siblings() requires an argument to be supplied to it ($link). And your snippet does probably not supply that argument when calling the function. And that is actually what the warning message says:
Warning: Missing argument 1 for siblings()
So change your function, to have a default value for that argument, so if no argument is supplied it takes that one, and you shall get rid of the warning.
ie change
function siblings($link) {
to
function siblings($link = '') {Cheers,
JohanForum: Plugins
In reply to: [Donations via PayPal] Recurrent Donations?No, the plugin does not have that option.
Cheers,
JohanI’ve just added an additional way to this.
Simply add this line of code to the theme’s functions.php or to wp-config.php to disable the PHP functionality of the plugin:
define('POST_SNIPPETS_DISABLE_PHP', true);I’ve just added an additional way to this.
Simply add this line of code to the theme’s functions.php or to wp-config.php to disable the PHP functionality of the plugin:
define('POST_SNIPPETS_DISABLE_PHP', true);Yes, by making it a PHP snippet you can achieve that. Taking the snippet you posted, and changing it to this, should work:
echo "<div>Some text."; if ("{variable}" != "") { echo "<span>And here's my {variable}</span>"; } echo "</div>";Cheers,
JohanForum: Plugins
In reply to: [Donations via PayPal] Custom Donate Button with relative pathYou can place and use button from your theme directory. Though, a relative url path would be difficult, as the relative url path to theme changes depending on where the user is in the site’s hierarchy, unless you only use the button in one single place, so it’s always on the same url.
I assume you don’t want to use the full url with the domain name, so the closest you can come is then to use a path similar to this:
/wp-content/themes/your-theme/your-button.png
Cheers,
Johan