Jump to content

Featured Replies

Posted

Hi everyone,

I’m looking for a solution to implement a daily activity tracking system for our community. Here’s the idea:

  1. Daily Activities: We want to assign 6 activities to our members each day.
  2. 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.
  3. 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! 😊

  • Author

Can any 1 suggest 

  • 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

  • 2 weeks later...
  • 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

  • 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

  • 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 

 

  • 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

 

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 by Nathan Explosion

  • 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.

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

image.png.c60284c9ed631f6695141e12bf30f416.png

 

 

 

am using in pages

WHERE in Pages? More detail, not scraps...

  • Author

let me explain this is test which is giving error

image.thumb.png.8489ade76d854ad0c9da1ce94ac3332c.png

 

 

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);

  • Author

can any one pl look into this ?

Recently Browsing 0

  • No registered users viewing this page.