Saurabh Jain Posted November 23 Posted November 23 Hi everyone, I’m looking for a solution to implement a daily activity tracking system for our community. Here’s the idea: Daily Activities: We want to assign 6 activities to our members each day. Participation Options: Members should be able to submit whether they’ve completed all 6 activities or at least one activity. They should be able to mark the activities they’ve completed for tracking purposes. Tracking Requirements: We want to display stats like: X people completed Activity 1. Y people completed all 6 activities. Track participation on a daily basis and identify how many people consistently complete all activities across consecutive days. Does anyone have suggestions for setting this up within the Invision platform? I’d love to hear about plugins, tools, or creative approaches to achieve this. Looking forward to your ideas and insights. Thanks in advance! 😊
Marc Posted November 25 Posted November 25 You would likely need modification for this. You could potentially do some creative use of pages for people entering data, but the collating of that data is something you would need development for
Saurabh Jain Posted December 9 Author Posted December 9 I want to have a page with activities And put into new database How to take user session details I want to show documentation to developer who did not know anything about incision board Pl share the link
Daniel F Posted December 9 Posted December 9 7 minutes ago, Saurabh Jain said: I want to show documentation to developer who did not know anything about incision board Pl share the link https://invisioncommunity.com/developers/ Saurabh Jain 1
Saurabh Jain Posted December 9 Author Posted December 9 4 minutes ago, Daniel F said: https://invisioncommunity.com/developers/ Can we also do Sign in with with invitation community website ? So I can just take user name and user id
Marc Posted December 9 Posted December 9 14 minutes ago, Saurabh Jain said: Can we also do Sign in with with invitation community website ? So I can just take user name and user id This is a question you would need to ask of your developer
Saurabh Jain Posted December 13 Author Posted December 13 how to get system variables like member id ... how to get access to the user id I want to test welcome members id in html page
Saurabh Jain Posted December 14 Author Posted December 14 can we get name and id is this correct const memberId = {expression: "\IPS\Member::loggedIn()->member_id"}; // Replace dynamically in production const memberName = {expression: "\IPS\Member::loggedIn()->name"}; // Replace dynamically in production
Nathan Explosion Posted December 14 Posted December 14 (edited) 2 hours ago, Saurabh Jain said: is this correct Have you tried it yet yourself? What were the results, if you did? You've given zero indication about where you are planning to use that so it is difficult to say if it would be correct. More detail is always better than... Anyway...this JS will work, depending on where you put it. const memberId = ips.getSetting('memberID'); const userLink = document.getElementById('elUserLink'); const memberName = userLink.textContent.trim(); Edited December 14 by Nathan Explosion
Saurabh Jain Posted December 14 Author Posted December 14 I am using in pages what i want when some one press button done it does to data base https://jainsamaj.vidyasagar.guru/tracker/ I tried this <script> document.addEventListener("DOMContentLoaded", () => { // Fetch logged-in member details using Invision's JavaScript methods const memberId = ips.getSetting('memberID'); // Fetch member ID const userLink = document.getElementById('elUserLink'); // Get the user link element const memberName = userLink ? userLink.textContent.trim() : 'Guest'; // Fetch member name or fallback // Debugging: Log the member details console.log("Logged-in Member ID:", memberId); console.log("Logged-in Member Name:", memberName); // Update DOM with user info const userInfoElement = document.getElementById('user-info'); if (userInfoElement) { userInfoElement.textContent = `Logged-in Member ID: ${memberId}, Name: ${memberName}`; } }); </script> <p id="user-info">Fetching user details...</p> in a test page but ot just said etching user details.
Nathan Explosion Posted December 14 Posted December 14 You're using native JS - ${variable} would be fine if jQuery wasn't already using $. Change a line 13 minutes ago, Saurabh Jain said: userInfoElement.textContent = `Logged-in Member ID: \${memberId}, Name: \${memberName}`; And then it works fine, depending on where you put it 9 minutes ago, Saurabh Jain said: am using in pages WHERE in Pages? More detail, not scraps...
Saurabh Jain Posted December 14 Author Posted December 14 let me explain this is test which is giving error My purpose is that there 6 daily activities - when a user click done it should go into when a user click done i should send the user id who has doen which activity I am using another cpanel to host data this is the code in my page which is not egtting user name and id - thsi is simple page <script> // Replace the below lines with dynamic server-side fetching if supported by your framework const memberId = {expression: "\IPS\Member::loggedIn()->member_id"}; // Replace dynamically in production const memberName = {expression: "\IPS\Member::loggedIn()->name"}; // Replace dynamically in production const getActionsUrl = `https://saurabhjain.in/practice/get_actions.php`; const logActionUrl = `https://saurabhjain.in/practice/log_action.php`; document.addEventListener("DOMContentLoaded", () => { // Debugging: Log the current user details console.log("Logged-in Member ID:", memberId); console.log("Logged-in Member Name:", memberName);
Recommended Posts