Okay
  Public Ticket #3779549
Feature Request for Stachethemes Calendar - Allow RSVP for Ongoing Events
Open

Comments

  •  2
    amba13 started the conversation

    Dear developper of Stachethemes Calendar Team,

    I hope this message finds you well.

    I am reaching out regarding an issue I’ve encountered with virtual events in your plugin. Currently, when I create a virtual event, users are unable to use the RSVP button once the event has already started. I believe it would be very useful if users could still RSVP and join the event even after it has begun.

    Would it be possible to enable this feature in a future update, or is there a setting I might have overlooked to allow this functionality?

    Thank you for your time and for creating such a great tool. I look forward to your response!

    Best regards,

    Arnaud

  •  894
    Zhivko replied

    Hi,

    Sure, I will see if I can add this feature this week.


    Stachethemes Developer

  •  2
    amba13 replied

    Thanks, it will be great !!

    I have a new question, tell me if i have to create a new ticket or not...

    i use referal for sharing links how to add the username after all url shared by facebook, whatsapp etc... ?

    is there a hook i can use ? or a js ?

    best regards

  •  894
    Zhivko replied

    Sure, you can use javascript filter for this.

    Example:

      <script>
        window.stecFilterShareLinks = (shareLinks, props) => {
    
          const facebookLink = shareLinks.find(item => item.id === 'facebook');
    
          if (facebookLink) {
            facebookLink.url = `//www.facebook.com/share.php?u=${props.link}&ref=exampleReferral`;
          }
    
          return shareLinks;
        };
      </script>

    Stachethemes Developer

  •  2
    amba13 replied

    it works very well thanks a lot !!! 
    but there a problem with the onclick button on "copylink" still conserve the "original" link when i tryed to paste and not the modified one... i tryed to change the navigator.clipboard.readText inside the object of copylink but there is an error of security... is there another way to change that inside your code ?

  •  894
    Zhivko replied

    Are you talking about this button

    7904351988.png


    Stachethemes Developer

  •  894
    Zhivko replied

    Yes... I just noticed what I did there... I will fix this with 5.3.9 this week.

    If you are in a hurry you can edit the file assets/js/5784-lazy.js

    5686423475.png

    This line

    navigator.clipboard.writeText(t),

    should be modified to:

    navigator.clipboard.writeText(e.target.href ?? e.target.parentNode.href),

     


    Stachethemes Developer

  •  2
    amba13 replied

    yes it's that and in your code you use the navigator.clipboard.writeText 4 times :

    navigator.clipboard.writeText(e.url)

    navigator.clipboard.writeText(e.location.address)

    navigator.clipboard.writeText(b)

    navigator.clipboard.writeText(t)

    i replace the last one with your new code and it's works very well 

    you are great !!!

    thank ;)

    i was working on it with this dummy code !!! and  lose my hair ;) :

    const observer = new MutationObserver(() => {
        const link = document.querySelector('.stec-share-copylink-color');
        if (link && !link.dataset.initialized) {
            link.dataset.initialized = true;

            const newLink = link.cloneNode(true);
            link.parentNode.replaceChild(newLink, link);

            newLink.addEventListener('click', event => {
                event.preventDefault();
                event.stopPropagation();

                try {
                    const updatedUrl = newLink.getAttribute('href') || newLink.dataset.url;
                    if (!updatedUrl) {
                        return;
                    }

                    const tempInput = document.createElement('textarea');
                    tempInput.style.position = 'absolute';
                    tempInput.style.left = '-9999px';
                    tempInput.value = updatedUrl;
                    document.body.appendChild(tempInput);

                    tempInput.select();
                    document.execCommand('copy');
                    document.body.removeChild(tempInput);
                } catch (err) {}
            });
        }
    });

    observer.observe(document.body, { childList: true, subtree: true });



  •  894
    Zhivko replied

    No, that's overkill. You'll need to find a way to access the toaster to display the success message. It's not worth the effort, and this was a bug anyway. It will be fixed soon.


    Stachethemes Developer

  •  2
    amba13 replied

    Yes you are absolutely right thank you again! You are doing a very good job

  •  894
    Zhivko replied

    Just to let you know 5.3.9 will be available for download later today.

    It will include the RSVP feature you requested.

    8182308893.png


    Stachethemes Developer

  •  2
    amba13 replied

    thanks again !!!

    Is it possible to add linkedin in the shared buttons please ? a lot of my users have account on that professionnal network ;)


  •  894
    Zhivko replied

    That's not a bad idea.

    You can do it now with the filter:

      <script>
        window.stecFilterShareLinks = (shareLinks, props) => {
    
          const linkedIn = {
            "id": "linkedin",
            "className": "stec-share-linkedin-color",
            "icon": "fab fa-linkedin",
            "url": `//www.linkedin.com/sharing/share-offsite/?url=${props.link}`
          };
    
          // push on the 3rd position
          shareLinks.splice(2, 0, linkedIn);
    
          return shareLinks;
        };
      </script>

    And the css:

      <style>
        .stec-share-linkedin-color {
          background-color: #0077B5;
        }
    
        .stec-share-linkedin-color:hover {
          background-color: #005f8d;
        }
    
      </style>

    Stachethemes Developer

  •  2
    amba13 replied

    very clever solution !!! thanks a lot !

  •  894
    Zhivko replied

    You're welcome!


    Stachethemes Developer

  •  2
    amba13 replied

    Feedback on "Allow RSVP after the event has already started" Feature

    Dear Zhivko,

    First, I would like to thank you for adding the "Allow RSVP after the event has already started" option. This feature is a great addition and very helpful in managing participation.

    However, I have noticed an issue: the feature currently works only when the RSVP schedule is set, but it does not function when the RSVP is not planned or scheduled. It would be extremely useful if the option to allow RSVP after the event starts could also work without scheduling the RSVP in advance.

    Thank you for your continuous improvements to the plugin. I hope this issue can be addressed soon, as it would make the feature even more versatile.

    Best regards,

    Arnaud

  •   amba13 replied privately
  •   Zhivko replied privately
  •  2