Giter Club home page Giter Club logo

wordpress-lti-consumer's People

Contributors

fugu13 avatar saebyn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wordpress-lti-consumer's Issues

User id error

You are using wp_get_current_user and try to get
the user_id as
'user_id' => $current_user->user_id

But the wordpress api should be $current_user->ID
http://codex.wordpress.org/Function_Reference/wp_get_current_user

return array(
'user_id' => $current_user->ID,
'lis_person_contact_email_primary' => $current_user->user_email,
'lis_person_name_given' => $current_user->user_firstname,
'lis_person_name_family' => $current_user->user_lastname,
);

And I think the lti_launch_func only will be executed if there are a user logged in

Bests regards

Setting a waxlrs configuration_url produces an "HTTP request failed" error

In the shortcode, adding a configuration_url pointing to a waxlrs XML returns an error.

[lti-launch consumer_key=yourconsumerkey secret_key=yoursecretkey display=iframe
configuration_url=https://uomedtest.waxlrs.com/lti?u=https://uomedtest.waxlrs.com/embed/mostpopular
resource_link_id=testcourseplacement1]

This problem isn't so much with the wordpress-lti-consumer code, though. The problem seems to be that waxlrs returns a 404 Not Found if the Accept: application/xml HTTP header is being sent.

This gist isolates just the part of the code making the file_get_contents call to the waxlrs, reproducing the problem:
https://gist.github.com/pascallaliberte/21d3eb14ec6e5a8dec9a

This gist, however, has the Accept: application/xml removed, which works.
https://gist.github.com/pascallaliberte/542212dbcc6562eeaf6c

iframe content not appearing when shortcode applied to admin-side dashboard widget

When using the iframe shortcode in the output of an admin-side dashboard widget, the iframe is created but nothing is displayed inside the iframe.

It looks like the launch.js script isn't referenced on the admin-side, which is needed for the form (preceding the iframe) to have its parameters posted to the iframe.

Here's some code to create an admin-side dashboard widget (OAuth keys removed):
https://gist.github.com/pascallaliberte/d86ef047f2c064f3717d

Documentation on creating dashboard widgets:
http://codex.wordpress.org/Dashboard_Widgets_API

Shortcodes can't be entered with newlines

This might just be a documentation thing, or possibly it could be detected, or something. They don't work properly with newlines present in the editor (even in plain text mode) because br tags get inserted.

Issue in configuring the plugin

It is showing atal error: Maximum function nesting level of '100' reached, aborting! in D:\wamp\wamp\www\wordpress\wp-includes\load.php on line 886 when I client on "Add New" in this plugin and also below error message.

Warning: call_user_func() expects parameter 1 to be a valid callback, function 'sb_lti_content_inner_custom_box' not found or invalid function name in D:\wamp\wamp\www\wordpress\wp-admin\includes\template.php on line 1037

Can you please guide me in configuring this plugin.

I am using latest version of Wordpress..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.