martvisser
Forum Replies Created
-
Normally you would like to use this code with a user-defined cID, otherwise I don’t really see a use for it, but when you would like your PHP code to always use the same cID you could use the following:
<?php $cID = 1; do_shortcode('[wpdonatecollected cid=' . $cID . ']'); ?>Without use of the $cID variable you could use the following:
<?php do_shortcode('[wpdonatecollected cid=1]'); ?>The interface for the plugin shows the cIDs with leading zero’s (e.g. 001), but in the database and in the PHP code it’s just an integer (e.g. 2 or 15). So in PHP code just use the cID without leading zero’s.
On my server I encountered problems with the PayPal IPN functionallity because of SSL certificate errors. Took me some time to find this problem, because there are no error messages or anything.
You could debug the ‘paypal.php’ file and see if the connection with PayPal IPN is working. But this is obviously not a very ‘user-friendly’ solution…
I encountered the same problem when writing a additional shortcode in my ‘functions.php’ file for the custom theme i build.
This works fine for me:do_shortcode('[wpdonatecollected cid='. $value .']');Where
$valueis the variable containing the cid.I’m currently in the process of building a fundraiser site using this plugin and encountered a lot of problems, like you described in your post.
Could you possibly share your code? I did some work myself on the progress bar and fixed some layout bugs in the code (the ‘</p>’ outputted by some of the shorthands for example). Dutch is not a problem by the way, because i’m from the Netherlands.
Possibly we could use one another’s code and combine the best of both ‘worlds’ 🙂