davelester / WPBadger

A lightweight badge issuing platform built using WordPress
Other
43 stars 13 forks source link

Accept/Decline links not working? or user error? #42

Open turbojones opened 11 years ago

turbojones commented 11 years ago

Hello, I hope this isn't something stupid I've done and I'm hoping you can help.

I've installed a clean version of Wordpress and your WPBadger plugin. I can create and award badges just fine.

When I follow the link in an award email, the page that loads has dead links for Accept and Decline. Example: http://vthority.com/awards/884944842197001/

Is there some configuration option that I've overlooked?

Thank you for any help, Michael

davelester commented 11 years ago

Hi Michael,

Those links currently rely on javascript, because they trigger a window for users to sign into their backpack. There's a bug in the latest public release that causes some issues on blogs that are using jquery; this has been fixed on my github, and will be included in a future release.

If you're willing to help test, you can download the latest code in a zip file here: https://github.com/davelester/WPBadger/downloads, or using git here: https://github.com/davelester/WPBadger/. Let me know if that fixes the problem.

Thanks, Dave

turbojones commented 11 years ago

Hi Dave, thank you for the reply. I downloaded the code from your downloads link and uploaded it to the server. I first deleted the WPBadger-master plugin directory and then extracted the zip. I deleted the previous Awards and my test Badge and started from scratch.

Unfortunately the same issue happens. Here's the link: http://vthority.com/awards/402626684913411/#

I'd be happy to continue to test. From what I can tell, it looks like the backPackLink for the anchor style is not finding the corresponding JS action in the awards.js file. I'm not an expert though so that's just an observation from my limited experience. I don't know enough about Wordpress to know how it would find that JS definition for a plugin. When I look at the page source there's no obvious include for awards.js.

Best, Michael

On Sun, Nov 25, 2012 at 7:33 PM, Dave Lester notifications@github.comwrote:

Hi Michael,

Those links currently rely on javascript, because they trigger a window for users to sign into their backpack. There's a bug in the latest public release that causes some issues on blogs that are using jquery; this has been fixed on my github, and will be included in a future release.

If you're willing to help test, you can download the latest code in a zip file here: https://github.com/davelester/WPBadger/downloads, or using git here: https://github.com/davelester/WPBadger/. Let me know if that fixes the problem.

Thanks, Dave

— Reply to this email directly or view it on GitHubhttps://github.com/davelester/WPBadger/issues/42#issuecomment-10703469.

davelester commented 11 years ago

Hi Michael,

I should have time to investigate this on Friday or the early weekend, and will get back to you. Thanks for helping test WPBadger!

Dave

mrjarbenne commented 11 years ago

Hi Dave,

I'm running the Git version and the issue was resolved for me. The lightbox appears now and allows logging into Persona. At that point I'm receiving a malformed url error from Mozilla.

http://screencast.com/t/iPH8LwJ1hT

mrjarbenne commented 11 years ago

Further to that, when I click the accept link, this error appears in firebug:

"NetworkError: 404 Not Found - http://beta.openbadges.org/issuer/%5B%5Bassertion.badge.image%5D%5D"

And when I click on the "Cool, Let's Go" link (because I'm already logged into Persona) I get this error

"NetworkError: 400 Bad Request - http://beta.openbadges.org/issuer/assertion?url=%22+.+get_permalink()+.+%24query_separator+.+%22json%3D1"

jbuckh commented 11 years ago

I tried the same version as mrjarbenne and I'm receiving the same malformed error.

It looks like the badge url itself is not working properly?

davelester commented 11 years ago

Ah, I see what the problem was -- when the javascript was moved to a separate file there was some PHP code that was never replaced. Sorry about that.

This should have been fixed with commit f181ab3 -- @jbuckh and @mrjarbenne, if you have test installations of WPBadger running, could you double-check that this bug was fixed?

mrjarbenne commented 11 years ago

This is now working on 0.7

MikeDeal commented 11 years ago

I have recently installed to be able to award students at our school and am having the same problems as above, the accept and decline links do nothing....

Is there an easy fix? I'm a newbie to this so will need some guidance!

Thanks

MIke

mrjarbenne commented 11 years ago

Did you install the WP-repo version? If you download the zip file from github here, that issue was resolved for me.

You will need to ensure that under Settings/permalinks in your WP dashboard you have it set to Postname.

davelester/WPBadger reply@reply.github.com writes:

I have recently installed to be able to award students at our school and am having the same problems as above, the accept and decline links do nothing.... Is there an easy fix? I'm a newbie to this so will need some guidance! Thanks MIke — Reply to this email directly or view it on GitHub.</p

MikeDeal commented 11 years ago

Apologies but I am finding it hard to find anyhting on github at the moment, how to I download the WP-repo version and where do I put it once downloaded?

Thanks for your help, Mike

Mike Deal Instructor Alternative Curriculum Safeguarding and Student Support Manager City Academy Norwich

mrjarbenne commented 11 years ago

Click on the "code" button on the top menu. You should then see a button just below that that says "zip".

Once you have downloaded the zipped plugin, you can install it by selecting Upload, instead of Search in the Plugin menu of your dashboard.

I would delete any existing versions you have in your WP site first before uploading the zip.

Cheers

Jared

davelester/WPBadger reply@reply.github.com writes:

Apologies but I am finding it hard to find anyhting on github at the moment, how to I download the WP-repo version and where do I put it once downloaded?

Thanks for your help, Mike

Mike Deal

Instructor Alternative Curriculum

Safeguarding and Student Support Manager

City Academy Norwich

Tel: 01603 452628 ext 252

Mobile:

Email: mike.deal@cityacademynorwich.org

City Academy Norwich, 299 BluebellRoad, Norwich, NR4 7LP

www.cityacademynorwich.org


From: mrjarbenne [notifications@github.com]

Sent: 27 March 2013 15:02

To: davelester/WPBadger

Cc: Mike Deal

Subject: Re: [WPBadger] Accept/Decline links not working? or user error? (#42)

Did you install the WP-repo version? If you download the zip file from github here, that issue was resolved for me.

You will need to ensure that under Settings/permalinks in your WP dashboard you have it set to Postname.

davelester/WPBadger

I have recently installed to be able to award students at our school and am having the same problems as above, the accept and decline links do nothing....

Is there an easy fix? I'm a newbie to this so will need some guidance!

Thanks

MIke

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub

Follow us on Twitter @CAN_Academy

The information contained in this email is intended only for the person or organisation to which it is addressed. If you have received it by mistake, please disregard and notify the sender immediately. Unauthorised disclosure or use of such information may be a breach of legislation or confidentiality and may be legally privileged.

— Reply to this email directly or view it on GitHub.

src="https

MikeDeal commented 11 years ago

Ok, thats done and I have updated the configurations as asked. The problem is, now I get an email that I have written into the settings but this has no accept/reject buttons at all. How do I get those into it?

Really sorry to be such a pain!

Mike Deal Instructor Alternative Curriculum Safeguarding and Student Support Manager City Academy Norwich