Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted November 23, 2024Nov 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! 😊
November 25, 2024Nov 25 Community Expert 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
December 9, 2024Dec 9 Author 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
December 9, 2024Dec 9 I want to show documentation to developer who did not know anything about incision board Pl share the link https://invisioncommunity.com/developers/
December 9, 2024Dec 9 Author 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
December 9, 2024Dec 9 Community Expert 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
December 13, 2024Dec 13 Author 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
December 14, 2024Dec 14 Author 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
December 14, 2024Dec 14 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, 2024Dec 14 by Nathan Explosion
December 14, 2024Dec 14 Author 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.
December 14, 2024Dec 14 You're using native JS - ${variable} would be fine if jQuery wasn't already using $. Change a line userInfoElement.textContent = `Logged-in Member ID: \${memberId}, Name: \${memberName}`; And then it works fine, depending on where you put it am using in pages WHERE in Pages? More detail, not scraps...
December 14, 2024Dec 14 Author 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);