Home › Forums › Legacy Support › 4.0 Bugs & Issues › Questions shortcode not working
Tagged: questions
- This topic has 23 replies, 3 voices, and was last updated 2 years, 10 months ago by Anshuman Sahu.
-
AuthorPosts
-
December 18, 2021 at 10:33 am #376416No OneSpectatorwhen trying to add question shortcode inside unite page, it’s display nothing I tried to use [question id="833"] my system has a lot of units built by questions by id, and really can’t edit all units @ALex answered in another post : "Ok in such case we can build a sync program to parse the question shortcode in your unit content and make then practice question . https://trello.com/c/jukWYqJI " and " Well this has been fixed its jsut we need to release the update . Most probably we will do it tommorrow , thanks for patience ." but unfortuantly, I Updated wplms plugin to Version 1.6.5.2 But still questions not shown,December 18, 2021 at 10:35 am #376417No OneSpectatorThis reply has been marked as private.December 20, 2021 at 8:58 am #376454VeronicaModeratorhi @NoOne please check this Trello link http://prntscr.com/23omxul you will get an idea with the description of the cardDecember 20, 2021 at 10:58 am #376464No OneSpectatorI think your reply is not for this threadDecember 21, 2021 at 3:00 pm #376543Anshuman SahuKeymasterThis reply has been marked as private.December 22, 2021 at 8:19 am #376570No OneSpectatorThis reply has been marked as private.December 23, 2021 at 2:08 pm #376660Anshuman SahuKeymasterFor that you need to run units sync from wp-admin -> lms -> settings -> functions -> sync areas -> sync v4 unit types .December 23, 2021 at 10:57 pm #376684No OneSpectatorThis reply has been marked as private.December 24, 2021 at 2:52 pm #376720Anshuman SahuKeymasterWell in units content the question shortcode will not work . We have provided practice question option in each unit for that separately .December 24, 2021 at 6:04 pm #376726No OneSpectatorAgain, Alex! an effort taken here from your side, please provide a solution, as I said before I have a lot of units and these questions must be inside it's tab, thanksDecember 27, 2021 at 2:18 pm #376794Anshuman SahuKeymasterHere is the solution : you need to run units sync from wp-admin -> lms -> settings -> functions -> sync areas -> sync v4 unit types This will will strip the shortcode form unit content and it will map all your question shortcodes used in your units to unit's practice question.December 27, 2021 at 5:51 pm #376804No OneSpectatorI did that 4 times, the short-code only runs outside tabs, but all shortcodes inserted inside a v4.0 tab, not working at all, I asked you to check my site before and I ask you again to check regardsDecember 28, 2021 at 2:12 pm #376841Anshuman SahuKeymastershort-code only runs outside tabs : yes ofcourse they will currently they cannot run inside the tabs as of now . this is why we made practice question setting in unit and separate section for it .December 28, 2021 at 5:51 pm #376849No OneSpectatoris there a trello card to track when it's completed?December 29, 2021 at 3:15 pm #376884Anshuman SahuKeymasterwe can create custom code for this : add this to wplms customizer plugin in wplms-customizer.php file:
add_filter('wplms_load_dynamic_scripts',function($scripts){ $scripts[] = array('id'=>'ques','src'=>WPLMS_PLUGIN_URL.'/assets/js/question.js'); return $scripts; }); add_action('wp_footer',function(){ ?> <script> document.addEventListener('unit_loaded', (e)=>{ setTimeout(()=>{ var DOMContentLoaded_event = document.createEvent("Event"); DOMContentLoaded_event.initEvent("DOMContentLoaded", true, true); window.document.dispatchEvent(DOMContentLoaded_event); },500); }); </script> <?php });
-
AuthorPosts
- The topic ‘Questions shortcode not working’ is closed to new replies.