frumbert / wp2moodle-moodle

Moodle end of a Wordpress to Moodle Single Sign On auth plugin
28 stars 29 forks source link

Link does not appear in WP3.5 #2

Closed effigy11 closed 10 years ago

effigy11 commented 11 years ago

Hi Tim

I have installed the plugins in both WP and Moodle but when I add the short code to a WP page it the link does not display when viewing the page.

Also the Wordpress toolbar across the top does not display on that page.

Any Ideas? I am using Wordpress 3.5

This is a link to the page in question if you view the source code there is no trace of the wp2moodle link in the content.

http://school.brisbanemarkets.com.au/moodle-link/

Cheers Paul

effigy11 commented 11 years ago

Hi Tim

A bit of progress...

In debug mode I found that line 154 of wp2m.php was throwing an error, so I commented it out.

//"stamp" => date_timestamp_get(date_create("now")), // unix timestamp so we can check that the link isn't expired

So now the link appears

Cheers Paul

effigy11 commented 11 years ago

Hi Tim

Got it working now.

I had to change the date line slightly and it works perfectly.

"stamp" => time(), // unix timestamp so we can check that the link isn't expired

Great plugin by the way.

Cheers Paul

frumbert commented 11 years ago

Cheers, thanks for finding the fix, i'll get the change in and give it a bunch more testing on the latest versions. Glad you got it sorted!

Tim

Sent from my iPad

On 24/01/2013, at 10:52 AM, Paul McCormick notifications@github.com wrote:

Hi Tim

Got it working now.

I had to change the date line slightly and it works perfectly.

"stamp" => time(), // unix timestamp so we can check that the link isn't expired

Great plugin by the way.

Cheers Paul

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

frumbert commented 10 years ago

finally commit this change, oops!