Shortcodes
Maintained by
Frédéric Massart ⭐
Allows users to inject and modify content using shortcodes provided by other plugins.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
Could you please confirm:
1. Which version of filter_shortcodes you are using;
2. Which version of Moodle you are using;
3. When/where this error comes from (you can get more details by enabling debugging from the admin)
Thank you!
I have an error on Filter Shortcodes
Exception - Call to undefined function filter_shortcodes\filter_shortcodes_make_env()
Exception - Call to undefined function filter_shortcodes\filter_shortcodes_make_env()
Thank you for your feedback. Shortcodes are defined by their respective plugins, so it would be the responsibility of Level Up XP to declare a short code to display the points of a user.
Having said that, you are correct. The xppoints shortcode is meant to be used to display a certain amount of points, for instance to advertise the points received for completing an activity. That shortcode cannot be used to display the user's point total.
Such shortcode does not yet exist, but it is a good suggestion and we'll definitely consider adding it in our next release.
Thank you!
Fred
I use shortcodes in combination with Level Up XP+.
Initially I thought the short code xppoints would show the current number of points for a user but it only shows a specific number of points.
Is there anyway to have the current number of points showed? For example, "Hello [firstname], you currently have XXX points."
I can't find any documentation on how to use this plugin with your LevelUp+ plugin. I would like to know how to use the [xpdrop] feature, and how to change the amount of XP each drop gives. Could you point me to the documentation, or let me know how to do it in your reply. Much appreciated.
Any plans on updating for 3.8 since 3.8 is Long Term Support? Thanks for sharing your great work with teachers around the world to help gamify their courses to make it more engaging and fun for students!
This plugin does not come with a list of shortcodes by default, except for the 3 that you found. We created this plugin to allow other developers to add shortcodes to their own plugins. Keeping the built-in shortcodes to a minimum was very important to keep the performance impact to its minimum unless new features are needed. There are tons of shortcodes we could be adding, if you are looking for a plugin that provides a similar functionality but comes with a lot of pre-defined shortcodes, please search for "filtercodes".
But unfortunately the shortcodes list (http://your-moodle-site/filter/shortcodes/index.php) is only showing [firstname], [fullname] and [off] .
The shortcodes I've seen in the description above ( [useremail], [toupper], [section height="100" collapsed]... they look very promising. But they're not there.
How can I add them to the list and use?
Are there any other shortcodes ready or use?