Home › Forums › Legacy Support › Support queries › Update Issues › query in the course of the database
- This topic has 35 replies, 2 voices, and was last updated 4 years, 1 month ago by Food-interactive.
-
AuthorPosts
-
October 6, 2020 at 12:01 pm #316346Anshuman SahuKeymasterSorry corrected the code ,please copy the corrected the code from above.October 6, 2020 at 9:06 pm #316460Food-interactiveParticipantThis reply has been marked as private.October 7, 2020 at 2:52 pm #316696Anshuman SahuKeymasterAs this is a custom request and does not comes under theme support you can consider hiring a freelancer for this. We have already told you where and how you will get the user id in unit content. The idea is to run a filter on api which returns course content on course status and push your custom html into it checking with user id .October 7, 2020 at 6:52 pm #316741Food-interactiveParticipantThis reply has been marked as private.October 8, 2020 at 2:46 pm #316986Anshuman SahuKeymasterYes that's right but in order to change the whole technology we had to take this step. We tried to provide the best to our users , even our addons stopped working in V4 this is why we are supporting old plugins as well with new theme .October 8, 2020 at 2:47 pm #316987Anshuman SahuKeymastercan you share some details maybe we can check , can you share us the plugin and share what it doesOctober 10, 2020 at 9:29 am #317432Food-interactiveParticipantThis reply has been marked as private.October 10, 2020 at 12:37 pm #317476Anshuman SahuKeymasterWell we can then force the wordpress login to the user by removing out login and adding login link to wp-login.php ,there user logs into wordpress and then enable the "Synchronise WP with VibeBP Login " frpm wp-admin -> vibebp -> settings . for this please add this code in your wp-admin -> wplms -> footer -> google anaylitics script :
<script>jQuery(document).ready(function(){jQuery('a.vibebp-login').on('click',function(event){event.preventDefault();event.stopPropagation();window.location.href='https://food-interactive.de/wp-login.php'}); });</script>
October 11, 2020 at 10:13 am #317560Food-interactiveParticipantThis reply has been marked as private.October 12, 2020 at 2:07 pm #317772Anshuman SahuKeymasterBecause our token system does not set the get_current_user_id therefore suggested to use the wp login where this is set . there will be no security issues . Yes you will get the get the get_current_user_id like before .October 13, 2020 at 7:49 pm #318076Food-interactiveParticipantThis reply has been marked as private.October 14, 2020 at 2:51 pm #318303Anshuman SahuKeymasterOhh I forgot that the get_current_user_id thing does not works in api's . you have to use the code snippet and suggested previously to run your custom plugin .October 14, 2020 at 7:25 pm #318356Food-interactiveParticipantThis reply has been marked as private.October 15, 2020 at 12:19 pm #318544Anshuman SahuKeymasterPlease remove that code in wp-admin -> wplms -> footer -> google anaylitics script as it wont work coz out whole system works on api's now and in api it does not detects the get_current_user_id() . IF forgot this part . You will need to revert to 3.9 in order to make your custom plugin work . please refer : https://wplms.io/support/knowledge-base/reverting-from-4-0-to-3-x/October 15, 2020 at 6:47 pm #318655Food-interactiveParticipantthat cant be the solution, other plugins also interact with the database or not? how do they store data from user input and read it out? how can we get a user id from the api? we want to use wplms system. we wrote now over weeks here with now nearly 30 posts and you tell us, it wont work? you send us code, which was useless? why? if we revert to 3.9 we are out of updates, right? this cant be so difficult, i appeal on your honor as developer to help us -
AuthorPosts
- The topic ‘query in the course of the database’ is closed to new replies.