hlmcneill
Forum Replies Created
-
Hi John,
I have obtained a User Access Token and the feed seems to be working perfectly now.
Thanks very much for your explanation and help,
HelenForum: Plugins
In reply to: [Portfolio Slideshow] Updating to v1.10.0 breaks the siteThanks for the above advice, I also had to remove the upgrade and download v1.5.1.
My hosting package says it is running PHP 5.4 however so I shouldn’t have had a problem?!
HelenForum: Plugins
In reply to: [Open Badges Issuer Add-on] Link to evidence from Mozilla BackpackI have made a change to my version of api/badge.php to replace the set up of $assertion[‘evidence’] with code which looks for the first attachment with parent_post matching post ID.
I’m not sure if this is 100% correct – will it always find the right attachment for example – but it is doing what I want for now i.e. linking directly to the file submitted as evidence from within the baked badge.
This is the code I used:
$args = array( 'post_type' => 'attachment', 'posts_per_page' => -1, 'post_status' =>'any', 'post_parent' => $post_id ); $attachments = get_posts( $args ); if ( $attachments ) { foreach ( $attachments as $attachment ) { $evidence_link=wp_get_attachment_url( $attachment->ID); error_log($evidence_link); $assertion['evidence']= $evidence_link; break; } }
Hi
I’ve had the same problem and spent a lot of time on it before realising that the same issue had been raised here! Changing the register_email() option as described above fixed the error.